4. please help me get the correct code that runs correctly

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

4. please help me get the correct code that runs correctly

Post by answerhappygod »

4.
please help me get the correct code that runs correctly
4 Please Help Me Get The Correct Code That Runs Correctly 1
4 Please Help Me Get The Correct Code That Runs Correctly 1 (63.02 KiB) Viewed 9 times
4) Below is the class definition for PersonType, the base class. class PersonType/ public: PersonType(); //no-are constructor PersonType(string); //constructor to set name void changeName(string); //changes name to value set by argument string getName(); string getDOB(); }; int getID(); protected: -string name; string dob; //Date of birth int id; //ID number of person Please give the class definition for the derived class Student and define its functions and constructors as follows (16 pts): • Data fields for double variables gradePointAverage, totalCredits and string variable mailingAddress ● • A constructor that sets gradePointAverage, totalCredits, and mailingAddress to a specified value A get function to return mailingAddress A get function to return gradePointAverage A get function to return totalCredits A set function to reset the value of mailingAddress to a given value ● ● ● A no-argument (default) constructor that sets gradePointAverage to 0.0 and totalCredits to ●
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply