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

  Program to maintain list of names with associated numbers

Write a complete subclass of SimpleList named ListSet where the ‘add' method is overridden such that a ListSet will never contain duplicate items - Write a program to maintain a list of names with associated telephone numbers.

  Java program simulate a network

Java program simulate a network

  Design a java application that will read a file containing

Design a Java application that will read a file containing data

  Write a query to display all unique job codes

Write a query to display all unique job codes from the EMPLOYEES table. Display the last name concatenated with the job ID (separated by a comma and space) and name the column Employee and Title

  Display all workshops in a list in the startup form

Create a database to replace the data file that was used for input in Chapter 1. In it, create a database table named Workshops that contains the workshop ID, category ID, number of days, cost of the workshop, and workshop title.

  Create a scatterplot visualization

Create a Scatterplot visualization that reads data from a comma-separated text file. The visualization code should be written in Java using Processing.

  Vehicle in vehicle.java

Create a class called Vehicle in Vehicle.java with instance variables make (such as Ford, GM, Chrysler, Toyota, or Honda), year, and horsepower (200, 300, and 400). Add the necessary constructor and set and get methods.

  Write a java application that calculates and displays

The application should ask the user to enter the name of the property owner and the assessed value of the property for each owner (total N owners) and calculate the property tax.

  Write program to keep track of a hardware stores inventory

Write a program to keep track of a hardware store's inventory. The store sells various items. For each item in the store, the following information is kept: item ID, item name, number of pieces in stock, manufacturer's price of the item, and the s..

  Write a java program to simulate a calculator

Write a JAVA program to simulate a calculator. Your program should take two numbers and an operator (+,-,*,or/), from the user in the following format: number1 operator number2 (For example 5.6 + 7.2) and print the result.

  Write a java program

To become familiar with how infix expressions can be converted to postfix expressions.

  Prepare a program that utilizes your computer class

Prepare a program that utilizes your Computer class. Define a Computer class that can be used to describe your computer.

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