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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  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.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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