Question: In python. Write a program to calculate the weekly salary of an employee using 3 functions: Function that gets input, passes this to the salary

In python. Write a program to calculate the weekly salary of an employee using 3 functions:
Function that gets input, passes this to the salary function
Function that calculates salary
Function that prints salary
Main program that calls input function
If the employee has worked overtime - the overtime pay should be time and a half. Assume there are no taxes. Write appropriate comments in code. Do not use global variables.
example:-
Please enter hours worked
41
Please enter hourly rate
10
Your weekly salary is $415.00

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!