Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

How do databases support organizational business processes?

Answered: 1 week ago