Question: Write a menu driven C++ program that has three files: header , implementation, and main files. The header file contains the following functions' prototypes: void

Write a menu driven C++ program that has three files: header, implementation, and main files. The header file contains the following functions' prototypes:

  1. void read2DArray(int a[][cols], const intr, const intc)

This function reads the elements of the 2D array from the user.

  1. void print2DArray(const int a[][cols], const int r, constintc)

This function prints the elements of the 2D array to the screen.

  1. void transpose(const int a[][cols], const int r, const int c, int t[][rows])

This function computes the transpose (t) of the array (a). An array transpose is done by replacing the arrays rows with columns and vice versa.

  1. Void printTrasposedArray(const int a[][rows], const int r, const int c)

This function prints the elements of the 2D array to the screen.Write a menu driven C++ program that has three files: header, implementation,

Write a menu driven C++ program that has three files: header, implementation, and main files. The header file contains the following functions' prototypes: 1. void read2DArray (int a[][cols], const intr, const intc) This function reads the elements of the 2D array from the user. 2. void print2DArray (const int a[][cols], const int r, constintc) This function prints the elements of the 2D array to the screen. 3. void transpose(const int a[][cols], const int r, const int c, int t[][rows]) This function computes the transpose (t) of the array (a). An array transpose is done by replacing the array's rows with columns and vice versa. 4. Void printTrasposedArray(const int a[][rows], const int r, const int c) This function prints the elements of the 2D array to the screen

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!