Lexington High School Mathematics Math Dept. Front Page  | Student Links  | Family Links 
Introduction to C++, Kevin Kelly Kelly Front Page  | C++ Course Guide | C++ Assignments | C++ Info

Assignment 30: Alphabetical sort

due Monday 5/20

Write a program that inputs a list of words and outputs those words in alphabetical order. The program must use the sorting method described in class on Tuesday 5/14. Allow the user to choose the size of the list before typing the list.

Provide two sample runs, using these lists.

wombat
wallabee
quoll
koala
quokka
kangaroo
Nate
Leo
Kiruba
Shir
Sara
Antonette
Tarek
Mark
Allison
Steve
Chris
Andrew
Soyoung
Veronica
Ian


Extension

Make your program correctly alphabetize a list even if it includes mixed capital and lower case letters. For example: {a, B, Ca, cB, CC} would be a correct alphabetical order. Design your own additional sample run that shows this feature works correctly.