Question: Visual Basic Program 4 For Loop using If_ElselF You are to create a program which will allow a user to input information about a set

Visual Basic Visual Basic Program 4 For Loop using If_ElselF You are to create

a program which will allow a user to input information about a

set of courses they are taking, and which will calculate their semester

GPA. The program starts by asking the user, through an InputBox, how

many courses they will be taking. This value should then be stored

Program 4 For Loop using If_ElselF You are to create a program which will allow a user to input information about a set of courses they are taking, and which will calculate their semester GPA. The program starts by asking the user, through an InputBox, how many courses they will be taking. This value should then be stored as a Public variable of type String so that all parts of the program can use it, and it should be done in a Load Event. Your program should then print out labels in the ListBox on the form, as shown in the diagrams below Next, the program will run a loop to perform calculations and generate output to the ListBox. The loop will run a number of times, equal to the number of courses they entered in the part above. You will need to allow the user to enter the course name, credit hours (usually 3, 4, 5, or 6), and letter grade earned for each course. You will use an InputBox to obtain each of these values. The program will then, inside the loop, determinethe grade points to be awarded for each course. You will use an If-Elseif structure to complete this task, and the values for each grade are shown in the following table Grade Grade Points 4.00 3.67 3.33 3.00 2.67 2.33 2.00 1.67 1.33 1.00 0.67 0.00 A- B+ B- D+ D- The next step is to calculate the quality points which are the credit hours multiplied by the grade points. You will also need to keep track of the total credit hours and the total quality points in order to be able to calculate the GPA after the loop has finished. Be sure to send your output to the ListBox once you have your calculations for each course completed. After the loop has ended, you will need to calculate and output the semester GPA. The semester GPA is calculated as the total quality points divided by the total credit hours. This should be displayed as a number (not currency) with 2 decimal places

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!