Question: a single dimensional array can store values of different data types.Problem Description: A single - dimensional string array is in parallel with a two -

a single dimensional array can store values of different data types.Problem Description:
A single-dimensional string array is in parallel with a two-dimensional integer array.
Single-dimensional string array needs sorting in ascending order. This program uses
the BUBBLE SORT algorithm to sort the single - dimensional string array, while
swapping row elements of the two - dimensional integer array as needed.
Sample Run:
Enter the number of rows: 3
Enter the number of columns: 4
Enter string element number 1: RowOne
Enter integer element number 1,1 : 1
Enter integer element number [1,2]:2
Enter integer element number [1,3):3
Enter integer element number [1,4]:4
Enter string element number 2: Rowiwo
Enter integer element number [2,1]:5
Enter integer element number [2,2]:6
Enter integer element number {2,3):7
Enter integer element number [2,4]:8
Enter string element number 3: RowThree
Enter integer element number {3,1]:9
Enter integer element number {3,2):8
Enter integer element number [3,3]:7
Enter integer element number [3,4]:6
Array before Sorting:
RowOne 1234
RowTwo 5678
RowThree 9876
Array after Sorting:
RowOne 1234
RowThree 9876
RowTwo 5678
A. Study the above Sample Run and make notes of what you can interpret
examining the run.
B. Create a new C++ MS Visual Studio project file named
YourFirstNameLasiNameBubble
C. Add a New Item under Source Files and name it
YourFirstNameLasuameBubble
D. Download and Copy the contents of ProgramOne-DocumentBubbleSort.docx
into your empty new source file. Now you have a program
E. Run the program, with the with the data given above and examine your run.
There is a difference. Make a note of it.
F. Note that most Comments have a number. Replace the number with the
appropriate word(s) to accurately state the comment.
G. Use examples given in WEEK TWO module to complete the Top Documentation
correctly and fully.
Pool of words (some words might be used multiple times and
there extra words in the pool too):
 a single dimensional array can store values of different data types.Problem

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!