subject

[12] write a c++ console application that calculates the federal tax. the tax is calculate as follows: β€’ for single people, the standard tax exemption is $4,000; β€’ for married people, the standard tax exemption is $7,000. a person can also put up to 6% of their gross income in a pension plan. the tax rates are as follows, by taxable income: a) between $0-15,000 – the tax rate is 15%; b) between $15,001-40,000 – the tax is $2,250 plus 25% of the taxable income over $15,000; c) over $40,000 – the tax is $8,460 plus 35% of the taxable income over $40,000. prompt the usr to enter the following information: β€’ marital status οƒ˜ if the marital 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 frosse income contributed to a pension fund your program must consist of at least the following functions: a) getdata: this function asks the user to enter the relevant data; b) taxamount: this function computes and returns the tax owed. to calculate the taxable income, subtract the sum of the sandard exemption, the amount contributed to a pension plan, and the personal exemption, which is $1,500 per person. (note: if married couple has two children under the age of 14, then the personal exemption is $1,500*4 = $6,000.)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
)a grad student comes up with the following algorithm to sort an array a[1..n] that works by first sorting the first 2/3rds of the array, then sorting the last 2/3rds of the (resulting) array, and finally sorting the first 2/3rds of the new array. 1: function g-sort(a, n) . takes as input an array of n numbers, a[1..n] 2: g-sort-recurse(a, 1, n) 3: end function 4: function g-sort-recurse(a, `, u) 5: if u Ò’ ` Ò‰€ 0 then 6: return . 1 or fewer elements already sorted 7: else if u Ò’ ` = 1 then . 2 elements 8: if a[u] < a[`] then . swap values 9: temp Ò† a[u] 10: a[u] Ò† a[`] 11: a[`] Ò† temp 12: end if 13: else . 3 or more elements 14: size Ò† u Ò’ ` + 1 15: twothirds Ò† d(2 Γ’β€” size)/3e 16: g-sort-recurse(a, `, ` + twothirds Ò’ 1) 17: g-sort-recurse(a, u Ò’ twothirds + 1, u) 18: g-sort-recurse(a, `, ` + twothirds Ò’ 1) 19: end if 20: end function first (5 pts), prove that the algorithm correctly sorts the numbers in the array (in increasing order). after showing that it correctly sorts 1 and 2 element intervals, you may make the (incorrect) assumption that the number of elements being passed to g-sort-recurse is always a multiple of 3 to simplify the notation (and drop the floors/ceilings).
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
You know the right answer?
[12] write a c++ console application that calculates the federal tax. the tax is calculate as follow...
Questions
question
English, 02.03.2021 18:10
question
Spanish, 02.03.2021 18:10
question
Mathematics, 02.03.2021 18:10