[Solved] Define a class called Tax

$25

File Name: Define_a_class_called_Tax.zip
File Size: 235.5 KB

SKU: [Solved] Define a class called Tax Category: Tag:
5/5 - (1 vote)

The island nation of Balloo charges citizens an income tax each year the tax rate is based ln

earned income $0-9,000. tax rate 0

$10,000-$19,000 . 2% tax rate

20,000-29,000 . 3% tax rate

$30,000-39,000. 4% tax

$40,000 or more , 5%

define a class called Tax the class accepts the value representing the invisible income

include a constructor that accepts and initializes an instance variable representing the individuals salary

an accessor method that validates the salary as being positive value

a mutator method that determines how much tax an individual should pay

deifne the percentages as class constants

declare any instance variables you think necessary for this class

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Define a class called Tax
$25