Question
******python***** Using the while loop Write a program to input the salary. If the salary is over 100,000 then calculate the federal tax at 20%
******python*****
Using the while loop Write a program to input the salary. If the salary is over 100,000 then calculate the federal tax at 20% otherwise calculate the federal tax 15%. Display the federal tax. Calculated the state tax at the rate of 5%Also, Count the number of people who earned salaries in the following ranges.1) More than 1000002) More 50000 and less than 1000003) More than 25000 and less than 500004) Below 25000 Ask the user if he/she wants to continue. If the user says yes, repeat the whole thing to fetch the salary of the next employee, calculate and display the federal tax, etc. The program should also calculate the total federal tax and total state tax with held from all the employees. You can do this using accumulation concept.Hint: Each time the computer calculates the federal tax for one employee, keep accumulating it.
Step 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