2- Write a C++ program to define a class for Student, the class should have three 3 private member variables name of type char array size 10, age of type integer, and GPA of type float. Have two constructors ( one default no arguments and one with three values one for each member variable) and a setter and getter for each member variable, one destructor. Make sure to validate your input values inside setters and getters by checking age to be above 0, and GPA above 0 and less than or equal to 100.
Declare an array of five students
Declare a function to read values of the objects array
Declare a function to print the name of the student who has the maximum GPA.
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.