Design the form above that calculates GPAs. It has a ComboBox of grades, a NumericUpDown control for credits, a button to add grades and credits to two separate ListBoxes. You cannot add unless a grade is selected. The Calculate button is enabled when a grade is entered into the lists.
When the Calculate button is clicked, the GPA is calculated by summing the products of the weight for a grade () by the number of credits for the course and then dividing by the sum of the credits. If a new grade/credit combination is added to the list, then the GPA label is cleared.
Grade Weights A4 A B B3 B C C2 C D D1 F0 B+ (3 credits) and A- (4 credits) (3.333 * * 4)/(3 + 4) ( )/ /
For now grade weights can be handled using a Select Case statement Select Case Grade Case "A" GradeWeight = 4 Case "A-" GradeWeight = … End Select
When the Clear button is clicked, the lists should be cleared (the ListBoxes have an Items property and the Items property has a Clear method) and the Calculate button should be disabled.