Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started