Question: Write a C++ program with a loop to enter 10 employees (id as an int, name as string, hours as double, rate as constant 25.5).

Write a C++ program with a loop to enter 10 employees (id as an int, name as string, hours as double, rate as constant 25.5). Make sure that the hours are valid between 0 and 8 inclusive. As you process each employee keep a grand total of the pay. Output the employee's id, name, hours. and pay inside the loop. At the end of the process output the average pay correct to 2 decimal place. Show all the libraries needed for a correct C++ program. Comments are not necessary.

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!