Calculates and returns the current income amount

Assignment Help Computer Engineering
Reference no: EM132196994

Write a class and a Java program to use the class. Part 1. Create a class called Income that contains the following:

1. Two (2) instance variables a double called "IncomeYTD" and double called "hourlyRate" The class should also include the following methods:

2. a constructor that receives 2 double parameters; the constructor will use these parameters to initialize the incomeYTD and the hourlyRato respectively.

3. setincomeYTD: it receives a double parameter and assigns it to the incomeYTD.

4. getincomeYTD: it returns the incomeYTD value

5. calculatelncome it receives a double parameter and calculates and returns the current income amount for the current hourly rate (income = hourlyRate times workingHours)

Reference no: EM132196994

Questions Cloud

Write a client class to test all your methods : Write a class encapsulating the concept of a Student, assuming that a student has the following attributes: last name, first name, id, array of grades.
Write a class encapsulating a music store which inherits : Write a class encapsulating a music store, which inherits from Store. A music store ahs the following additional attributes: the number of titles it offers.
Write a class that keeps track of the top five high scores : Write a class that keeps track of the top five high scores that could be used for a video game.
An instance variable named amount of type double : A method named useGas that accepts a parameter of type double . The value of the amount instance variable is decreased by the value of the parameter .
Calculates and returns the current income amount : Two (2) instance variables a double called "IncomeYTD" and double called "hourlyRate" The class should also include the following methods.
Write a client program that allows the user to pick one : Write a client program that allows the user to pick one of your three spell checkers (the unbalanced BST, the balanced BST, or the trie).
Represent a single stock in someones investment portfolio : Write a class StockHolding. The purpose of a StockHolding object is to represent a single stock in someone's investment portfolio.
Write a class teacher that contains the attributes teacher : Write a class Teacher that contains the attributes teacher name and address. It also contains member functions to input and display its attributes.
Calculate the logarithmic mean temperature : Derive the performance equation for an ideal PFR - Derive the performance equation for an ideal CSTR - What would you recommend to management with regard

Reviews

Write a Review

Computer Engineering Questions & Answers

  What javascript variable is associated with z-index property

What JavaScript variable is associated with the z-index property? What exactly is stored in the screen X and screen Y properties after a mouse click?

  Write the polynomial method equals-difference

Write the Polynomial method equals_difference and integrate it into the calculator. Calculates a Polynomial object by multiplying p by the single Term t.

  What medical record number would you expect to find

In a terminal digit filing system, you see the file guide. What medical record number would you expect to find to the right of that file guide? Which one of the following statements about terminal digit filing is true?

  Write an expression for the number of single dollars

Write an expression for the number of single dollars that would have to be paid.

  Write a function that will receive one vector of numbers

Using MATLAB write a function that will receive one vector of numbers as an input argument, and will return two vectors.

  How does this differ from stdm

(a)how does this differ from STDM? Would it increase the effective use of the shared medium? Justify your answer.

  Do you think they are applied evenly across the process

Do you think they are applied evenly across the process or are some concentrate in one more framework activities?

  Regulating the content of internet

Specify to what extent there should be regulation of the content on the Internet, if at all? State the factors and principles the federal government must take into account when considering the indecency regulation issues.

  Discuss the header elements of the different messages

Find the "Received:" field in the headers and write down as many DNS names or IP addresses as you can

  Preparing a software requirements document

Preparing a Software Requirements Document for my Case Study, and my solution for this Case was

  Name the units of absorptivity

Name the Units of absorptivity if it has any units.

  Discuss the mass flow rate

In film cooling the primary effect is believed to be due to the energy put into or taken out of the boundary layer, rather than the mass of fluid injected.

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