
492 CHAPTER 8 Single-Dimensional Arrays
4. count the number of elements with a specified value
5. find the minimum value in the array
The framework for this Programming Activity will animate your algorithm
so that you can check the accuracy of your code. For example, Figure 8.17
shows the application counting the elements having the value 73.
At this point, the application has found the value 73 in elements 0 and 5
and is comparing the value 73 with the value 69 in element 7.
Instructions
In the Chapter 8 Programming Activity 1 directory on the CD-ROM
accompanying this book, you will find the source files needed to complete
this activity. Copy all the ...