Solution: Student Score Manager
This program records students’ names and scores, assigns them letter grades, and calculates the class average.
Line-by-line breakdown:
Defines a structure to store each student’s name and score.
Creates a function to calculate the average score by summing all scores and dividing by the number of students.
Creates another function to determine each student’s letter grade (A–F) using preset grade boundaries.
Asks the user how many students will be entered.
Collects each student’s name and score through user input.
Displays every student’s name, score, and corresponding grade.
Computes and prints the overall class average at the end.
Solution: Student Score Manager
This program records students’ names and scores, assigns them letter grades, and calculates the class average.
Line-by-line breakdown:
Defines a structure to store each student’s name and score.
Creates a function to calculate the average score by summing all scores and dividing by the number of students.
Creates another function to determine each student’s letter grade (A–F) using preset grade boundaries.
Asks the user how many students will be entered.
Collects each student’s name and score through user input.
Displays every student’s name, score, and corresponding grade.
Computes and prints the overall class average at the end.