Question: Create a program that computes the letter grade based on the average of 5 test scores. The user should enter 5 test scores between
Create a program that computes the letter grade based on the average of 5 test scores. The user should enter 5 test scores between 0 and 100. Your program should check that the scores are valid and print an error message if they are not. If the scores are valid, the program should print the average and the letter grade as seen below. Use a switch statement to determine the letter grade. Requirements You must use a switch statement in your program. Your print statements should match the formatting seen in the example runs. Save the code as problem6.c Up to 5 points may be reserved for proper formatting. Example Runs Run 1 Enter score 1: 100 Enter score 2: 100 Enter score 3: 100 Enter score 4: 100 Enter score 5: 100 Average: 100.00 Grade: A Run 2 Enter score 1: 100 Enter score 2: 100 Enter score 3: 100 Enter score 4: 100 Enter score 5: 101 Invalid score!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
