Reference no: EM13881390
A sales company wants to have a program to keep track of their employees' pays per each quarter. There are two types of employees: Managers and SalesReps. Note that a manager has a fixed monthly income of $3,500 but a sales representative has a base salary of $2,000 plus a 5% commission rate of the sales amount.
Come up with class declarations in which one class is an abstract class, and other classes are derived from the abstract class. The classes will be used for a polymorphic application. The derived classes should have at least two public member functions. Submit the following items:
-Abstract class declaration.
-first derived class declaration.
-second derived class declaration.
- main( ) that contains declarations of objects and use objects to call their member functions.
Create a class template that contains two private data members: T * array and int size. The class uses a constructor to allocate the array based on the size entered. There is member function that allows the user to fill in the array based on the size. In addition, there is a member function that sorts the array and displays the sorted elements. Use the destructor to delete the array. Develop the main ( ) to create two objects to call member functions. As a result, the first object will hold its array of double type, and the other will hold its array of the int type.