Submission Deadline: 12-June-2003 half hour before the class.
Submission Folder: strSort10_6
Assignment:
Consider a two-dimensional array of strings. Each string can hold name of one student. Write a program that displays four options to the user.
- First option is to add ONE new student (it should display an error if user tries to enter more than 60 names)
- second option is to display names of all students in ascending order
- third option is to display the names of the students in descending order
- fourth option is to exit the application
After performing any of the actions, the menu should be displayed again untill user chooses to exit the application.
Array declaration: char names[60][30];
Sample Array:
Amir
Ahmed
Ali
Aleem
Sample Display (Ascending order):
Ahmed
Aleem
Ali
Amir
Sample Display (Descending order):
Amir
Ali
Aleem
Ahmed