Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]
image text in transcribed

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions