Question: C++ CSC-101 Homework 8 Due: 4/23/2018 (Payroll) Writ a program that uses the following arrays: EmpId: an array of seven integers to hold employee identification
C++ CSC-101 Homework 8 Due: 4/23/2018 (Payroll) Writ a program that uses the following arrays: EmpId: an array of seven integers to hold employee identification numbers. The array should be initialized with the following numbers: 8845 6125 5122 7541 1277 2850 1489 Info: A (7x3) 2D array that has the following values First column holds the number of hours worked by each employee Second column holds each employees hourly pay rate Third column holds each employees gross wages The program should relate the data in each array through the subscripts. For example: The information in Info row 1 is for the employee in EmpId row one. The program should display each employee number and ask the user to enter the employees hours and pay rate. It should then calculate the gross wages for the employee (hours * pay rate) and store them in the wages column. After the data has been entered for the employees, the program should display each employees identification number and gross wages. Input Validation: Do not accept negative values hours or numbers less than $8.00 for pay rate.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
