Question: Program 8 - 1 1 / / Create a constant for the number of employees. 2 Constant Integer SIZE = 3 3 4 / /

Program 8-1
1// Create a constant for the number of employees.
2 Constant Integer SIZE =3
3
4// Declare an array to hold the number of hours
5// worked by each employee.
6 Declare Integer hours [SIZE]
7
8// Get the hours worked by employee 1.
9 Display "Enter the hours worked by employee 1."
10 Input hours 0
11
12// Get the hours worked by employee 2.
13 Display "Enter the hours worked by employee 2."
14 Input hours [1]
15
16// Get the hours worked by employee 3.
17 Display "Enter the hours worked by employee 3."
18 Input hours [2]
19
20// Display the values entered.
21 Display "The hours you entered are:"
22 Display hours [0]
23 Display hours [1]
24 Display hours[2]
 Program 8-1 1// Create a constant for the number of employees.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!