Create class hourlyemployee that inherit from class employee

Assignment Help JAVA Programming
Reference no: EM131318516

Java

(Creating a New Subclass of Employee) Other types of Employees might include SalariedEmployees who get paid a fixed weekly salary, PieceWorkers who get paid by the number of pieces they produce or HourlyEmployees who get paid an hourly wage with time-and-a-half-1.5 times the hourly wage-for hours worked over 40 hours.

Create class HourlyEmployee that inherits from class Employee and has instance variable hours (a double) that represents the hours worked, instance variable wage (a double) that represents the wages per hour, a constructor that takes as arguments a first name, a lastname, a social security number, an hourly wage and the number of hours worked, set and get methods for manipulating the hours and wage, an earnings method to calculate an HourlyEmployee's earnings based on the hours worked and a toString method that returns the HourlyEmployee's String representation. Method setWage should ensure that wage is nonnegative, and setHours should ensure that the value of hours is between 0 and 168.

Reference no: EM131318516

Questions Cloud

Discuss what lessons you can learn for your own venture : Discuss what lessons you can learn for your own venture. Explain what useful new elements you can incorporate into your business model. Discuss how these elements tie to your strategy.
Compute net profit margin and return on assets : Compute the Net profit margin, Return on assets, Total asset turnover, DuPont analysis, Operating income margin, Return on operating assets, Operating asset turnover for 2011, 2010, and 2009:
Pay for rice stock today : Rice, Inc., recently paid a dividend of $2.80 per share. The dividend on Rice's stock is expected to grow at a rate of 6% per year forever. Your required rate of return on Rice's is 11%. How much would you be willing to pay for Rice's stock today?
How that right has affected procedures implemented : Choose 1 of the specific rights from above, and discuss how that right has affected procedures implemented in law enforcement, the courts, or correctional facilities
Create class hourlyemployee that inherit from class employee : Create class HourlyEmployee that inherits from class Employee and has instance variable hours (a double) that represents the hours worked, instance variable wage (a double) that represents the wages per hour.
What is the role of the case manager in the referral process : How important is it to network and collaborate with other providers? How do case managers find and select resources? What is the role of the case manager in the referral process?
What is the amount of the net cash flow for each year : What is the amount of the investment outlay required at the beginning of the project?
Common rule of thumb for short-term : The most common rule of thumb for short-term operations is to finance long-term needs for capital with long-term sources and short term needs with short-term sources. Given that rules of thumb are for normal operations, for the following situation..
How did this film differ from escape from fire : Watch the film The Waiting Room (62 minute version) and write a one page response. How did this film differ from Escape From Fire? Either different format or structure to the film? Are the issues the same?  If not, how different

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program which adds two matrices

Write a program which adds two matrices together and displays the sum - Two arrays will contain user input, and the third array will be used to contain the sum of the two arrays.

  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.

  Calculates the price of carpeting for rectangular rooms.

Once you have written these classes, use them in an application that asks the user to enter the dimensions of a room and the price per square foot of the desired carpeting. The application should display the total cost of the carpet.

  A java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Calculate state income tax for a single taxpayer

The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI

  Create class to encapsulate the data and behavior of product

Create a class to encapsulate the data and behavior of a product in a store's inventory. The class should have the following data for an inventory item.

  Assessment taskyour task is to develop a java application

assessment taskyour task is to develop a java application that allows the user to read travel booking data from a text

  Write a custom java exception class named badarrayexception

A constructor taking a String parameter (the exception message) that must be passed to the parent Exception(String) constructor.

  Retrieve an array of all list elements on the page

Function testCountListElements should simply retrieve an array of all list (html tag li) elements on the page and assert that their total count is three

  Add event handling to the button find out the value the

make a windows program in java that has a labeled text field for the price of a meal. there are different discounts for

  Constructor that initializes the three automatic properties

Create a class called Date that adds three pieces of information as automatic properties-a   month (type int), a day (type int) and a year (type int).

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

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