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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 25.06.2019 05:00
Arun is 5 years older than anu. five years ago, the ratio of their ages was 3: 2 . find their present age
Answers: 2
question
Computers and Technology, 25.06.2019 05:30
Radar devices are used by law enforcement to be sure that individuals are driving safely. they tell the officer how fast the vehicle is traveling at that specific moment in time. the radar device determines the vehicle's a. instantaneous speed. b. acceleration. c. maximum velocity. d. average speed.
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
question
Mathematics, 27.04.2021 19:30
question
Mathematics, 27.04.2021 19:30
Questions on the website: 13722367