Create a class that represents an employee
There are 2 types of employees: Developer and Recruiter
Both employees should store their name, base_salary (that they earn in every hour), and the hours they worked
- Base Salary: 20 usd in every hour
- Base Salary: 15 usd in every hour
All the employee types should take the name as a parameter in their constructors
Methods:
It should raise the base salaries by 5 usd for the developers and 4 usd for the recruiters
It should take a number as an argument and increment the worked hours with it. It should throw an exception if the argument is less than 4.
It should set the worked hours to zero than it should return the required total salary (multiply the base salary with the worked hours)
It should return how much hours the employee woked since the last pay
It should return the name of the employee
It should return it's status as string like: Name: John Doe, Woked Hours: 53, Base Salary: 25
Create a class that represents a Company
The company should be able to store employees
(you can use the std::vector) It should store pointers to the employees
Each company should have a money balance
The inital balance should be given by a parameter in it's constructor
Methods:
It should take a pointer to an employee and add it the the vector
It should take a number as an argument and top up the balance with it.
It should return the name of the employee that has the most worked hours
It should give a raise to each employee that has more work hour than 100
It should return it's status as a string like:
Balance: 5000
Employee count: 2
Employees:
Name: John Doe, Woked Hours: 53, Base Salary: 25
Name: Mary Jane, Woked Hours: 63, Base Salary: 30