Question: In C++ 1. Design and implement in C++ the class modeled in the diagram of figure 1. Review in the Specifications section some basic requirements


1. Design and implement in C++ the class modeled in the diagram of figure 1. Review in the Specifications section some basic requirements that you should consider. 2. Design test cases that allow you to test general cases of your class. 3. Based on the test cases, add an application to implement the test cases. Figure 1. Class diagram. Employee class and Date class. 1. Includes the designated constructors for each class. 2. Includes the required setters and getters for both classes. 3. raiseSalary. The method receives as a parameter an increase percentage between 1 and 10%. If the received value is not within this range, no increment will be applied and the value will be displayed. message on screen "Invalid percentage, no salary increase". If the percentage is correct, then the employee's salary must be increasec 4. In your application, 1. Declare two employees, emp1 and emp2. 2. The employee emp1 is called "Pepe", earns 10000 and his birthday is May 19. The employee emp2 is called "Rocio", earns 12000 and has a birthday on January 1st. (Initial data that does not need to be requested from the user, you can put it in the constructor) 3. Displays the complete data of the two employees on the screen. Accommodates data from each employee in the same line. 4. You must ask the user which employee he selects. 5. Put a menu (1. Raise salary, 2. Exit): 1. Select 1 and request % salary on the screen: 1. Try to raise Pepe's salary by 15%.2. Shows Pepe's name and salary on the screen. 3. Run your program again and now: 1. Try to raise Pepe's salary by 5%. 2. Shows Pepe's name and salary on the screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
