Design a program to display the total company gross pay need to pay to all employes if each employee have different hourly wage as shown in Table 1. You need to inuputting the hours worked for each employees. You can use the following array initialization.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Programming in C++..can you also please put a command so I can know what the fucntion of the coding..thank youu so much!

Design a program to display the total company gross pay need to pay to all employes if each
employee have different hourly wage as shown in Table 1. You need to inuputting the hours worked
for each employees. You can use the following array initialization.
const int ROW_HOURS = 6;
const int CL_PAYRATE = 2;
double hours[ROW_HOURS][CL_PAYRATE] = {
{0,12.85},
{0,12.85},
{0,12.85},
{0,11.75},
{0,11.75},
{0,11.15}
};
Table 1
employee hours
rates
1
12.85
2
12.85
3
12.85
4
11.75
11.75
11.15
LO
Transcribed Image Text:Design a program to display the total company gross pay need to pay to all employes if each employee have different hourly wage as shown in Table 1. You need to inuputting the hours worked for each employees. You can use the following array initialization. const int ROW_HOURS = 6; const int CL_PAYRATE = 2; double hours[ROW_HOURS][CL_PAYRATE] = { {0,12.85}, {0,12.85}, {0,12.85}, {0,11.75}, {0,11.75}, {0,11.15} }; Table 1 employee hours rates 1 12.85 2 12.85 3 12.85 4 11.75 11.75 11.15 LO
Program Output : Example 1
Enter the hours worked by employee 1: 1
Enter the hours worked by employee 2: 1
Enter the hours worked by employee 3: 1
Enter the hours worked by employee 4: 1
Enter the hours worked by employee 5: 1
Enter the hours worked by employee 6: 1
EMPLOYEE 1
ΕMPLOYE E 2
EMPLOYEE 3 = 1.00 hours x RM12.85
EMPLOYEE 4
EMPLOYEE 5 = 1.00 hours x RM11.75
EMPLOYEE 6 = 1.00 hours x RM11.15 = RM11.15
The total Payout for for all employees are: RM73.20
1.00 hours x RM12.85
RM12.85
%3D
1.00 hours x RM12.85
RM12.85
%3D
RM12.85
%3D
1.00 hours x RM11.75
RM11.75
%3D
RM11.75
Program Output : Example 2
Enter the hours worked by employee 1: 20
Enter the hours worked by employee 2: 14
Enter the hours worked by employee 3: 40
Enter the hours worked by employee 4: 45
Enter the hours worked by employee 5: 30
Enter the hours worked by employee 6: 30
EMPLOYEE 1 = 20.00 hours x RM12.85
ΕMPLOYE E 2
ΕMPLOYE 3
ΕMPLOYE E 4
ΕMPLOYE 5
ΕMPLOYE Ε 6
The total Payout for for all employees are: RM2166.65
RM257.00
%3=
= 14.00 hours x RM12.85
RM179.90
%3D
40.00 hours x RM12.85
RM514.00
%3D
= 45.00 hours x RM11.75
RM528.75
%3D
30.00 hours x RM11.75
RM352.50
30.00 hours x RM11.15
RM334.50
Transcribed Image Text:Program Output : Example 1 Enter the hours worked by employee 1: 1 Enter the hours worked by employee 2: 1 Enter the hours worked by employee 3: 1 Enter the hours worked by employee 4: 1 Enter the hours worked by employee 5: 1 Enter the hours worked by employee 6: 1 EMPLOYEE 1 ΕMPLOYE E 2 EMPLOYEE 3 = 1.00 hours x RM12.85 EMPLOYEE 4 EMPLOYEE 5 = 1.00 hours x RM11.75 EMPLOYEE 6 = 1.00 hours x RM11.15 = RM11.15 The total Payout for for all employees are: RM73.20 1.00 hours x RM12.85 RM12.85 %3D 1.00 hours x RM12.85 RM12.85 %3D RM12.85 %3D 1.00 hours x RM11.75 RM11.75 %3D RM11.75 Program Output : Example 2 Enter the hours worked by employee 1: 20 Enter the hours worked by employee 2: 14 Enter the hours worked by employee 3: 40 Enter the hours worked by employee 4: 45 Enter the hours worked by employee 5: 30 Enter the hours worked by employee 6: 30 EMPLOYEE 1 = 20.00 hours x RM12.85 ΕMPLOYE E 2 ΕMPLOYE 3 ΕMPLOYE E 4 ΕMPLOYE 5 ΕMPLOYE Ε 6 The total Payout for for all employees are: RM2166.65 RM257.00 %3= = 14.00 hours x RM12.85 RM179.90 %3D 40.00 hours x RM12.85 RM514.00 %3D = 45.00 hours x RM11.75 RM528.75 %3D 30.00 hours x RM11.75 RM352.50 30.00 hours x RM11.15 RM334.50
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY