Include another public method in the Employee class from Pencil and Paper Exercise 3. The method should calculate an Employee object’s new salary, which is based on the raise percentage provided by the program using the object. Before making the calculation, the method should verify that the raise percentage is greater than or equal to 0.0. If the raise percentage is less than 0.0, the method should assign the number 0.0 as the new salary.
REFERENCE: Exercise 3.
Include two additional public methods in the Employee class from Pencil and Paper Exercise 2. One method should allow a program to view the contents of the salary data member. The other method should allow a program to view the contents of the employee name data member.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.