Question: Complete program HiScore so that it reads three test scores from the window, then labels and prints the largest of the three in a message
Complete program HiScore so that it reads three test scores from the window, then labels and prints the largest of the three in a message box. The input form is shown below. You can use any of the previous programs in the exercises as a shell for this program.
Fill in the missing statement(s) in program HiScore so that the largest of the three input values (scores) is printed and labeled as the highest test score. You may use a nested If statement or a series of If statements. For example, if test2Score with a value of 98 is the largest, your output might look as follows:
The value for test 2 is the highest; it is 98.
Your message may be different, but it must include the largest value and which test had that value. Run your program three times using the three sets of input values listed below.
Prelab Exercise 6 asked you what would happen if the user kept entering values, pressing the Enter key after each value. The answer was that the code to process the Enter key kept repeating. Exercises in each of the previous lessons asked you to rerun your program using different data values. What a waste of time when you can just add a second button that is pressed when the user has finished reading in the final value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
