I think we need to use loop, array, if statement, continue, and break to solve this question
Q1: Develop a program to help a teacher evaluate his class’s grades. It will help him calculate grade statistics and convert the scores to letter grades. Assume each class has a capacity of 25 students. It will repeatedly display a menu until the user decides to exit:
- Enter scores: Prompts the teacher to enter the scores of each of his students, should enter -1 when they are done (class might contain less than 25 enrolled students)
- Find highest score: Displays the highest earned score to the teacher
- Find lowest score: Displays the lowest earned score to the teacher
- Calculate average score: Displays the average score to the teacher
- Display letter grades: Knowing that:
i. A: 90-100
ii. B: 80-89.99
iii. C: 70-79.99
iv. D: 60-69.99
v. F: below 60
- Exit
Aucun commentaire:
Enregistrer un commentaire