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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:30, talyku7131
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
image
Computers and Technology, 24.06.2019 03:30, etxchrissy
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
image
Computers and Technology, 24.06.2019 15:30, pineapplefun
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, HavenShort3075
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 1
You know the right answer?
The marginal state income tax rates in Kansas for single people are: Range Tax Rate
$0 to $15...

Questions in other subjects:

Konu
Mathematics, 22.07.2021 20:30