Question: Compiling java code? Write a program that allows the user to manipulate matrices. A matrix is a rectangular array of numbers arranged in rows and
Compiling java code?

Write a program that allows the user to manipulate matrices. A matrix is a rectangular array of numbers arranged in rows and columns. For example: [1.5 2 -3.75 17 -5 13 -16 18.5 12.5 12 13.1 0 ], or [1 0 1 0 0 1 0 1], or [5 14 17 3], Your program should prompt the user for the number of rows and the number of columns in the matrix and then generate a matrix of such dimensions with random integers in the range of -10 to 10. Your program should display the matrix to the screen and then display a menu to the user with the following options T transpose - rows become columns (and vice versa), R rowMax - find largest value in each row, C columnSum - find sum of the values in each column, Q quit (The program should accept uppercase and lowercase letter as the selections from the menu. For example, both T and t should trigger the horizontal flip.) If the user selects one of the first three options, the operation should be applied to the matrix of numbers and either the new matrix should be displayed or the results computed by the operation should be shown. Then the menu with the above choices should be shown again. On each iteration of the program the modifications should be performed on the original matrix that the program generated randomly (not on the matrix that results from the most recent operation). If the user selects the quit option, the program should terminate.If the user selects an invalid option, the program should print an error message and the menu should be redisplayed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
