Question: Create a flowchart for the following program for PYTHON you will create. This program will calculate the individual pay and total pay for the employees
Create a flowchart for the following program for PYTHON you will create.
This program will calculate the individual pay and total pay for the employees of a company. The program will loop until the user tells it to stop. Each run of the loop, the user will enter an employee's pay-rate and hours worked that week. At this time, don't worry about validating those values, but do give the user clear instructions that they should enter appropriate values.
Each employee's individual pay should be calculated and displayed (i.e. pay-rate multiplied by hours). Remember to calculate for overtime pay.
Accumulate the individual pay values for the employees. When the loop ends, display the total pay for all employees.
Include your flowchart and your code for Python.
An example of how your program might run:
Enter employee's pay-rate: 10
Enter hours worked this week (zero or a positive number): 10
Employee's weekly pay: 100
Do you wish to continue? (yes/no): yes
Enter employee's pay-rate: 10
Enter hours worked this week (zero or a positive number): 45
Employee's weekly pay: 475
Do you wish to continue? (yes/no): no
Total pay for all employees is: $575
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
