Question: Write a program that computes the overall numeric grade for each student in a class. The program should begin by asking the user several questions

Write a program that computes the overall numeric grade for each student in a class. The program should begin by asking the user several questions about the class as a whole as follows. First, the program should prompt the user to enter the number of tests that were given in the class. If the user specifies that fewer than two tests were given in the class, the program should display an error message and continue prompting (and if necessary, printing error messages) until a valid input is given. Next, the program should ask the user whether the lowest test score should be dropped when computing each students overall numeric grade. Then the program should prompt the user to enter the maximum test score considered valid.{java} Next, the program should prompt the user to enter the name of the current student or Q or q to quit. The program should then prompt the user to enter each test score for the current student (referring to the current student by name). If a negative value or a value exceeding the maximum valid test score is entered, the program should display an error message and continue prompting (and if necessary, printing error messages) until a valid input is given. Once the user has entered the specified number of valid test scores for the current student, the program should report the current students overall numeric grade as the average of the students test scores (rounded to two decimal places) after dropping the current students lowest test score if the user specified this procedure for the class. The program should then continue by once again prompting the user to enter the name of the current student or Q or q to quit, etc.(donot use methods)

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!