Write a C-Sharp code to make a “Matrix”. User must be asked to enter the following information: Size of the matrix and values. The program must compute the following operations:
1. sumMatrix (return the sum of all the values of array)
2. averageMatrix (return the average of all the values of array)
3. shiftRowUp (shifts all of the rows of the matrix upward)
4. shiftColumnRight (shift all the columns of the matrix rightward)
5. Reverse a row/column (Reverse the user specified row/ column)
6. Mirror row/ column (Check the user specified row/ column to be a mirror)
7. Exit the Program
Use another class “testClass” which makes object of the above Matrix class in the main function to get inputs and show all the outputs on screen
dalia_24 0 Newbie Poster
skatamatic 371 Practically a Posting Shark
dalia_24 0 Newbie Poster
Momerath 1,327 Nearly a Senior Poster Featured Poster
thines01 401 Postaholic Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.