Question: Do in Java; Please edit my code Problem Statement Implement the Employee and Validator classes based on the class diagram and description given below Employee




Problem Statement Implement the Employee and Validator classes based on the class diagram and description given below Employee a name: String o monthly Salary: double age: int calculateAnnualSalary0: double getName(): String setName(name String); void getMonthlySalary0: double o setMonthly Salary(monthly Salary: double): void getAgeint setAge(age int); void InvalidNameException InvalidNameException(message: String) Validator o validateName name: String): boolean validateAgeage: int): boolean o validate employee: Employee) void InvalidAgeException TovalidAgeException message: String Method Description Employee Employee calculateAnnualSalaryo Calculate the annual salary of the employee after adding an additional amount to the monthly salary based on the age with the help of the below table Age Additional amount 18
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
