Define a class called incometax

Assignment Help JAVA Programming
Reference no: EM131578690

The island nation of baloo charges its citizens an income tax each year. The tax rate is based on the following:
Earned Income - tax rate
$0-$9,000 - 0%
$10,000-$19,000 - 2%
$20,000-$29,999 - 3%
$30,000-$39,999 - 4%
$40,000 or more - 5%

define a class called IncomeTax. The class accepts a value represeting the individual's income.

In your solution, account of the following:
a. a constructor that accepts and initializes an instance variable representing the individual's salary
b. an accessor method that validates the salary as being a positive value
c. a mutator method that determines how much tax an individual should pay
d. define the percentage as class constants
e. declare any instance variables that you think are necessary for this class

Reference no: EM131578690

Questions Cloud

Describe three critical issues of the twenty-first century : describe three critical issues of the twenty-first century in policing. In considering ethical leadership challenges discuss how problems associated
What is the total amount of interest expense : Exercise - Effect of a line of credit on financial statements. What is the total amount of interest expense paid for 2014
Find the expected value of x : Show that if a random variable X is defined on a sample space S (you may assume X has values x1, x2, ... xk as above) then the expected value of X.
Explain the rational-choice theory : To what extent does rational-choice theory make sense or not make sense in view of the evidence reported in the article Rough Justice
Define a class called incometax : define a class called IncomeTax. The class accepts a value represeting the individuals income - define the percentage as class constants
Which of the persons may be more prone to a mood disorder : Which of the persons may be more prone to a mood disorder? Apply the most current DSM criteria. What are some of the treatment strategy risks or consequences?
Explain how cctv systems can cause more crime : Explain how CCTV systems can cause more crime for delinquents and do you think public attitudes towards CCTV systems differ by age and or gender
Write a java application titled mystringtest : Write a Java application titled MyStringTest that creates an instance of the String class and initializes this instance with a String literal.
Write a program to test your class myrectangle : Write a program to test your class MyRectangle. In the client program, create two MyRectangle objects. Assign a width and height to each of the two objects

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a on the popularity of java

Write a 4-5-page research-oriented paper in APA format that focuses on the "Popularity of Java". The paper must cite at least 5 references, not including the textbook or the Bible.

  Design class to represent any household item

Design and implement your own simple class to represent any household item of your choices (toaster, fan, and hair dryer, piano....)

  Discussion htmlcssjavascript placementnbspplease respond to

discussion htmlcssjavascript placementnbspplease respond to the followingcompare and contrast the process of adding

  Write a gui program that maintains a set of contacts

Write a GUI program that maintains a set of contacts. Each contact has name, address, and a list of phone numbers. This contacts should be be stored in a HashMap

  Write a program to convert kilograms into pounds

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places.

  Design a system using jsp in netbeans

The requirement is to design a system using jsp in netbeans - You need to add other functions such as search by text, advance search, quantity update by admin, quantity check at the checkout, login and registering page, adding a spcial discount if ..

  Perform an internet search

Perform an Internet search for Java® applets. Explore various websites that feature free Java® applets. Write a 400- to 500-word paper, addressing the following:

  Create an array of objects of the sub-class

Create an array of objects of the sub-class. Add two objects to the array. Loop through the array and print what each element is constructed from.

  Create a function that multiplies numeric matrices

Create a function that multiplies numeric matrices on an element-by-element basis.

  1write a program that uses joptionpanes to perform the

1.write a program that uses joptionpanes to perform the following stepsmiddotfirst display a welcome message to your

  Write a program to generate a data file named wi ndl. dat

Write a program to generate a data file named wi ndl. dat

  Solving programming problems

Write a computer program that will figure out the total of an order when given the amount of the order ($1000) and a sales tax rate of eight percent.

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