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

  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