Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i need these questions in 5 days ..plez help mee..OOp Assignment Task 3: Multiple and Multilevel Inheritance (Open-ended) [50] A university community has thousands of
i need these questions in 5 days ..plez help mee..OOp Assignment
Task 3: Multiple and Multilevel Inheritance (Open-ended) [50] A university community has thousands of members. These members consist of employees, students and alumni. Employees are either faculty members or staff members. Faculty members are either administrators (such as deans and department chairpersons) or teachers. Some administrators, however, also teach classes. Note that we have used multiple inheritance to form class Administrator Teacher. Also note that this inheritance hierarchy could contain many other classes. For example, students can be graduate or undergraduate students. Undergraduate students can be freshmen, sophomores, juniors and seniors. The inheritance hierarchy is shown below: Community Member Employee Student Alumnus Single inheritance Faculty Staff Single inheritance Administrator Teacher Single inheritance Administrator Teacher Multiple inheritance Code the hierarchy shown above adding appropriate attributes/member functions/member variables and extent the hierarchy from the Student class. Use Student as the base class of the hierarchy, then include classes Undergraduate Student and Graduate Student that derive from Student. Continue to extend the hierarchy as deep (i.e., as many levels) as possible. For example, Freshman, Sophomore, Junior and Senior might derive from Undergraduate Student, and Doctoral Student and Masters Student might derive from Graduate Student. After drawing the hierarchy, create an object of each class in the main function and call at least one function inherited in it. Submit main.cpp, Name.cpp, Name.h and screenshots of your results. Task 2: Hierarchical Inheritance [30] Write a C++ program that implements the given class hierarchy. Player Name Matches Display Bowler No_of_wickets Batman Total scom Per_match_scom [] Average Display Calculate_Avg 0 Display Your program should consist of three classes 1- Player This class contains two data members Name //for player's name ii. Matches //for number of matches player playedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started