Bubble Sorting Random Numbers
CSC404, Data Structures
Programming Assignment 2
Due February 1, 2001
You are to write a program that will
-
Input a string that will be an output file name F and an input an
integer N
-
Fill an array with N random numbers
-
Sort the array using the Bubble Sort
-
Write those N sorted numbers to the output file F, one number on each line.
Each of those four instructions are to be done using functions.
-
Test your program to create and sort a file with a variety of values for
N, both small and large values.
-
Use your program to create and sort a file "Assignment3.txt" containing
100 random integers.
-
E-mail your text file along with your source code to albert@crawfordenterprise.com
-
When I reply to your e-mail it must get to you
-
The "from" must be your name.
-
The subject must be "CSC404 Assignment 3, Bubble Sorting Random Numbers"
Bubble Sorting
Page 246-248