COSC 2331 Assignment #5

Due Date: Tuesday, Oct. 27th scripted by midnight

Your assignment is to modify assignment #4 so that the program inputs a list of integers (no more than 10), prints that list (with a message), then sorts the list and prints the sorted list (with an appropriate message). Be sure you give appropriate messages before each list is printed.

You may use the sort we did in class, or you may write your own.

To make this easy to grade, turn in only your sort routine and your main program code. You may put your sort in a separate file from the other routines you used in assignment #4.

You must create a makefile for this program, it would be similar to this makefile . This will save you a lot of time assembling and linking your program with multiple files.



Hand in:
  1. Cover sheet with your name, assignment number.
  2. Your main program in assembly language and your sort routine ONLY with the SORT subroutine well-documented with appropriate headings and comments.
  3. Script of the run of your program, showing it works correctly. Be sure you test it with at least 3 runs of different numbers be sure to test positive and negative values in the list and be sure to try a list in complete reverse order as well as a random list of integers and a short and large list.

BONUS 30 points Add the code to your program to ask the user to input up to 10 names (no more than 30 chars per name) and sort the names in ascending order. Output the original list of names, then the sorted list with messages. Hint: You might want to use null-terminated strings for the names.