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 are the goals of each mechanism

In a virtual memory system, a process may be allocated more or fewer frames of memory by (at least) two different mechanisms or policies.

  Similarities and differences to issue of regulation

Describe the relevance of each of these similarities and differences in order to issue of regulation of the Internet.

  Give a regular expression for recognizing all occurrences

Give a regular expression for recognizing all occurrences of four or fewer consecutive l's in a binary string.

  Why cybixx should invest more capital into a virtual server

Provide a 3- to 5-slide PPT to management on why Cybixx should invest more capital into a virtual server environment rather than a traditional hardware setup.

  Show the sum of these two numbers as an int

Using C++ to write this simple code. Say "Hello User" to the user when the program is created.

  Determine which sport the last school spent most money on

Determine which sport the last school spent the most money on. Determine in which sport the third school had the most students participating.

  For the flow field plot several streamlines

The stream function for an incompressible, two-dimensional flow field is given. - For the case of a source at the origin with a uniform free stream plot the streamline ψ = 0.

  Estimating the performance of processor

Without any hardware support, context switch time is not zero. This states that the actual performance will not be as good as the ideal above.

  Which features of server 2012 would you choose

You have an option to implement it on Windows Server 2008 or Windows Server 2012.

  Discuss mathematical operators and multiple operations

Write a program which will accept any monthly savings amount, any yearly interest rate and then calculates the balance

  Which of the following return an array

CSS vendor prefixes are a way for browser companies to add support for experimental features before those features become part of the CSS specification.

  Write an identity for the opt value

Imagine further that each such function has maximum value at most s, corresponding to the project being fully finished.

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