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

  What do you understand by event driven programming

What do you understand by event driven programming? List and explain about some of the events supported by Visual Basic Objects - what are the different data types supported by Visual Basic ? How they can be declared? Also mention their uses.

  Write paper on creating and accessing arrays

Write a 2 page research paper (excluding the title page) on creating and accessing arrays. Explain the concepts discussed in the textbook using at least one example not included in the textbook

  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.

  Assignmentimplementation of dynamic content server side

assignmentimplementation of dynamic content server side backend and database for your web site using microsoft visual

  Create a vb form application that contains two listboxes

Create a VB form application that contains two listboxes and two buttons. The application starts off with both lists empty. Button 1 will clear both lists and then add 25 randomly generated number to the first list. The numbers will vary in value ..

  Design for the gui application

Decide on an appropriate design for the GUI application which will be SELF Contained and allow the user to select and run the various calculations

  Add the functionality to its cash register

The Chocolate Delights Candy Company needs to add the following functionality to its cash register: When a customer is checking out, the cash register needs to store the required data pertaining to each item the customer is buying

  Create a connection to an access database

VBScript Database Query Lab, In this lab, students will complete the following objectives. Create a connection to an Access database

  Create a visual basic prototype that has screens for windows

Develop calendar screens for Windows and the Web in which you and create a Visual Basic prototype that has screens for Windows and Web.

  Design a logic for a program

Design a logic for a program that allows a user to enter 15 numbers, then displays each number and its difference from the numeric average of the numbers entered.

  Basics of visual design

Focus on Web Design II: This assignment is part of the module MODULE 4: BASICS OF VISUAL DESIGN and hasn't been unlocked yet. Completion Prerequisites. The following requirements need to be completed before this page will be unlocked: MODULE 4: BASIC..

  Calculate the monthly interest

calculate the monthly interest and display the amounts of interest earned and the new balances for each of the savers. Then set the annualInterestRate

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