NOTE: Since this is an extra credit assignment, NO late assignments will be accepted. The solution will be posted Saturday evening so you can study it before the final on Monday November 22nd.
The purpose of this assignment is to modify Homework 6 to use classes instead of structures. Each class object will be a single student record for the course. Name your source code hw7.cpp.
The class should be called StudentRecord. It will have the following member variables:
John Doe 000561234 75 85 80 92 83.00%This is similar to the printStudent function from Homework 6.
As with Homework 6, the ONLY global variable allowed will be the maximum capacity of the array. ALL other variables MUST be local to their functions or the main() function.
Use the following menu for the program:
Welcome to the StudentRecord Gradebook ====================================== 1. Enter student data for the class 2. Print all student records 3. Print a single student record 0. Exit ====================================== Enter selection:You will be using a variety of functions to implement these options. Option 1 will call a global getAllStudents() function. Option 2 will check if student data has been entered. If there are students, it will call a global printAllStudents() function. If there are no students, it will remind the user to select Option 1 first. Option 3 will also check if student data has been entered and remind the user to select Option 1 first if there are no students. If there are students, Option 3 will call the global printSelectedStudent() function.
The required global functions are as follows:
Index Name ID Exam Grades Overall Grade 0 John Doe 000561234 75 85 80 92 83.00% 1 Jane Smith 999123456 80 86 89 90 86.25% 2 Bob Smith 999654321 85 86 85 91 86.75%