Question: using for loop and break, Write and run a C program that will compute and output the average salary for employees. If the user entered

using for loop and break, using for loop and break, Write and run a C program that

Write and run a C program that will compute and output the average salary for employees. If the user entered the value of -1 for working hours, then the loop is terminated prematurely. Note that the user can enter at most 6 employees. You are supposed to use for loop. Sample Output Enter Employee #1 Working Hours: 20 Enter Employee #1 Pay Rate per Hour: 30 Employee #1 Salary = 600 Enter Employee #2 Working Hours: 8 Enter Employee #2 Pay Rate per Hour: 50 Employee #1 Salary = 400 Enter Employee #3 Working Hours: 34 Enter Employee #3 Pay Rate per Hour: 40 Employee #1 Salary 1360 = Enter Employee #4 Working Hours: -1 Employees Salary Average = 786.666687> 1

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!