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.
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...
Related questions
Question
![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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4c44b41b-4aa5-4bfc-ac3d-41a1d3c4f774%2F20f4e873-b13a-4435-a8a4-d765e180026f%2Fdq7wzt_processed.png&w=3840&q=75)
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4c44b41b-4aa5-4bfc-ac3d-41a1d3c4f774%2F20f4e873-b13a-4435-a8a4-d765e180026f%2Fstnlepg_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY