Q.1) 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...


Q.1) write C++code that ask the user<br>to enter a number and the program will<br>generate matrix K (4 by 4 matrix) and<br>the chosen number will be the first<br>element of that matrix. After that, the<br>user will chose one of the following<br>functions:1) Swap function: the code<br>will swap the elements of the<br>secondary diagonal with the element<br>of the main diagonal.2) Multiply by 3:<br>the program will multiply the matrix by<br>three (3) Exit : the program will exit.<br>

Extracted text: Q.1) 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 three (3) Exit : the program will exit.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here