Home / Expert Answers / Computer Science / design-a-class-called-student-to-represent-a-student-with-private-member-variables-for-the-student-3-pa866

(Solved): Design a class called Student to represent a student, with private member variables for the student' ...



Design a class called Student to represent a student, with private member variables for the student's ID and grade. Implement the following public member functions: 1. set_ID(string id): Sets the ID number of the student. 2. set_grade(string g): Sets the grade of the student. 3. get_ID(): Returns the ID number of the student. 4. get_grade(): Returns the grade of the student. In the main function: 1. Create an array of three Student objects. 2. Prompt the user to input the ID number and grade for each student. 3. Use the appropriate member functions (set_ID and set_grade) to set the ID and grade for each student. 4. After setting the values, display the ID and grade for each student using the get_ID and get_grade functions.



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe