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.
1
Expert's answer
2012-10-22T08:39:14-0400
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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment