5903 Intro Scientific Prog:
Sorting A: Specification
- The program should read in and sort (in character order) the
first NMax characters in a file. Decide what to do if the file does not
contain NMax characters.
- The output should be a sorted list of the first NMax characters
in the file along with their positions in the file. The format should be
- Each character on a new line in order.
- On each line there should be: the printed form of each
character (if it exists), then two spaces, then the Hex code for each
character, and then the original position of each character in the file.
- The program should be tested against the following test files with NMax = 10^i for i = 1, 2, ... 6
- CountATest1, CountATest2, CountATest3. The first two are
plain text files. The third has some other characters in it.
- Run and time your code on a download of a novel from the
online Gutenburg project for larger values of NMax. Include a report of this test in the
ReadMe file.