Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ code please i want the solution of this (class Driver Managers ) like this steps #include using namespace std; class Person { private: string

c++ code please i want the solution of this (class Driver Managers ) like this steps

#include

using namespace std;

class Person { private: string Name; string Email; string Gender; public: virtual void setName(string n){ Name = n;} virtual void setEmail(string n){ Email = n;} virtual void setGender(string n){ Gender = n;}

string getName(){ return Name;} string getEmail(){ return Email;} string getGender(){ return Gender;} };

class Customer : public Person{ private: string DeliveryAddress; public: virtual void setDeliveryAddress(string n){ DeliveryAddress = n;}

string getDeliveryAddress(){ return DeliveryAddress;} };

class Employee : public Person{ private: double Salary; public: virtual void setSalary(double n){ Salary = n;}

double getSalary(){ return Salary;} };

class Driver_Employee : public Employee{ private: int License; int NumberOfDeliveries; public: virtual void setLicense(int n){ License = n;}

int getLicense(){ return License;} virtual void setNumberOfDeliveries(int n){ NumberOfDeliveries = n;}

int getNumberOfDeliveries(){ return NumberOfDeliveries;} };

class Manager : public Employee{ private: double AnnualBonus; public: virtual void setAnnualBonus(double n){ AnnualBonus = n;}

double getAnnualBonus(){ return AnnualBonus;} };

class Driver_Manager : public Manager , public Driver_Employee{

};

int main() { Person pers1; pers1.setName("Kahlid"); pers1.setEmail("Khalid@kuwait.com"); pers1.setGender("Male"); cout

return 0; } image text in transcribedimage text in transcribed

- You have been hired by Q8Fashion Co. to design and implement their IT system. - They told you that the system should record the information related to their Customers, and Employees. - Every Person in the system should contain the following basic information: Name, Email, and Gender. - For Customers, you should record the Name, Email, Gender, Delivery Address. - For Employees you should record the Name, Email, Gender, and Salary. - For Driver Employees you should record the Name, Email, Gender Salary, Driving License Number, and Number of Deliveries. - For Managers you should record the Name, Email, Gender, Salary, and Annual Bonus Amount. - You should note that there are Driver Managers who are Drivers and Managers at the same time. - Draw an inheritance Hierarchy (/0.5) - Code the Main Classes using the minimum number of Classes (Hint: use inheritance) (/0.75) - Generate Getters and Setters (/0.75) - You have been hired by Q8Fashion Co. to design and implement their IT system. - They told you that the system should record the information related to their Customers, and Employees. - Every Person in the system should contain the following basic information: Name, Email, and Gender. - For Customers, you should record the Name, Email, Gender, Delivery Address. - For Employees you should record the Name, Email, Gender, and Salary. - For Driver Employees you should record the Name, Email, Gender Salary, Driving License Number, and Number of Deliveries. - For Managers you should record the Name, Email, Gender, Salary, and Annual Bonus Amount. - You should note that there are Driver Managers who are Drivers and Managers at the same time. - Draw an inheritance Hierarchy (/0.5) - Code the Main Classes using the minimum number of Classes (Hint: use inheritance) (/0.75) - Generate Getters and Setters (/0.75)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions