subject

Write a program that can be used to calculate the federal tax. the tax is calculated as follows: for single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. a person can also put up to 6% of his or her gross income in a pension plan. the tax rates are as follows: if the taxable income is- between $0 & $15,000, the tax rate is 15%- between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000- over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000the user should enter: - marital status- if the martial status is "married" ask for the number of children under the age of 14- gross salary (if the marital status is "married" and both spouses have income, enter the combined salary- percentage of gross income contributed to a pension fund. the program must consist of at least the following functions: a. function getdata: this function asks the user to enter the relevant datab. function taxamount: this function computes and returns the tax owedto calculate the taxable income, subtract the sum of the standard exemption, the amount contributed to a pension plan, and the person exemption, which is $1,500 per person.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:20, Ab20600
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, allison9746
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
image
Computers and Technology, 23.06.2019 21:00, shyshy1791
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
You know the right answer?
Write a program that can be used to calculate the federal tax. the tax is calculated as follows: fo...

Questions in other subjects: