subject

The marginal state income tax rates in Kansas for single people are: Range Tax Rate
$0 to $15,000 3.1%
15,001 to $30,000 5.25%
30,0001 and up 5.7%

For example, someone who earns $35,000 will pay 3.1% tax on the first $15,000 of her salary, 5.25% on the next $15,000, and 5.7% on the remaining income. Complete the function compute_tax that uses a multiway if-statement to compute and return the total tax due for the salary stored in the argument named salary. Test your code for each of the following salaries:

a. $35,000 (tax due should be $1,537.50)
b. $25,000 (tax due should be $990.00)
c. $5,000 (tax due should be $155.00)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:30
Gerard is currently working as an entry-level customer support technician, but he would like to someday become a software developer. what is the best first step to understand what he should do? ask his manager for a new job or at least a job recommendation study graphic design in order to obtain the necessary skills use career resources to investigate what skills and education are required work part-time as an entry-level web developer question 13 (true/false worth 6 points) (08.03 lc) career resources are used to explore career options and find career information. true false question 14(multiple choice worth 6 points) (08.01 mc) classify the following skills: writing html code, evaluating color theory, using design principles. hard skills interpersonal skills people skills soft skills question 15 (true/false worth 6 points) (08.03 lc) a mentor is a person who is advised, trained, or counseled by a trusted mentee. true false
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
You know the right answer?
The marginal state income tax rates in Kansas for single people are: Range Tax Rate
$0 to $15...
Questions
question
English, 28.07.2021 15:40
Questions on the website: 13722363