Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 6Step 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