You are to write a program that will allow Apollo College to maintain the marks and grades of its students in a programming class.
Assume there are ten students in the class. Your program will need to store the following information for each of the students:
1. Student’s name, to be stored as a string
2. Student’s mark, to be stored as a floating-point number,
3. Student’s grade, to be stored as a single character.
The program will initially input the data for the ten students. Once the data have been read in from the keyboard, the program will allow the user the option of performing any of the following tasks:
A. Print out the information for all ten students. This includes the name, mark and grade of each student. The output should be properly formatted.
B. Print out the information of all students who scored grade A.
C. Print out the information of all students who scored less than 50.0 marks.
D. Print out the number of students who scored less than 50.0 marks. For this task, you must implement a function which has the following prototype:
int numOfStudFailed( float arr[] );
The parameter is the array that stores the marks of the ten students. The function returns the number of students who scored less than 50.0 marks.
E. Compute the average mark of students in the class. For this task, you must implement a function which has the following prototype:
void computeAverage( float arr[], float *average );
The parameter arr is the array that stores the marks of the ten students. The calculated average mark should be assigned to the second parameter average, so that it can be printed out by the caller of the function.
F. Given a student name (input by the user), print out all the information for that student.
G. Exit the program