
536 CHAPTER 8 Single-Dimensional Arrays
The framework for this Programming Activity will animate your algorithm
so that you can watch your algorithm work and check the accuracy of your
code. For example, Figure 8.26 demonstrates the Bubble Sort at work. At
this point, the program has completed three passes through the array and is
comparing the values of elements 5 and 6.
Instructions
In the Chapter 8 Programming Activity 2 directory on the CD-ROM
accompanying this book, you will find the source files needed to complete
this activity. Copy all the files to a directory on your computer. Note that all
files should be in the same directory.
Open the Arra ...