Create a class named employee and its subclasses

Assignment Help JAVA Programming
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.

Reference no: EM13809908

Questions Cloud

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

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a gui version of the game mini sudoku.

Each row has the numbers 1 to 6,Each column has the numbers 1 to 6,Each group of 2 rows by 3 columns also has the numbers 1 to 6.

  Write a program that reads in the file

Write a program that reads in the file and exports it to a standard CSV format. For the records above, the output format would be Freddy Kruger, 1313 Mockingbird Lane, Houston, Texas Billy Thornton, 1010 Slingblade Street, Houston, Texas

  Write a program to simulate the behavior of the philosophers

Write a program to simulate the behavior of the philosophers, where each philosopher is a thread and the chopsticks are shared objects.

  Write the buttonhandler inner class

The output string should say something like this: "The RC time constant for resistance 1000 and capacitance .000001 is 0.001 seconds." Clicking one of the buttons generates the event which causes the program to do the selected calculation and upda..

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Create a class in java to enable its object to be persiste

How do you create a class in Java to enable its object to be persistent? What are Java data streams and how are they used to facilitate storage and retrieval of persistent objects?

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  Prepare a java simulation program

Given a hash function h, prepare a java simulation program to determine each of the subsequent quantities after 0.8*tablesize random keys have been generated. The keys should be random integers.

  Write a statement that writes both of their values

Given an interger variable i and floating-point variable f, write a statement that writes both of their values to standard output in the following format: i=value-of-i f=value-of-f.

  Write a program to generate an ascii-graphics

Write a program to generate an ASCII-graphics of an equilateral triangle. The input to your program is a single integer number representing the length of the side of the triangle. This number must be 2 or larger.

  Create application uses two-dimensional arrays

Create an application which uses 2-dimensional arrays to keep track of 5 students' grades, with each student having 3 different classes.

  Create four classes

Create four classes: Account.java, Checking.java, Savings.java, and AccountArray.java.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd