AUTHOR

Piece of cake, right?

Write a program to compute income tax as follows:

First, display the following menu and ask the user to select his or her filing status:

1. Single

2. Married filing separately

3. Married filing jointly

4. Head of household

For Single status, apply a deduction of $2000, for #2 $1700, for #3, $2300 and Head of household $2700. Add to the deduction amount, $150 for each dependent up to a maximum of 4 dependents if single, $125 for each dependent up to a maximum of 4 for Married filing separately, $175 for each dependent, up to a maximum of 5, if married filing jointly, or head of household. Add also 15% of any uncovered (out-of-pocket) medical expenses for singles and married filing individually, and 20% for the other two. Likewise add 20% of any college expenses to first and second and 25% for the other two, as well as 20% of charitable contributions for all four.

Then, get user's income and compute the taxable income by subtracting the deduction from his or her income. Anyone with a taxable income of less than $8,000 pays no taxes. For the rest, the first $15,000 of the income has a tax rate of 10%, the next $25,000 gets taxed at 15%, the next $30,000 at 20%, the next $30,000 at 25% and anything above $100,000 at 30%. So, for example, someone who had taxable income of $125,000, her first $15,000 gets taxed at 10% ($1,500), plus 15% of $25,000 ($3,750), plus 20% of $30,000 ($6,000), plus 25% of $30,000 ($7,500) and the remaining $25,000 at 30% ($7,500) for a total tax amount of $26,250. For someone with income of $13,000, the tax is 10% of that or $1,300. For someone who made $7,999.99 it would be 0, but for someone who made $8,000, it's $800. For someone who made $30,000, it would be 10% of $15,000 or $1,500 plus 15% of the remaining $15,000 or $2,250 making it $3,750, and so on.
Next, ask for the amount of taxes already paid and subtract from tax due. If the difference is positive, display the amount owed along with the address where the check should be sent to (Franchise Tax Board, Fresno, CA). Otherwise, if the amount of tax is negative, display the amount of refund, and then ask and read the address where the tax refund should be sent to. If the difference is 0, tell the user he or she owes nothing and will be getting no refunds.
next, stop posting.
SPUTNIK quote:
next, stop posting.
Smiley
That's a pain in the dick, but not too difficult.
C++ homework, studying for midterms, AND Sputnik being mean to me? Smiley
FriendZone quote:
That's a pain in the dick, but not too difficult.
Exactly.
Pain in the dick.
steal the code from TaxCut
IKnowYou quote:
steal the code from TaxCut
No, I need to know how to do it.
If I do that then I will be fucked for tests.
gink quote:
Exactly.
Pain in the dick.
You don't even have a dick!
gink quote:
No, I need to know how to do it.
If I do that then I will be fucked for tests.
I figured...that does blow though. I'm having Uni flashbacks of programing in C++

-This message has been edited by IKnowYou on 10/15/2010 4:01:22 PM

FriendZone quote:
You don't even have a dick!
Pain in the twat!
code it up, quit whining
IKnowYou quote:
I figured...that does blow though. I'm having Uni flashbacks of programing in C++

-This message has been edited by IKnowYou on 10/15/2010 4:01:22 PM


I spend so much time on my other classes and the least on C++ when I want to be a programmer. -_-
kerosene quote:
code it up, quit whining
Lock it up.
go post on reddit their scrotums will explode if you post that you're female and a programmer
gink quote:
Pain in the twat!
Your twat is going to hate you.
kerosene quote:
go post on reddit their scrotums will explode if you post that you're female and a programmer
Smiley
gink quote:
Smiley
do it. you'll probably score a few marriage proposals
kerosene quote:
do it. you'll probably score a few marriage proposals
I don't doubt it.
I will pass. lol

Quick reply

Sign in to post a message.
Smileys

Times shown in Eastern Time (ET).