The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 406 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a C++ program, When you fill out oneA????1s income tax, you take your income, subtract certain amounts (personal exemption, a standard deduction, gifts to charity, etc), and compute your net taxable income. Given your net income, your tax is computed using the following table (for 2014): Marginal Tax Rate Single Filers 10% Not over $9,075 15% $9,075 - $36,900 25% $36,900 A????1 $89,350 28% $89,350 A????1 $186,350 33% $186,350 A????1 $405,100 35% $405,100 - $406,750 39.6 Over $406,750 For example, if your net income is $22,000, your tax is 10% of 9,075Â Â Â Â Â Â +Â Â Â Â 15% of (22,000 ? 9,075) which computes to $2,846.25
Write a C++ program that reads in a personA????1s net taxable income, and prints the amount of tax using the above table. You need only include inomes below $186,350. A sample program run is as follows: Enter your net taxable income: 22000 Your 2014 tax is $2,846.25 The user input above is in bold. Name this program as Taxes.cpp. For the output of the money amount, you need not put the comma in 2,846.25, just print 2846.25. Hint: if (income <= 8500)Â Â Â Â Â Â Â Â Â tax = income * 0.10;Â Â Â Â Â Â else if (income <= 34500)Â Â Â Â Â Â Â Â Â tax = 8500 * 0.10 + (income - 8500) * 0.15;Â Â Â Â Â Â else if (income <= 83600)Â Â Â Â Â Â Â Â Â tax = 8500 * 0.10 + . . . Also see Listing 3.3 in the text by Liang.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll