Question: A 4 Sort using a 2 - Dimension Array of characters Task Same as last. Implement the function specifications / prototypes . The driver program

A4 Sort using a 2-Dimension Array of characters
Task Same as last. Implement the function specifications/prototypes. The driver program main() has been supplied.
Input the size of the 2 dimensional character array, then sort by row. Note: this problem is repeated in question 8 but you are required there to modify the ascii code for the sort. Here just use strcmp().
Some example test cases are supplied. Look here for expected output.
Test case 0:
Input
3
3
678
567
456
Your Output
Readina2dimensionalarrayofcharactersandsortbyRow
Inputthenumberofrows<=20
Inputthemaximumnumberofcolumns<=20
Nowinputthearray.
TheSortedArray
456
567
678
Expected Output
Readina2dimensionalarrayofcharactersandsortbyRow
Inputthenumberofrows<=20
Inputthemaximumnumberofcolumns<=20
Nowinputthearray.
TheSortedArray
456
567
678
Test case 1:
Input
3
5
Ted
Mary
Bobby
Your Output
Readina2dimensionalarrayofcharactersandsortbyRow
Inputthenumberofrows<=20
Inputthemaximumnumberofcolumns<=20
Nowinputthearray.
TheSortedArray
Bobby
Mary
Ted
Expected Output
Readina2dimensionalarrayofcharactersandsortbyRow
Inputthenumberofrows<=20
Inputthemaximumnumberofcolumns<=20
Nowinputthearray.
TheSortedArray
Bobby
Mary
Ted
test case 2 hidden
test case 3 hidden
attempt to find the 2 hidden test cases. No their is no other infomration to figure out what the test cases want.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!