Question: Description Create a new project as illustrated below: Project Specifications: Project Name: A2 LoginName (where LoginName is your own Sheridan login name). Package Name: loginname



Description Create a new project as illustrated below: Project Specifications: Project Name: A2 LoginName (where LoginName is your own Sheridan login name). Package Name: loginname (your own login name, in lower-case letters). Default: 30 days for Salaried-emp and 15 days for Hourly-emp. Hourly-emp Child class of Employee Private Hours_per_week:int Greater or equal 10. Private Hour_rate:double Greater oqual 15 and less than or equal 100. earnPerMonth():double vacationDays():int All required accessors and mutators. Salaried-emp MonthlySaraly:double Greater or equal 1000. earnPerMonth():double vacationDays():int All required accessors and mutators. TestEarning Main class for testing Notes: - All mutator methods should only assign the param value if it is valid, otherwise an IllegalArgumentException 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 assignment 2 project. - Create 4 different employees ( 2 from each type) then print all 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 any 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 employees. Q2: Answer this question after you finish the previous project: Q2: Answer this question after you finish the previous project: Write briefly and using your own words a simple comparison between abstract and interface by filling the following table (fill the by any subject/topic of your choice): Description Create a new project as illustrated below: Project Specifications: Project Name: A2 LoginName (where LoginName is your own Sheridan login name). Package Name: loginname (your own login name, in lower-case letters). Default: 30 days for Salaried-emp and 15 days for Hourly-emp. Hourly-emp Child class of Employee Private Hours_per_week:int Greater or equal 10. Private Hour_rate:double Greater oqual 15 and less than or equal 100. earnPerMonth():double vacationDays():int All required accessors and mutators. Salaried-emp MonthlySaraly:double Greater or equal 1000. earnPerMonth():double vacationDays():int All required accessors and mutators. TestEarning Main class for testing Notes: - All mutator methods should only assign the param value if it is valid, otherwise an IllegalArgumentException 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 assignment 2 project. - Create 4 different employees ( 2 from each type) then print all 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 any 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 employees. Q2: Answer this question after you finish the previous project: Q2: Answer this question after you finish the previous project: Write briefly and using your own words a simple comparison between abstract and interface by filling the following table (fill the by any subject/topic of your choice)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
