Question: You are to write a program name matrix java that makes the dot products of 2 arrays. 1. Your program should prompt the user for
You are to write a program name matrix java that makes the dot products of 2 arrays. 1. Your program should prompt the user for the dimensions of the two squares matrices, making sure that the user input is greater than or equal to 50 2. Ifthe above is not met, prompt the user for a new value. 3. Now generate random integer numbers (ranging from O to 50) to fill both matrices 4 Display these two matrices on the screen. 5. Multiply the two matrices and display the result on the screen. 6. Insert a clock to see how long it would take to multiply these two matrices and display the time (with a message to this efect 7. Prompt the user asking if they want to repeat the program Example of program output What is the matrix dimensLon Matrix 1 is as follows 22, 4, 5,45] 7,34, 37 Matrix 2 is as follows 34, 39, 22, 3). 3, 6. 26, 231 2, 6, 48 351 e, 12, 4, 361] Result eatrix as fellows t 1iss, 804, 832,1393 49, 1452, 1898, 2953 678, 1587, 2866, 3388 634, 87, 2se, 242211 Total exection tie is...2 ould you like to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
