Write a C++ program that asks a teacher to input the number of students who took an exam and the scores for each student who took the exam. For each letter grade, determine the number of scores. Print to the screen the exam scores and the number of scores in for each letter grade. The program must use an array and functions that return multiple variables. The program must have the following
Main
• Asks the user to input the number of students who took the exam
• Asks the user to input scores for each student who took the exam
• Calls a programmer-defined function that determines the number of scores per grade category
• Calls a program-defined that prints the scores and the number of scores per grade category
Programmer-defined function 1
• Accepts the scores
• Determines the number of scores per grade category
Programmer-defined function 2
• Prints the scores to the screen
• Print the number of scores per grade category to the screen
For example:
Would you like to begin? (Y/y): y
Please input the number of students who took the exam: 4
Please enter their scores: 90 80 65 90
The student scores are:
90
80
65
90
A(s) = 2
B(s) = 1
C(s) = 0
D(s) = 1
E(s) = 0
Would you like to continue? (Y/y)