Tuesday, September 30, 2008

Bubble Sort

Keep pluggin away at the bubble sort program.
  • Start by declaring an array of 10 integers.
  • Display the array with a for loop.
  • Use the pseudocode from wikipedia to bublesort the array.
  • Redisplay the array.
  • Then, adapt your code so that it will bubblesort acording to the price of a product (as we discussed yesterday).

.

No comments: