Explore BrainMass

Explore BrainMass

    C++ program operations on two matrices 3x3

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Create a program that performs multiplication and addition on a matrix. See attached file for full problem description.

    © BrainMass Inc. brainmass.com May 20, 2020, 8:44 pm ad1c9bdddf


    Solution Preview

    Dear Student, please find attached the C++ source code (main.cpp). The code is simple to follow. The two matrices are definedin two dimensional arrays 3x3:
    int matrixA[3][3]
    int matrixB[3][3]

    There are several functions:
    display() - to display a matrix
    transpose() - to transpose a ...

    Solution Summary

    The attached C++ source code contains definition of two 3x3 matrices and several functions that will perform various operations on these matrices such as Transpose, Addition, Subtraction, Multiplication. The sample results after each operation are displayed.