Question: need help programing this in C. Tax time - Compute tax obligation #include Complete the program to perform the following tasks 2 define SINGLE 3

need help programing this in C.

need help programing this in C. Tax time - Compute tax obligation

Tax time - Compute tax obligation #include Complete the program to perform the following tasks 2 define SINGLE 3 #define MARRIED JOINT 2 5 #define MARRIED SEPARATE 4 7 I/ TODO: Define Person struct 1. Define a Person struct with four fields #define HEAD OF HOUSEHOLD 3 int for their social security number int for their filing status o o double for their double for their deductions (negative indicating standard deduction) gross income o 2. Obtain user input for each field of the struct 3. Compute the tax obligation using the following formula o Determine the deduction amount as either the actual amount or based on the following table 10 int main) /I TODO: Declare struct Person variable and obtain user input fields whichever is greater Filing Status Single Married joint Head of household $18,000 Married separate $12,000 12 13 14 15 16 17 18 19 Standard deduction $12,000 $24,000 I TODO: Compute tax obligation double taxes 0.0; // Print tax obligation printf("$%. 21f", taxes) ; o o Compute the taxable income as the gross income minus the deduction amount Determine the tax rate based on the foll taxable income table 21 return Single Married joint Head of household Married separate 23 10% 10,001 20%!$10,001-S80.000||$20,001-S165000 |$13.001-$82.500 30%|| $80.001-$200.0001$165.001-$400.000 |$82.501-S200.000 35% |>$200,001 $400,001 $200,001 $200,001 Compute the tax obligation as the tax rate times the taxable income o Hints Consider checking the filling status first Tax obligation cannot be negative, i.e. if the deductions exceed the income then the obligation is $0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!