Hello, I need assistance with my assignment please in Visual Basic.
Starting Out With Visual Basic Seventh Edition Chapter 5 Programming Challenge #1. Sum Of Numbers... page 370
Create an application that displays a form similar to the one shown in Figure 5-44. When the Enter Numbers button is clicked, the application should display the input box shown in Figure 5-45.
The input box asks the user to enter a positive integer value. Notice that the default input value is 10. When to OK button is clickd, the application should display a message box with the sum of all integers from 1 through the value entered by the user, as shown in Figure 5-46. If the user enters a negative value, the application should display an error message. Use the following test data to determine if the application is calculating properly: Value Sum 5 15 10 55 20 210 100 5050
implement the functionality, implement the code, and also make sure you implement the error checking to catch non-numeric data
Thank you
solution;
Dear Student ,
As per the requirement submitted above , kindly find the below
solution.
Here a new Windows Forms Application in VB is created using Visual
Studio 2017 with name "VB_SumOfNumbers".This application contains a
form with name "frmSumofNumbers.vb.".Below are the files associated
with form1.
1.frmSumofNumbers.vb[Design]

2.frmSumofNumbers.vb
Public Class
frmSumofNumbers 'VB class
'Enter button click
Private Sub btnEnter_Click(sender As Object, e As EventArgs)
Handles btnEnter.Click
'asking user to enter positive number
Dim numberStr As String = InputBox("Enter a positive integer
value", "Input Needed", 10)
Dim number As Integer 'declaring variable to store number
'checking whether number is numeric or non numeric
If Integer.TryParse(numberStr, number) Then
'when number is numeric,checking whether number is positive or
negative
If number > 0 Then
'when positive number is entered
Dim sumofNumbers As Integer = 0 'variable to store sum
'using for loop adding each number from 1 to number
For i = 1 To number
sumofNumbers = sumofNumbers + i 'add i in sumofNumbers
Next
'display sumofNumbers on the messagebox
MessageBox.Show("The sum of numbers 1 through " & number &
" is " & sumofNumbers, "Sum of Numbers")
Else
'if negative number is entered
MessageBox.Show("Enter positive number")
End If
Else
'display message if nonnumeric number is entered
MessageBox.Show("Enter numeric Number")
End If
End Sub
'Exit button click
Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles
btnExit.Click
Application.Exit() 'close application
End Sub
End Class
======================================================
Output : Run application using F5 and will get the screen as shown
below
Screen 1 :

Screen 2:Screen when non numeric number is entered


Screen 3:Screen when negative number is entered

Screen 4:Screen showing sum of numbers

Hello, I need assistance with my assignment please in Visual Basic. Starting Out With Visual Basic...
create an application in VISUAL BASIC that calculates a cars gas
mileage. The formula for calculating the miles that a car can
travel per gallon of gas is MPG = Miles/Gallon
In the formula MPG is miles-per-gallon, miles is the number of
miles that can be driven on a full tank of gas, and gallons is the
number of gallons that the tank holds.
The applications form should have TextBox controls that let the
user enter the number of gallons...
Visual Basic
You are asked to develop a Visual Basic Net application that can determine roots of a requirements of this project are as follows: 1) Design a form to allow users to define a quadratic equation and to find the roots of the equation. The form should have a label that shows this message: Solving a quadratic equation ax2+bx+c=0 The form should have three textboxes in which users enter the values of a, b, and c The form should...
An Introduction to Programming Using Visual Basic Tenth
Edition
Chapter 3 Programming Project 2
What is the solution to this project?
one of the numbers in an input text box is change the type of Auto Repair Calculator X Customer: John Doe Hours of labor: 3.5 Cost of parts and supplies 84.55 Display Bill + First number 21 Second number 77 х Customer Labor cost Parts cost Total cost John Doe $122.50 $88.78 $211.28 21 x 77 = 1617 FIGURE...
Need help!!! I need two programs that use one common database.. One program using a Visual Basic windows form using textboxes for data input (first name, last name, phone, email) and it should save the info into an SQL database when a save button is clicked. Second program using a C# windows form that has a drop down menu with all the names that have been saved into the database, when one name is clicked all their information should pop...
Hello, please help me to answer my assignment, i highly
appreciate your effort, kindly explain it clearly.
Kindly put your codes in (NOTEPAD).
Thank you very much.
Write a VB application that will facilitate a pizza order.
1.The user interface should have a form containing all
components pertaining to pizza order presented in either option
buttons or check boxes.
2.Controls must also be grouped in frames according to size,
toppings, or crust type.
3.The summary of order must be presented...
Please help! Visual Basic - Windows App Form .NET
Framework.
Option Explicit ON
Option Strict ON
Option Infer ON
calculate Letter Grade Number grade: I Letter grade: Calculate Exxt Start a new Project named GradeConverter Add labels, textboxes, and button to the default form. Create an event handler for Calculate and Exit. . When the user enters a number- between 0.0 and 100.0 and clicks Calculate, the letter grade will display for the user The form should be able to...
the code is in visual basic
376 Chapter 6 Loop Structures Case Programming Assignments con Most Rainfall in the USA USE CASE DEFINITION e Windows application opens with the heading "Most Rainfall in US - Kauai," a ListBox object that displays the monthly rainfall amounts, an i amounts in inches mage, and a Button object that allows the user to begin entering their rainfall 2. A menu bar displays the File menu, which has two menu items: Clear and Exit....
Question 1 and 2 ... Visual Basic
dlear the contents of the textboxes. Do not accept a negative value for any of the inputs. Your application should have a button clear and utilize a separate procedure to e an application that prompts the user to enter today's sales for five program should then display a simple bar graph comparing each 2. Creat stores. The stores sales. Create each bar in the bar grah by displaying a row of asterisks (*)...
write a programming code for the following problem using
Visual Basic Studio VB.
Write a program that will allow the user to enter series of mumbers and will give some useful statistics about the mambers Enter Numbers Button Click-Allow the user to enter series of nambers using imput dialog boxes. Use a loop and add the numbers to the listBox as they are input.. Prompt the user to enter"x" to stop addang numbers. Compute Statistics Button Click-Compute the following statistics...
Please note: This is in Visual Basic. Create an application (windows forms app). Add a label and a button to the form. The button’s Click event procedure should declare and initialize a one-dimensional Double array. Use any six numbers to initialize the array. The procedure should display (in the label) the lowest value stored in the array. Code the procedure using the For...Next statement.