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
Get step-by-step solutions from verified subject matter experts
