Question: Really need help programing this in C please. Tax time Compute tax obligation 2 #define SINGLE! 3 #define MARRIED JOINT 2 4 #define HEAD OF

Really need help programing this in C please.

Really need help programing this in C please. Tax time Compute tax

Tax time Compute tax obligation 2 #define SINGLE! 3 #define MARRIED JOINT 2 4 #define HEAD OF HOUSEHOLD 3 5 #define MARRIED SEPARATE 4 Complete the program to perform the following tasks 1. Define a Person struct with four fields o int for their social security number o int for their filing status 7 /I TODO: Define Person struct double for their gross income double for their deductions (negative indicating standard deduction) 8 9 o 2. Obtain user input for each field of the struct 3. Compute the tax obligation using the following formula: 10 int main) Determine the deduction amount as either the actual amount or based on the following table whichever is /TODO: Declare struct Person variable and o obtain user input fields 12 13 14 15 16 17 18 19 20 21 er Filing Status Single Married joint Head of household $18,000 Married separate $12,000 Standard deduction $12,000 $24,000 // TODO: Compute tax obligation double taxes 0.0 // Print tax obligation printf("$%" 21f", taxes) ; o Compute the taxable income as the gross income minus the deduction amount o Determine the tax rate based on the following (simplified) taxable income table return 0; Single Married joint Head of household Married separate 10% $200,001 $400,001 >$200,001 >$200,001 o Compute the tax obligation as the tax rate times the taxable income 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 Author David Babcock License: Creative Commons Attribution-ShareAlike 3.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!