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

  Determine the effect of this capacitor bank on line loadings

Determine the effect of this capacitor bank on line loadings and the total real power losses (shown immediately below bus 2 on the one-line).

  Program on inline internal procedures deposit and withdraw

Program on Inline internal procedures deposit and withdraw.

  Which of the subsequent statements is correct with regard

Which of the subsequent statements is correct with regard to distributed systems ?

  How do you think the use of cloud computing can affect

How do you think the use of cloud computing can affect individuals, and organizations when they want to develop information systems?

  What are the four parts of a count-controlled loop

What are the four parts of a count-controlled loop? Give two reasons why pretest loops are more commonly used than posttest loops.

  Draw a venn diagram for each function in given problem

Draw a Venn diagram for each function in problem.

  How will the procedures for making changes to user accounts

How will the procedures for making changes to the user accounts, such as password changes, be different for remote users?

  Why choose database will return the k-th smallest value

as queries are expensive you would like to compute the median using as few queries as possible. Give an algorithm that fins the median value using at most O(logn) queries.

  Develop a banking application using the account hierarchy

Develop a polymorphic banking application using the Account hierarchy you created. Using a foreach loop, iterate over each account in the array.

  Develop a library program that maintains library book list

For this programming project, you will develop a library management program that maintains the library book list and the library client (i.e., customer) list, as well as the interactions between the two lists.

  Create a set of use cases for health club membership system

Create a set of use cases for the following health club membership system: When members join the health club, they pay a fee for a certain length of time.

  Design a program that bounces a blue ball inside a jpanel

design a program that bounces a blue ball inside a JPanel. The ball should begin moving with a mousePressed event. When the ball hits the edge of the JPanel, it should bounce off the edge and continue in the opposite direction. The ball should be u..

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