Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago