Question: pls help with the python code needed. thx Program Specifications Write a program to calculate U.S. income tax owed given wages, taxable interest, unemployment compensation,

pls help with the python code needed. thx

pls help with the python code needed. thx Program Specifications Write a

Program Specifications Write a program to calculate U.S. income tax owed given wages, taxable interest, unemployment compensation, status (dependent, single, or married), and taxes withheld. Dollar amounts are displayed as integers with comma separators. For example, print(f"Deduction: ${ deduction: , } "). Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress. Step 1. Within the main portion of the code, input the wages, taxable interest, unemployment compensation, status ( 0= dependent, 1= single, and 2= married), and taxes withheld. Step 2 (2 pts). Complete the calc_AGIO) function. Calculate the adjusted gross income (AGI) that is the sum of wages, interest, and unemployment. Convert any negative values to positive before summing to correct potential input errors. Return the AGI. Note the provided code in the main portion of the code calls calc_AGIO and outputs the returned value. Submit for grading to confirm two tests pass. Ex: If the input is: 20000235001400 The output is: AGI:$20,523 Step 3 (2 pts). Complete the get_deduction0 function. Return the deduction amount based on status: (0) dependent =6000, (1) single =12000, or (2) married =24000. Return 6000 if the status is anything but 0,1 , or 2 . Within the main portion of the code call get_deduction() and output the returned value. Submit for grading to confirm four tests pass. Ex: If the input is

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!