Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NEED TO USE PYTHON PLS HELP!! Exercise 3. Write a program to calculate a person's weekly wage. The user should be asked to input the
NEED TO USE PYTHON PLS HELP!!
Exercise 3. Write a program to calculate a person's weekly wage. The user should be asked to input the number of hours worked, the normal hourly rate of pay and the overtime hourly rate of pay. A normal working week is 40 hours and if an employee works less than 40 hours, pay is deducted at the overtime rate. This may seem a little unfair but it enables the calculation to be done in ONE simple command without the need to test whether the number of hours worked is greater or less than 40 (using commands we have not met yet). Include appropriate print statements to provide a summary of the hours worked, the normal and overtime hourly rates and the person's weekly wage. It is recommended to use more than one print statement in order to obtain an easier to read summary on several lines. Your program should also include suitable comments. Run your program with 11.30 as the normal hourly rate of pay, 16.60 as the overtime hourly rate and for 30, 40 and 50 hours 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