Question: Type a program that allows a user to enter any number of student quiz scores, as integers, until the user enters 99 to quit. If

Type a program that allows a user to enter any number of student quiz scores, as integers, until the user enters 99 to quit. If the score entered is less than 0 or more than 10, display "Score must be between 10 and 0" (0 and 10 are legitimate quiz scores) and do not use the invalid score in the average calculation (see below), but still display the score if the invalid number was highest or lowest at the end of the program execution - see sample execution Output below.

After all the quiz scores have been entered, display the total number of valid scores entered, the total number of invalid scores entered, the highest score (even if it was an invalid score), the lowest score (even if it was an invalid score), and the arithmetic average of all the VALID quiz scores (not including scores > 10 or

When you run your program/app, input the following ten (10) test cases in this order:

Enter -1

Enter 11

Enter 8

Enter 3

Enter 5

Enter 0

Enter 10

Enter 11

Enter 9

Enter 99

Your Execution Output should look something VERY similar (almost exactly) to this:

Enter a score >> -1 Score must be between 0 and 10 Enter another score or 99 to quit >> 11 Score must be between 0 and 10 Enter another score or 99 to quit >> 8 Enter another score or 99 to quit >> 3 Enter another score or 99 to quit >> 5 Enter another score or 99 to quit >> 0 Enter another score or 99 to quit >> 10 Enter another score or 99 to quit >> 11 Score must be between 0 and 10 Enter another score or 99 to quit >> 9 Enter another score or 99 to quit >> 99

6 valid scores were entered

3 invalid scores were entered

Highest score was 11

Lowest score was -1

Quiz Score Average was 5.833333333333333

Type a program that allows a user to enter any number ofstudent quiz scores, as integers, until the user enters 99 to quit.

Write a program that allows a user to enter any number of student quiz scores, as integers, until the user enters 99 to quit. If the score entered is less than 0 or more than 10, display "Score must be between 10 and 0" (0 and 10 are legitimate quiz scores) and do not use the invalid score in the average calculation (see below), but still display the score if the invalid number was highest or lowest at the end of the program execution - see sample execution Output below. After all the quiz scores have been entered, display the total number of valid scores entered, the total number of invalid scores entered, the highest score (even if it was an invalid score), the lowest score (even if it was an invalid score), and the arithmetic average of all the VALID quiz scores (not including scores > 10 or > -1 Score must be between 0 and 10 Enter another score or 99 to quit > > 11 Score must be between 0 and 10 Enter another score or 99 to quit > > 8 Enter another score or 99 to quit > > 3 Enter another score or 99 to quit > > 5 Enter another score or 99 to quit > > 0 Enter another score or 99 to quit > > 10 Enter another score or 99 to quit > > 11 Score must be between 0 and 10 Enter another score or 99 to quit > > 9 Enter another score or 99 to quit > > 99 6 valid scores were entered 3 invalid scores were entered Highest score was 11 Lowest score was -1 Quiz Score Average was 5.833333333333333

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 Programming Questions!