Question: use a loop to ask the user to keep entering until the user id is exactly four characters long, hoursworked is greater than 0, and




use a loop to ask the user to keep entering until the user id is exactly four characters long, hoursworked is greater than 0, and payrate is greater than zero! thanks so much
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 outpur to the screen Employee ID . Hours worked Hourly pay rate . Gross pay Arrays and Global Constants Your program should contain four arrays and two gobal constants which are described in the foliowing table Description Global constant. Value e Global constant Value equals 4 String array. Size equals NUMBER OF EMPLOYEES Double array, Size equals NUMBER OF EMPLOYEES Name NUMBER OF EMPLOYEES EMPLOYEE ID LENGTH hoursWorked Double array, Size equals NUMBER OF EMPLOYEES. Double array. Size equals NUMBER OF EMPLOYEES rossPay oe??? 5 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
