Question: Create the program as a function file 2 . Using the input command, you should ask the user if they are filing single, married (
Create the program as a "function" file Using the input command, you should ask the user if they are filing single, married jointly or head of household.a Note that depending orwhat the user inputs, it should activate either column or of Table Using the input command, your program should ask how much the user made gross or before taxes or yearly salary during year Internally, your program should use ifelseif" statements and set the ranges depended on the tax rates above. You must include all ranges as I will randomly input different salaries To repeat: Your code should include all tax brackets in the table, and should include both single, married and head of household. Once you have one code for one bracket, you can easily copy and paste the code for the other and change the money ranges Your program should outputdisplay the total taxes paid Your program should outputdisplay the total takehome pay, or total minus taxes Your program should also calculate the Effective Tax Rate. This is calculated by getting the amount of taxes paid, divided by the total gross or salary earned before taxes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
