Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use for loop for test earning class and dont use string format Notes: - All mutator methods should only assign the param value if
please use for loop for test earning class and dont use string format
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started