Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python and check both cases before u send me thanks!! This is a variation of earlier program. Using the while loop Write a

Please use python and check both cases before u send me thanks!! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
This is a variation of earlier program. 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. Calculate the statetax at the rate of 5% Also, Count the number of people who earned salaries in the following ranges 1) More than 100000 2] More than or equal to 50000 and less than 100000 3] More than or eqyal 25000 and less than 50000 4) Below 25000 Ask the user if he/she wants to continue. If the user says yes", or "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 withheld 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. Here are the mimir requirements: File name must be Module4Homework4.py Here are some test scenarios. Your program will be tested with multiple test scenarios and some of them might be hidden from you. 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions