Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 isStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started