Question: please use for loop for test earning class and dont use string format Notes: - All mutator methods should only assign the param value if
Notes: - All mutator methods should only assign the param value if it is valid, otherwise an IllegalArgument Euception is thrown with a specific, yet concise and informative error message. - The toString() returns the Employee object as a String in the following format: Id Name Employee Category Monthly Salary Vacation Days Main class (TestEarning) Program: - This program must be in the class called TestEarning in your assignmeet 2 project. - Create 4 different emplovees (2 from each type) then print atl the information in tabular format as shown in the sample below: Id Name Employee Category Monthly Salary Vacation Days - This program prompts the user to enter all the required values for the data members. - Use the methods of your employee class to ensure that the user's input is valid. If aryy input is not valid, repeatedly prompt the user to enter data until that data is valid. - After the user has entered all 4 input values: - Display the employee object as a String. - You need to collect information for 4 employeer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
