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" file2. 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 2,3 or 4 of Table 1.3. Using the input command, your program should ask how much the user made (gross or before taxes) or yearly salary during year 2023.4. Internally, your program should use "if-elseif" statements and set the ranges depended on the tax rates above. You must include all ranges as I will randomly input different salaries.5. 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.6. Your program should output/display the total taxes paid.7. Your program should output/display the total take-home pay, or total minus taxes.8. 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 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!