Question: Computing III Lab-6 This is a modification of a previous lab exercise done by you but in this we wll review the working of constructor,

 Computing III Lab-6 This is a modification of a previous lab
exercise done by you but in this we wll review the working

Computing III Lab-6 This is a modification of a previous lab exercise done by you but in this we wll review the working of constructor, copy constructor, copy assignment operator and destructor. There is a collection of student records to be maintained for an examination- including the variables studentID, studentFirstName and studentGrade (integer). The program should prompt for, input the data and keep records in dynamic array. Initialize the default studentFirstName as XXXX and the default grade as 0. Implement your own constructor, copy constructor, copy assignment operator and destructor. Consider the passing grade as 8 (out of 10). Create a second array of passed students and a third array which just copies this array Print the output of the test run given below. Additionally display when were the following called (a) constructor (b) copy constructor (c) copy assignment operator (d) destructor-and explain it to your instructor (you could uncomment the code for this display and show in the next run with fewer data input). Test run. How many records? 3 Enter student record (studentID studentFirstName space> studentGrade) 01660000 Ramji 6 01670000 Sitaji 9 00199999 Hanumanji 8 Pass records 01660000 Sitaji 9 Copied 2 pass records 01660000 Sitaji 9 00199999 Hanumanji 8 Any more records?(y) y w many records? 1 Enter student record (studentlD studentFirstName space> studentGrade): 01990000 Shivji 9 Pass records 01660000 Sitaji 9 00199999 Hanumanji 8 01990000 Shivji 9 Copied 3 pass records 01660000 Sitaji 9 00199999 Hanumanji 8 01990000 Shivji 9 Computing III Lab-6 This is a modification of a previous lab exercise done by you but in this we wll review the working of constructor, copy constructor, copy assignment operator and destructor. There is a collection of student records to be maintained for an examination- including the variables studentID, studentFirstName and studentGrade (integer). The program should prompt for, input the data and keep records in dynamic array. Initialize the default studentFirstName as XXXX and the default grade as 0. Implement your own constructor, copy constructor, copy assignment operator and destructor. Consider the passing grade as 8 (out of 10). Create a second array of passed students and a third array which just copies this array Print the output of the test run given below. Additionally display when were the following called (a) constructor (b) copy constructor (c) copy assignment operator (d) destructor-and explain it to your instructor (you could uncomment the code for this display and show in the next run with fewer data input). Test run. How many records? 3 Enter student record (studentID studentFirstName space> studentGrade) 01660000 Ramji 6 01670000 Sitaji 9 00199999 Hanumanji 8 Pass records 01660000 Sitaji 9 Copied 2 pass records 01660000 Sitaji 9 00199999 Hanumanji 8 Any more records?(y) y w many records? 1 Enter student record (studentlD studentFirstName space> studentGrade): 01990000 Shivji 9 Pass records 01660000 Sitaji 9 00199999 Hanumanji 8 01990000 Shivji 9 Copied 3 pass records 01660000 Sitaji 9 00199999 Hanumanji 8 01990000 Shivji 9

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!