Question: Programming Assignment: Payroll Write a C++ program that calculates the weekly payroll for five employees. Your program should ask the user to enter the following




Programming Assignment: Payroll Write a C++ program that calculates the weekly payroll for five employees. Your program should ask the user to enter the following data for each employee Employee ID Hours worked .Hourly pay rate Your program should then calculate the gross pay for each employee and display the following output to the screen: Employee ID Hours worked . Hourly pay rate . Gross pay Arrays and Global Constants Your program should contain four arrays and two global constants which are described in the following table: Name NUMBER OF EMPLOYEES EMPLOYEE ID LENGTH Description Global constant. Value equals 4 String array. Size equals NUMBER OF EMPLOYEES Double a Double a Double array. Size equals NUMBER OF EMPLOYEES ID hoursWorked Size equals NUMBER OF EMPLOYEES Size equals NUMBER OF EMPLOYEES rossPa Your program should ensure valid user input as follows Variable Validation Rule Length must be exactly four characters long; can be any combination of letters or emp 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
