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 program that has an object type of contact

Create a program that has an object type of Contact. This contact will need to have the following attributes: Name, Birth Date, Phone Number, Address and Eye Color

  Create a circle class

create acircle class, which has one field, the radius. the class should contains two constructors: a no-argument constructor that set the radius to zero, and a constructor that takes a parameter to set the radius.

  Javascript program that asks the use

Design a javascript program that asks the user for a username with at least eight characters, beginning with a letter and including at least one digit. Next, write a validation loop to ensure that these conditions have been met

  Determine java application on web and structure functions

Determine the Java application on Web and explain how program structure functions. Explain the application in as much detail as possible.

  Write a java class that reads through a text file

You will write a Java class that reads through a text file of drawing commands and draws the appropriate shapes onto JFrames

  The williamsburg women''s club

The Williamsburg Women's Club offers scholarships to local high school students who meet any of several criteria. Write an application that prompts the user for a student's numeric high school grade point average (for example, 3.2), the student's num..

  Palindrome is a sequence of char that reads backward forwrd

A palindrome is a sequence of characters that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554, and 11611. Write an application called Palindrome.java that asks the user t..

  Part - 1build a graphical user interface for displaying the

part - 1build a graphical user interface for displaying the image groups cluster in jmjrst. design and implement using

  Dijikstra for undirected graph using simple scheme with

dijikstra for undirected graph using simple scheme with array and fibonacci heap and compare the performanceresults

  Design a class that can be used to hold information

Implement and design a class that can be used to hold information about a musical note - Prepare a complete java program the default constructor should set a note to a middle C quarter note.

  Using the java development kit and jgrasp

Using the Java Development Kit and jGrasp, develop a program in response to the following prompt:

  In this assignment you will be asked to implement a card

in this assignment you will be asked to implement a card game. you will need to make several design decisions for your

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