Final Project: Grade Calculator
Time to combine control flow, functions, and vectors into one program.
Requirements
- Store a list of student scores using a
std::vector<int>. - Write a function that computes the average of the scores.
- Write a function that returns the highest and lowest score.
- Loop over the scores and print each one alongside a letter grade (A/B/C/D/F) based on thresholds you define.
- Print a final summary of the average, highest, and lowest scores using
std::cout.
Stretch goals
- Read scores from the user with
std::cininstead of hardcoding them. - Use a
structto bundle a student's name together with their scores. - Split the logic into multiple small functions, each with one clear responsibility.
Submit your repository link below when you are done, an instructor will review it before you can mark this lesson complete. Good luck! 🚀