Answered step by step
Verified Expert Solution
Link Copied!

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: 1.

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 arrays rows with columns and vice versa.

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

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

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions