
8.4 Programming Activity 1:Working with Arrays 491
element’s bar, and the base y coordinate, BASE_Y_VALUE, is the base posi-
tion for printing the array values (defined on line 13).
8.4 Programming Activity 1: Working with Arrays
In this activity, you will work with a 15-element integer array. Specifically,
you will write the code to perform the following operations:
1. fill the array with random numbers between 50 and 80
2. print the array
3. set every array element to a specified value
On the CD-ROM included with this book,you will find a Flash movie with step-by-step illustrations of
working with arrays.Click on the link for Chapter 8 to start the ...