Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago