Determine the output displayed when the button is clicked

Assignment Help Visual Basic Programming
Reference no: EM13809311

1. Determine the output displayed when the button is clicked.

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim num As Double = 0
Dim max As Double = -1
Dim prompt As String = " Enter a nonnegative number. " & Enter -1 to terminate entering numbers."
Num = CDbl(Input Box(prompt))
Do While num >= 0
If num > max Then
Max = num
End If
Num = CDbl(InputBox(prompt))
Loop
If max <> -1 Then
MessageBox.Show("Maximum number: " & max)
Else
MessageBox.Show("No numbers were entered.")
End If
Assu;me that the responses are 4, 7, 3, and -1)

2. Replace each phrase containing "Until" with an equivalent phrase containing "While", and vice versa. For instance, the phrase (Until sum = 100) would be replaced by (While sum <> 100).

While (ans = "Y") And (n < 7)

3. Determine the output displayed when the button is clicked.

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim word As String = "courage"
Dim letter As String = ""
Dim numVowels As Integer = 0
For i As Integer = 0 To word.length - 1
Letter = word.Substring(I, 1)
If IsVowel (letter) Then
numVowels += 1
End If
Next
txtBox.Text = CStr(numVowels)
End Sub
Function IsVowel(ByVal letter As String) As Boolean
Letter = letter.ToUpper
If (letter = "A" Or (letter = "E") Or (letter = "I") Or (letter = "O") Or (letter = "U") Then
Return True
Else
Return False
End If
End Function

Reference no: EM13809311

Questions Cloud

Write an essay about being pray surviving a crocodile attack : Write an essay about "Being Pray: Surviving a Crocodile Attack" by Val Plumwood.
Write a program to compute the diameter of a steel rod : Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and copper rod, which can withstand a particular compression load
Discuss how the no-growth movement influences : Discuss the key components and players involved in effective city planning and innovative planning practices. In your discussion, include issues that arrive concerning eminent domain. Discuss how the no-growth movement influences city growth.
Evaluate the role of ethical decision-making in business org : Ethics, Compliance Auditing, and Emerging Issues Imagine that you have been tasked with creating a proposal for the new CEO of your organization for establishing an ethics program and for conducting training and compliance auditing. For this assignme..
Determine the output displayed when the button is clicked : Determine the output displayed when the button is clicked. Replace each phrase containing "Until" with an equivalent phrase containing "While", and vice versa. For instance, the phrase (Until sum = 100) would be replaced by (While sum 100)
Discuss the public policies that issue presidential powers : President Obama's use of presidential powers in the last 18 months. Identify and discuss the public policies that have been at issue using these presidential powers.
Significant capital constraints : In each of these scenarios, assume that firms do not face significant capital constraints.
Determine the output displayed when the button is clicked : Determine the output displayed when the button is clicked. Determine the output displayed when the button is clicked
Create the gui for a timekeeping or payroll system for cms : CMS Systems, Inc. is a company that provides information systems consulting services to companies in the telecom industry in the United States and the United Kingdom. create the GUI for a timekeeping/payroll system for CMS

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Write visual basic program to accept values of any unit

Write down VISUAL BASIC program to accept numeral values of any unit, sum up the total, compute the average, and then Output result with proper unit.

  Main objectives of the assessmentnbspthe aim of the

main objectives of the assessmentnbspthe aim of the assessment is to develop a visual basic console application that

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Apply graphical user interface design principles

Apply graphical user interface design principles - Design conditional and iteration constructs appropriate to a given programming task and design well-written and readable programs using a disciplined coding style, including documentation and indenta..

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Showing data from black friday sales including cost

I need a vb application in Microsoft Visual Studio showing data from black friday sales including cost, sales prices, transportation fees, profits, losses, best selling list, and worst selling list

  Modify the program by creating a separate class

Modify the program by creating a separate class called ProcessShipping to calculate the shipping charge for each package

  Prepare a problem on lottery number generator

Create an interface and develop an application for a Pick 3 Lottery Game. The application needs to show 3 randomly generated numbers based on a range of numbers provided by the users.

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Create a visual basic form

Create a Visual Basic form like the one below that allows the user to press buttons to change the background and foreground colors of the textbox. Your form should have 4 buttons, 2 labels, and 1 textbox

  Write a program, and store it in a file called

Write a program, and store it in a file called Travel Expenses.xlsm, that does the following: a) It asks for a person's first name and stores it in firstName; b) it asks for a person's last name and stores it in lastName

  Performing a calculation on that value

Individual Visual Logic Calculations. Select two to three Each task must include the following Inputing a value. Performing a calculation on that value. outputting the value. produce Visual Logic files to execute each of these steps.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd