Question: Write a program that accepts a list of test scores separated by a space in one line and then assigns grades to each score using

Write a program that accepts a list of test scores separated by a space in one line and then assigns grades to each score using the following criteria:Grade of A if the test score is >=90Grade of B if the test score is >=80Grade of C if the test score is >=70Grade of D if the test score is >=60Grade of F if the test score is <60A valid test score falls in the indicated range: 0<= test score <=100. If the user enters an invalid test score, provide an error message, and allow the user to re-enter the test score list.Sample Output:Enter test scores: 809573866050A score of 80 is a grade of BA score of 95 is a grade of AA score of 73 is a grade of CA score of 86 is a grade of BA score of 60 is a grade of DA score of 50 is a grade of F After the test score grades are displayed, allow the user to enter another list of test scores or provide a closing message and end the program.

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!