10 Create a class called Person with the following data members (Name, Age, and Gender). Create a class called student w
Posted: Sat May 14, 2022 4:09 pm
write a c++ program
10 Create a class called Person with the following data members (Name, Age, and Gender). Create a class called student with the additional details such as (Reg.No, Programme, School, CGPA). Create another class called Sport with level (State/National) as the data member. Add 0.5 point to the student's CGPA if he is a State level player and 1 point to the student's CGPA if he is a national level player. Write a C++ program to print the name and registration number of the student along with his CGPA using inheritance.
10 Create a class called Person with the following data members (Name, Age, and Gender). Create a class called student with the additional details such as (Reg.No, Programme, School, CGPA). Create another class called Sport with level (State/National) as the data member. Add 0.5 point to the student's CGPA if he is a State level player and 1 point to the student's CGPA if he is a national level player. Write a C++ program to print the name and registration number of the student along with his CGPA using inheritance.