Dr Mirna always gives True/False tests to her class. Her tests have always 10 questions. The maximum class size is 5. She needs a program that will calculate the students’ grades based on the best grade.
Grade
A will range from the best score, to the best score minus 2.
B will range from the best score minus 3, to the best score minus 5.
C will range from the best score minus 6, to the best score minus 8.
F will be anything below the best score minus 8.
Each student’s ID and test answers will be entered. The output will be each student’s ID, number of correct answers, and grade, along the single highest score for the class.
Develop a C++ program for the above problem.
· Use four one-dimensional arrays – one for the correct scores and the other three for the needed output.
· Test if a student’ ID number has been entered previously before storing it in the array: each ID number cannot appear more than one time in the array.
· Check if the answer given for each question is a value equal to 0 or 1. If it is not the case, the user must re-enter the value again.
· Use functions in writing your code.