ogle.com/c/MzcwNjlyMDU5MTUw Q1 write C++code that ask the user to enter a number and the program will generate matrix K (4 by 4 matrix) and the chosen number will be the first element of that matrix....


ogle.com/c/MzcwNjlyMDU5MTUw<br>Q1 write C++code that ask the user to enter a number and the program will generate matrix K<br>(4 by 4 matrix) and the chosen number will be the first element of that matrix. After that, the user will<br>chose one of the following functions:<br>1) Swap function: the code will swap the elements of the secondary diagonal with the element of the<br>main diagonal.<br>2) Multiply by 3: the program will multiply the matrix by 3.<br>3) Exit : the program will exit.<br>enter the first element of the matrix<br>6<br>10<br>14<br>18<br>22<br>26<br>30<br>34<br>38<br>42<br>46<br>5e<br>54<br>58<br>62<br>Chose one of the following :<br>1) swaping the main diagonal with the secondary diagonal<br>2) Multiply the matrix by 3.<br>3) Exit<br>1<br>The new matrix is :<br>14<br>10<br>18<br>26<br>22<br>30<br>34<br>42<br>38<br>46<br>62<br>54<br>58<br>50<br>Process exited after 13.3 seconds with return value e<br>Press any key to continue<br>arch<br>立<br>

Extracted text: ogle.com/c/MzcwNjlyMDU5MTUw Q1 write C++code that ask the user to enter a number and the program will generate matrix K (4 by 4 matrix) and the chosen number will be the first element of that matrix. After that, the user will chose one of the following functions: 1) Swap function: the code will swap the elements of the secondary diagonal with the element of the main diagonal. 2) Multiply by 3: the program will multiply the matrix by 3. 3) Exit : the program will exit. enter the first element of the matrix 6 10 14 18 22 26 30 34 38 42 46 5e 54 58 62 Chose one of the following : 1) swaping the main diagonal with the secondary diagonal 2) Multiply the matrix by 3. 3) Exit 1 The new matrix is : 14 10 18 26 22 30 34 42 38 46 62 54 58 50 Process exited after 13.3 seconds with return value e Press any key to continue arch 立

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here