String Assignment

In this assignment you will read in names into a table, sort the names and display the sorted list.

Each name should be less than 20 characters. First, your program should prompt the user for the number of names to be entered and then it should read these name into a table. Since comparisons are case sensitive and we do not want case sensitivity you should generate a sort key. The sort key is the text of the name that is converted to all lower case or all upper case characters. With the sort key a table entry is now 40 characters, 20 characters for the original name and 20 characters for the sort key.  Then sort the table using the sort key. When the sort is done the original names should be displayed in sorted order to the terminal.

This program will be due on Tuesday, March 11.

Return to the CS 350 Home Page.