Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please make sure to read Imp notes. In c++, thank you rou are required to write two functions called ArrPrint and ArrMax according to the

Please make sure to read Imp notes.
In c++,
thank you image text in transcribed
image text in transcribed
rou are required to write two functions called ArrPrint and ArrMax according to the following specifications: - Function ArrPrint: takes as input a twodimentional array of type string (i.e. phrases), an integer variable (i.e. Rowsize), and two boolean variables (i.e. dir and oppo). This function is responsible for printing the array row-by-row (when dir =0 ) or column-by-column (when dir = 1) such that each row/column is printed in normal order (when oppo =0 ) or in reverse order (when oppo =1 ). Notice that the function should print a single-space after each element. - Function ArrMax: takes as input a twodimentional array of type string (i.e. phrases) and three integer variables (i.e. RowSize, rowNum, and colNum). This function is responsible for returning the largest string in the row specified by rowNum (when colNum = -1), the largest string in the column specified by colNum (when rowNum =1 ), or the largest string in the entire array phrases (when rowNum =1 and colNum =1 ). Do not write and submit the main subroutine, or any include statments, these are already written and nidden from you. However, if you want to test your solution in any IDE (e.g., CodeBlocks, CLion, onlinegdb.com), then you will need to write your own main there for testing purposes. IMPORTANT NOTES 8:36 row specified by rowNum (when colNum = -1), the largest string in the column specified by colNum (when rowNum =1 ), or the largest string in the entire array phrases (when rowNum =1 and colNum =1 ). Do not write and submit the main subroutine, or any include statments, these are already written and hidden from you. However, if you want to test your solution in any IDE (e.g., CodeBlocks, CLion, onlinegdb.com), then you will need to write your own main there for testing purposes. IMPORTANT NOTES - Do not change the given functions headers. - Do not add any cout statements inside the function ArrMax. - Assume a global constant variable called Columnsize is defined to determine the number of columns in the two-dimentional array. - The parameter RowSize in both functions represents the number of filled rows in the two-dimentional array. - Your code should work correctly regardless the values of ColumnSize and RowSize. Sample Testcase 0 (not graded, for student use only)

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

Step: 3

blur-text-image

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions