empId: an array of sevenlong integers to hold employee identification numbers. T
ID: 3615137 • Letter: E
Question
empId: an array of sevenlong integers to hold employee identification numbers. Thearray
should be initialized withthe following numbers:
hours: an array of sevenintegers to hold the number of hours worked by eachemployee
payRate: an array of sevendoubles to hold each employee’s hourly pay rate
wages: an array of sevendoubles to hold each employee’s gross wages
The program should relatethe data in each array through the subscripts. For example,the
number in element 0 of thehours array should be the number of hours worked by theemployee
whose identificationnumber is stored in element 0 of the empId array. That sameemployee’s
pay rate should be storedin element 0 of the payRate array.
The program should displayeach employee number and ask the user to enter thatemployee’s
hours and pay rate. Itshould then calculate the gross wages for that employee (hourstimes pay
rate) and store them inthe wages array. After the data has been entered for all theemployees, the
program should displayeach employee’s identification number and grosswages.
Input validation: do not acceptnegative values for hours or numbers less than 6.00 for payrate.
Explanation / Answer
please rate - thanks #include using namespace std; int main() {longempID[7]={5658845,4520125,7895122,8777541,8451277,1302850,7580489}; double hours[7],wages[7]; int i=0; do {coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.