Question: Code a flowchart for the following program you will create. This program will calculate the individual pay and total pay for the employees of a

Code a flowchart for the following program 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 (see the example).

Each employee's individual pay should be calculated and displayed (i.e. pay-rate multiplied by hours). Remember to calculate for overtime pay (see notes).

Accumulate the individual pay values for the employees. When the loop ends, display the total pay for all employees.

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

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!