Question: Objective: Design a Test Score Evaluation System where a user can input a series of test scores for multiple students. The system will evaluate each

Objective:
Design a Test Score Evaluation System where a user can input a series of test scores for multiple students. The system will evaluate each score, determine the grade for each score based on predefined grade boundaries, and provide a summary of the class performance. The program should use control flow structures (if, elif, else statements, while loops, and for loops) and input validation to make the process interactive and error-prone for incorrect score inputs.
Specifications:
Initial Setup:
The program will ask for the number of students.For each student, it will ask how many test scores are being input.The scores must be in the range of 0 to 100.For each test score, the program will determine the letter grade using the following scale:
90 to 100: A80 to 89: B70 to 79: C60 to 69: DBelow 60: F
Data Input:
After entering each score, the program will display the score along with the corresponding grade.Input validation: The system should re-prompt the user if the entered score is out of range.
Summary:
After all the test scores for all students are entered, the program will output:
The average score for each student.The class average score.
Control Flow Restrictions:
Use a while loop to input data for multiple students.Use for loops to process multiple test scores for each student.Use if, elif, else conditions to determine grades and validate input.
Key Features:
Student and Test Score Input: The system prompts for the number of students and the number of test scores per student.
Input Validation with Loops: A while loop ensures that scores entered are valid (between 0 and 100). If the user enters an invalid score, they are re-prompted until a valid number is entered.
Grade Calculation with if, elif, else:The program calculates the grade for each score based on predefined grade boundaries using conditional statements.
while and for Loop Combination:
The while loop controls the flow for multiple students.The for loop is used to process the number of test scores per student.
Class Summary:
After all students scores are input, the program calculates and displays the class average.
Additional Features:
After completing the input for one class, the program asks if the user wants to evaluate another class, allowing the user to repeat the process without restarting the program.
Here is one example of output:
Welcome to the Test Score Evaluation System!
Enter the number of students: 4
Student 1:
Enter the number of test scores for this student: 3
Enter score 1(0 to 100): 88
Score 88: Grade B
Enter score 2(0 to 100): 89
Score 89: Grade B
Enter score 3(0 to 100): 90
Score 90: Grade A
Student 1 average score: 89.00
Student 2:
Enter the number of test scores for this student: 3
Enter score 1(0 to 100): 90
Score 90: Grade A
Enter score 2(0 to 100): 95
Score 95: Grade A
Enter score 3(0 to 100): 90
Score 90: Grade A
Student 2 average score: 91.67
Student 3:
Enter the number of test scores for this student: 3
Enter score 1(0 to 100): 99
Score 99: Grade A
Enter score 2(0 to 100): 98
Score 98: Grade A
Enter score 3(0 to 100): 97
Score 97: Grade A
Student 3 average score: 98.00
Student 4:
Enter the number of test scores for this student: 3
Enter score 1(0 to 100): 99
Score 99: Grade A
Enter score 2(0 to 100): 100
Score 100: Grade A
Enter score 3(0 to 100): 100
Score 100: Grade A
Student 4 average score: 99.67
Class average score: 94.58
Would you like to evaluate another class? (y/n): y
Welcome to the Test Score Evaluation System!
Enter the number of students:

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!