Write a class and a java program to use the class

Assignment Help Computer Engineering
Reference no: EM132197003

Write a class and a Java program to use the class. 

Create a class called Incomo 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 hourlyRate respectively.

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

4. getincomeYTD: it returns the incomeYTD value 5. calculateincome: it receives a double parameter and calculates and returns the current income amount for the current hourly rate (income = hourlyRate times workingHours)

Reference no: EM132197003

Questions Cloud

Display the number of circle objects that have been created : Write a class Test Circle with a main method that displays the number of Circle objects that have been created.
Write a constructor that accepts arguments for each member : Write a constructor that accepts arguments for each member variable, appropriate mutator functions that store values in these member variables.
Write the code for an applet or gui that has three buttons : Write the code for an applet or GUI that has three buttons labeled Red, White, and Blue.
Write a persuasive and researched essay : Pick an item of technology (your choice); then write a persuasive and researched essay - Is the item of technology good or bad for the United States
Write a class and a java program to use the class : A constructor that receives 2 double parameters; the constructor will use these parameters to initialize the incomeYTD and the hourlyRate respectively.
A constructor that accepts a parameter of type double : Write a class named GasTank containing: An instance variable named amount of type double , initialized to 0.
Write accessor and mutator functions for radius : Write a class declaration named Circle with a private member variable named radius. Write accessor and mutator functions for radius.
Write a client program that connects to the server : Write a client program in C/C++ that connects to the server you wrote in problem.
Discuss an episode of government intervention : BFW2341 International Financial Management - Monash university - Evaluation of government intervention in the foreign exchange market

Reviews

Write a Review

Computer Engineering Questions & Answers

  Would we expect map skew to be a bigger problem

Would we expect map skew to be a bigger problem when there are ten reducers or a hundred reducers?

  What it is role is in the overall program

Improve the program's functionality by utilizing at least 5 of the concepts from the list below. Document how the game works, including how you utilized each of the chosen concepts and what it's role is in the overall program.

  As a consultant to a large transaction-oriented web-based

in memory databases imdb are making some significant inroads. as a consultant to a large transaction-oriented web-based

  Provide an example of real world e-commerce

Provide an example of real world e-commerce for business to consumer(B2C) and one example for consumer (c2c)e-commerce?

  What is the difference between components and artifacts

In a sequence diagram, how do you represent a newly created object? What is the difference between components and artifacts?

  How to get from one room of a one-story building

If we attempt to go to a room that does not have a ringing phone, the program should not produce any output.

  Design a digital logic system that lights a lamp

button is presses if the a disk played is a hit and is not pressed if the disk played is a miss. plan a digital logic system that lights a lamp when a majority of the members think the disk is a hit.

  You have just been hired as an information security

you have just been hired as an information security engineer for a large multi-international corporation.

  Discuss problems or limitations related to the functionality

Identify at least two problems or limitations related to the functionality. The limitations could be new functions that could be useful to a potential customer

  Providing the justification

Joe the janitor is recorded in the company security camera one night taking the pictures with his cell phone of office of CEO after he is done with cleaning. What will you do and provide justification for your actions?

  Write program in java to count zeros in factorial of number

Write a program in java to count the zeros in a factorial of a given number?

  Modify the stack directly or use the existing pop operation

To implement this operation, you could either modify the stack directly or use the existing Pop operation. What would be the advantages and disadvantages of each method?

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