C++ Foundations

Lesson 6 of 6

Final Project: Grade Calculator

Time to combine control flow, functions, and vectors into one program.

Requirements

  1. Store a list of student scores using a std::vector<int>.
  2. Write a function that computes the average of the scores.
  3. Write a function that returns the highest and lowest score.
  4. Loop over the scores and print each one alongside a letter grade (A/B/C/D/F) based on thresholds you define.
  5. Print a final summary of the average, highest, and lowest scores using std::cout.

Stretch goals

  • Read scores from the user with std::cin instead of hardcoding them.
  • Use a struct to 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! 🚀

This lesson ends in a project. Build it on your own machine, there's nowhere to submit it here, but the brief above is everything you need.