Question: Private member variables Description Member name Type name string Student name Num Student ID number int GPA double GPA Public member functions Mutators setName: Takes

 Private member variables Description Member name Type name string Student name
Num Student ID number int GPA double GPA Public member functions Mutators
setName: Takes as argument the student's name as a string and sets

Private member variables Description Member name Type name string Student name Num Student ID number int GPA double GPA Public member functions Mutators setName: Takes as argument the student's name as a string and sets the name member variable to that string setldNum: Takes as argument the student's ld number as an int and sets the ldnum member variable to that value. Performs input validation: If the parameter value is not >0, displays "Invalid ld number" error message and exits the program. setGPA: Takes as argument the student's GPA as a double and sets the GPA member variable to that value. Performs input validation: If the GPA value is not in the range from 0 to 4 inclusive, displays "invalid GPA" error message and exits the program. Accessors getName: returns the name getldNum: returns the ldnum get GPA: returns the GPA The program should ask the user how many students there are. It should then dynamically allocate an array of Student. After the array has been dynamically allocated, the program should ask for the name, ID number and GPA for each student and populate the array. Then the content of the array is displayed. Additional Requirements a) Outline of main Your main function must demonstrate your classis working correctly by implementing this pseudo code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!