Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C++ IMPORTANT: use inheritance Create it in FILES: (main.cpp, employee.h, employee.cpp, hourly_employee.h, hourly_employee.cpp, commissioned_employee.h, commissioned_employee.cpp) THE USER ENTER DATA (use cin) Make an employee

IN C++

IMPORTANT: use inheritance

Create it in FILES: (main.cpp, employee.h, employee.cpp, hourly_employee.h, hourly_employee.cpp, commissioned_employee.h, commissioned_employee.cpp)

THE USER ENTER DATA (use cin)

Make an employee class. Some instance methods that the class should include are:

  • Rename
  • Get the name

Also, define two classes: hourly employee and commission employee. Objects of class hourly employee must implement the operations to change and get hours worked, change and get hourly wage, calculate wage (no overtime), and print their information. The hourly employee class inherits from the employee class. The objects of the class employed by commission must implement the operations to change and get the sales made, change and get the commission percentage, calculate the salary and print its information. The commission employee class inherits from the employee class. All classes must implement their respective constructors with corresponding parameters.

*Reminder: The employee class is an abstract class and can be used as a superclass of other classes.*

ADD:

image text in transcribed
- default constructor - copy constructor - destructor - operator = - set - get - operator == - operator

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

Explain the strength of acid and alkali solutions with examples

Answered: 1 week ago

Question

Introduce and define metals and nonmetals and explain with examples

Answered: 1 week ago

Question

5. Discuss the role of the Web in career management.

Answered: 1 week ago