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 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
Please enter hourly rate
Your weekly salary is $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
