Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
- void read2DArray(int a[][cols], const intr, const intc)
This function reads the elements of the 2D array from the user.
- void print2DArray(const int a[][cols], const int r, constintc)
This function prints the elements of the 2D array to the screen.
- 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.
- 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, 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 screenStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started