NAME: _________________________________________________________
DATE: ______________
Assignment: Items worth 2 points unless otherwise specified
- ___ Print out this page, delete the ad at the top of the page, and put your name and the date on top on top.
- ___ Create a class to store a number, and retrieve a number.
- ___ Create a class for using a bubble sort algorithm.
- ___ Create an array (50 in length) which will store the class from item #2.
- ___ Fill the array with random numbers, placed into the appropriate class.
- ___ Display the unsorted array.
- ___ Sort the array.
- ___ Display a message when the end of a loop is reached.
- ___ Display a message when a swap is made.
- ___ Display the sorted array.
- ___ Request form the user, whether they would like to run through the sort again.
Extra Credit:
____ Make the necessary changes to calculate and display how often a number was swapped. (6 points)
-- Good Luck.