Dr. Roger Webster
Goals
- to write programs properly
- to use arrays to
hold and access information
- to write functions and use parameters
effectively
Overview
For this assignment, read chapter 9 in your textbook.
Then you will write a program to read in integers from a file (max is 100)
and sort them and print them out in sorted order. The numbers are in the file in
random order. The number of numbers can be less than 100 but
not greater than 100. Check to make sure that you have at least one number read
in. Write another function to sort the array. Write another function to print
out the array (all in sorted order). Use selection sort or bubble sort (see handouts and your
textbook) to do the
sorting.
Good Luck!