Computers and Technology

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)

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:20, sosick90501
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
image
Computers and Technology, 23.06.2019 14:30, HarryPotter10
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
image
Computers and Technology, 24.06.2019 02:30, Esmail
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
image
Computers and Technology, 24.06.2019 17:00, GreenHerbz206
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
Do you know the correct answer?
The marginal state income tax rates in Kansas for single people are: Range Tax Rate
$0 to $15...

Questions in other subjects: