Question: This is to be done in C++ Student Class 1) All Student objects must be created on the heap. 2) Data members should only be

This is to be done in C++

This is to be done in C++ Student Class 1) All Student

Student Class 1) All Student objects must be created on the heap. 2) Data members should only be allocated on the heap if necessary. Data members: a) first name b) last namee c) grades (dynamic partially filled array with an initial capacity of 10) Member functions 1. Constructors: a) default constructor b) user defined constructor that initializes an array of size 10 c) implement constructor delegation 2. Implement these accessors/mutators: a) set/get first name b) set/get last name c) set/get name (entire name) 3. Implement these array manipulation functions: a) add grade b) remove grade by index c) update grade by index d) display grades by index 4. Implement a function that calculates and returns the student GPA 5. Implement two separate display functions: displayGrades () a) displays student grades with a fixed precision of two decimal places b) displays the GPA with a fixed precision of two decimal places display) a) displays the student name b) calls the displayGrades function Implement a driver program to test all class members including (see output): a) test all array manipulation functions b) test display functions c) demonstrate the copy constructor and assignment overload by temporarily adding cout echos to these functions (see output)

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!