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 a program that displays the patterns separately

Write a program that displays the patterns separately, one below the other in a TextBox - Maximize your use of repetition and maximize the number of output statements.

  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..

  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 ..

  Organize the code for user readability

Organize the code for reusability, Provide documentation with embedded comments for reader understanding

  To demonstrate completing and delivering a prototype rad

to demonstrate completing and delivering a prototype rad system using oops capabilities of vb.net. prepare a vvb boards

  Gas pump - compute the total cost from the number of gallons

Write a program that will help an elementary school student learn multiplication and compute the total cost from the number of gallons entered and the selected grade.

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Assignment on visual communication

Project teams from Stone Yamashita Partners (profiled in the chapter-opening "Communication Close-Up) look for new ways to connect and explore business ideas through creative

  Write a program to request a positive integer

Continue this process until the number equals 1. Then display the number of repetitions the program required - write a program to determine when the world's population was under 6 million.

  Write windows forms application to simulate coin tossing

Write down the Windows forms application which simulates coin tossing. Let program toss coin each time user press the toss button.

  Write a program to create an invoice form for an order.

Write a program to create an invoice form for an order. After the data on the left side of Fig. 5.27 is entered, the user can display an invoice in a list box by pressing the Process Order button. The user can click on the Clear Order Form button to ..

  Arithmetic calculator application

Arithmetic Calculator Application - Write an application that allows the user to enter a series of numbers and manipulate them.

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