Question: Write a C++ program to define a class having a 4x4 matrix. Generate 32 random numbers 1-10, in an output.txt file. Fill the generated numbers
Write a C++ program to define a class having a 4x4 matrix. Generate 32 random
numbers 1-10, in an output.txt file. Fill the generated numbers in two such class objects (first 16
numbers in one matrix and next 16 numbers in another. Create member functions each for
adding, subtracting and multiplication of matrices. Write the algorithm defining steps of your
program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
