Program Design 3 Write a C++ program based on the following requirements (using 2-D array 4x2): Program will display the total company gross pay need to pay to all employees if each employee has different hourly wage as shown in Table 1. Table 1 employee hours rates Alin 12.75 Atin 12.25 Wani 12.25 Faiz 12.00 Your program needs to be inputting the hours worked for each employee. Apply infinite loops and clear the screen for each new attempt. Copy paste your program code and submit it with your lab report.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 6E: (Conversion) a. Write a C++ program to convert meters to feet. The program should request the...
icon
Related questions
Question
Program Design 3
Write a C++ program based on the following requirements (using 2-D array 4x2):
●
Program will display the total company gross pay need to pay to all employees if
each employee has different hourly wage as shown in Table 1.
Table 1
employee
hours
rates
Alin
12.75
Atin
12.25
Wani
12.25
Faiz
12.00
●
Your program needs to be inputting the hours worked for each employee.
Apply infinite loops and clear the screen for each new attempt.
Copy paste your program code and submit it with your lab report.
Transcribed Image Text:Program Design 3 Write a C++ program based on the following requirements (using 2-D array 4x2): ● Program will display the total company gross pay need to pay to all employees if each employee has different hourly wage as shown in Table 1. Table 1 employee hours rates Alin 12.75 Atin 12.25 Wani 12.25 Faiz 12.00 ● Your program needs to be inputting the hours worked for each employee. Apply infinite loops and clear the screen for each new attempt. Copy paste your program code and submit it with your lab report.
Example of program output:
OUTPUT CONSOLE
This Program Calculates Total Company Gross Pay
Enter the hours worked by employee Alin: 10 [Enter]
Enter the hours worked by employee Atin: 11 [Enter]
Enter the hours worked by employee Wani: 22 [Enter]
Enter the hours worked by employee Faiz: 10 [Enter]
Employee #Alin: 10.00 hours x RM 12.75 = RM 127.50
Employee #Atin: 11.00 hours x RM 12.25 = RM 134.75
Employee #Wani: 22.00 hours x RM 12.25 = RM 269.50
Employee #Faiz: 10.00 hours x RM 12.05 = RM 120.00
TOTAL PAYOUT FOR ALL EMPLOYEES ARE: RM 651.75
X
Transcribed Image Text:Example of program output: OUTPUT CONSOLE This Program Calculates Total Company Gross Pay Enter the hours worked by employee Alin: 10 [Enter] Enter the hours worked by employee Atin: 11 [Enter] Enter the hours worked by employee Wani: 22 [Enter] Enter the hours worked by employee Faiz: 10 [Enter] Employee #Alin: 10.00 hours x RM 12.75 = RM 127.50 Employee #Atin: 11.00 hours x RM 12.25 = RM 134.75 Employee #Wani: 22.00 hours x RM 12.25 = RM 269.50 Employee #Faiz: 10.00 hours x RM 12.05 = RM 120.00 TOTAL PAYOUT FOR ALL EMPLOYEES ARE: RM 651.75 X
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning