Reference no: EM13809908
1. Design and implement a Employee class along with 3 subclasses using the following guidelines:
Create a class named Employee and its 3 subclasses named Contractor, HourlyEmployee, FullTimeEmployee. The class Employee hold first name and last name information, and defines two methods, respectively computing pay and vacation hours, that needs to be overwritten in the subclasses. Contractors and hourly employees do not accumulate vacation hours, and have an hourly rate and a number of worked hours; for hourly employee, a deduction of 6.2% made used for social security. FullTimeEmployee have just a fixed pay check.
Each class must have a constructor defining first name and last name. You need to define the data fields specific to each class, and provide the corresponding accessors and modifiers.
2. Finally, create a Java test class. In your test class you should at a minimum: a) Construct 200 instances of each subclass, b) set up the corresponding characteristics, c) print the name of your employee d) print the pay amount and the accumulated vacation amount.
3. Your programs should compile and run without errors.
Deliverables include Java files for the Employee class and each subclass, and a Java test file.
Write case study paper about the wallingford bowling center
: Write a case study paper about "The Wallingford Bowling Center".
|
Effect of data rates on each part of the network
: Explain the effect of data rates on each part of the network. Describe strategies to ensure the availability of network access in switched and routed networks
|
Which of the following best characterizes culture
: Which of the following best characterizes culture
|
Write a program that reads integers
: Write a program that reads integers,finds the largest of them,and counts its occurrences 3 5 2 5 5 5 0;the program finds that the largest is 5 and the occurrence count for 5 is 4.(Hint:Maintain two variables, max and count.max stores the current m..
|
Create a class named employee and its subclasses
: Create a class named Employee and its 3 subclasses named Contractor, HourlyEmployee, FullTimeEmployee. The class Employee hold first name and last name information, and defines two methods, respectively computing pay and vacation hours, that needs..
|
Define conflict-management techniques
: In which of the following conflict-management techniques are conflicts resolved by seeking an advantageous solution for all the parties involved
|
Write an essay about nietzsche and his idea of the overman
: Write an essay about Nietzsche and his idea of the overman/superman,the first page can be about him and who he is as a person and philosopher then tie it in into his idea of the superman.
|
Create a base banking account
: Create a base banking account. Decide what characteristics are common for checking and saving accounts and include these characteristics in the base class
|
Create a jsp that displays the student name
: Create a JSP that displays the student name and the current score, given the EMPLID and class ID. For each class, a text file is used to store the student name, EMPLID, and current score
|