Please write your own source code and make sure that the code compiles. C++ Programming
Grade Calculator: GradeCalculator.cpp
Write a program that reads student scores, gets the best score (BestScore), and then assigns letter grades based on the following scheme:
A: [BestScore, BestScore - 10] B: (BestScore - 10, BestScore - 20] C: (BestScore - 20, BestScore - 30] D: (BestScore - 30, BestScore - 40]
F: Lower than BestScore - 40.
The program should prompt the user to enter the total number of students, then prompt the user to enter all of the scores, and conclude by displaying the letter grades. Here is a sample run:
Enter the number of students: 4
Enter 4 scores: 40 55 70 58
Student 0 - Score: 40, Letter: C
Student 1 - Score: 55, Letter: B
Student 2 - Score: 70, Letter: A
Student 3 - Score: 58, Letter: B