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 errorprone 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 to For each test score, the program will determine the letter grade using the following scale:
to : A to : B to : C to : DBelow : F
Data Input:
After entering each score, the program will display the score along with the corresponding grade.Input validation: The system should reprompt 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 and If the user enters an invalid score, they are reprompted 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:
Student :
Enter the number of test scores for this student:
Enter score to :
Score : Grade B
Enter score to :
Score : Grade B
Enter score to :
Score : Grade A
Student average score:
Student :
Enter the number of test scores for this student:
Enter score to :
Score : Grade A
Enter score to :
Score : Grade A
Enter score to :
Score : Grade A
Student average score:
Student :
Enter the number of test scores for this student:
Enter score to :
Score : Grade A
Enter score to :
Score : Grade A
Enter score to :
Score : Grade A
Student average score:
Student :
Enter the number of test scores for this student:
Enter score to :
Score : Grade A
Enter score to :
Score : Grade A
Enter score to :
Score : Grade A
Student average score:
Class average score:
Would you like to evaluate another class? yn: 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
