Question
Develop in python Acompany pays severalits employees on an hourly basis.Weeklywages are calculated at $20 per hour for the first 30 hoursin the week and
Develop in python
Acompany pays severalits employees on an hourly basis.Weeklywages are calculated at $20 per hour for the first 30 hoursin the week and then at $30 per hour. Once the total wage is calculated 30% is deducted for taxation purposes.You must develop a program that will read the number of hours worked. Calculate Normal wage, Overtime wage, and the total wage payable to the user. Also calculate the tax payable on total wage.
The program must print a payslip listing all wages and deductions. Several operators use this program,so you must Develop instructions about how to run the program. In future the company is thinking of storing all the information in text files,soyou must develop all the logic in functionsso the code can be easily modified.Screenshot below shows the working of the program
= RESTART: C:\WorkArea oneDrive 2020-Term 03\Win College\BIM114-Progra amentals Assessments\Assignment wage.py Welcome to the wage calculation program This program will read the number of hours worked as input and calculates the employee wage. The wage is calculated $20 per hour for the first 30 hours. If the employee worked more than 30 hours overtime wage is calculated at $30 an hour. This program prints normal wage, overtime wage, total wage, and the tax payable as output. Enter the number of hours worked: 45 ** overtime wage is $ 450 ** Normal wage is $ 600 ** Total Wage is $ 1050 *** ** Tax to pay is $ 315.0 *** ******* ***** ** deposited to bank $ 735.0 ***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