4: Define a Class Person with the following member variables and uestion ember functions, d. Member variables: name e. Member funetion:getname() and Putname() f. Pure Virtual functions: Getdata() and...


Write a
C++ code
for the following question
as quickly as you can. But please
do the same as asked in the Question.
..


4: Define a Class Person with the following member variables and<br>uestion<br>ember functions,<br>d. Member variables: name<br>e. Member funetion:getname() and Putname()<br>f. Pure Virtual functions: Getdata() and isoutstanding()<br>Derive a Class Student from Class Person with the following data.<br>a. Member variables: Gpa<br>b. Member function:<br>Getdata() : Initialize the name and Gpa<br>Isoutstanding): if Gpa is > 3.5 then return True else return False<br>Write a main 0 function that will create a pointer array of the Person class<br>Polymorphism) having size 10. Ask the user to input the data for 10 students using<br>for loop. Then at the end display the names of only those students whose GPA > 3.5.<br>

Extracted text: 4: Define a Class Person with the following member variables and uestion ember functions, d. Member variables: name e. Member funetion:getname() and Putname() f. Pure Virtual functions: Getdata() and isoutstanding() Derive a Class Student from Class Person with the following data. a. Member variables: Gpa b. Member function: Getdata() : Initialize the name and Gpa Isoutstanding): if Gpa is > 3.5 then return True else return False Write a main 0 function that will create a pointer array of the Person class Polymorphism) having size 10. Ask the user to input the data for 10 students using for loop. Then at the end display the names of only those students whose GPA > 3.5.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here