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

  Your task is to design and implement a sorting

your task is to design and implement a sorting algorithmalgorithm that can sort nonnegative integers that fall within

  Study the code and implement the operator overloading

The Table Q3 on the next page is the code of a class named Circle. Study the code and implement the operator overloading for these relational operators ( , >=) for the Circle class. Then, write a test program that creates two instances of the Circle ..

  How does an applet get loaded into the browser

How does an applet get loaded into the browser? What is needed in the APPLET tag to cause an applet to be loaded from a JAR file?

  Create a web application for sheridan restaurant

Create a web application for Sheridan Restaurant Reviews that contains the following functionality - Display a table of all restaurants based on the city entered by the user

  Java program which performs the following

Write a Java program which performs the following: - Reads 25 integers into a 5 by 5 2-D array called R.

  Explain the importance of programming style concepts

The assignment task consists of implementing a tool which would assist the manager of a small company in scheduling employees -  Explain the importance of programming style concepts

  Write program that can be used to read an extract from a log

Write a program that can be used to read an extract from a log for one elevator and print the following statistics: the total \uptime", that is the total time the elevator was in service, Σ(tdown - tup) (in years).

  Produces a simple formatted report

For this lab you will write a Java program that produces a simple formatted report. The program will prompt the user to enter a file name. This file must contain information in a specific format (detailed below)

  Write a java binary search tree program

write a JAVA binary search tree program

  Design and implement a java program to determine the sum

Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the aver..

  Design a program that asks the user to enter a series of 20

Number Analysis Program: Design a program that asks the user to enter a series of 20 numbers

  Calculates the product of the following sequence

Write a java code that calculates the product of the following sequence of numbers using for/loop and do/while/loop

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