Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

List and discuss methods of staff member evaluation.

Answered: 1 week ago