computer science

 

using C++ program

Purpose: using 2-dimensional Array and template functions to Add, subtract and multiply two matrices.

Requirements:

      Note: all functions must be written with template format

  1. Write one function for header

Header looks like:

Matrix operation:

Select A/a to add two matrices

Select S/s to subtract two matrices

Select M/m to multiply two matrices

Select T/t to select all types

  1. Write a function to ask the user for number of rows and columns for matrix A and/or matrix B
  2. Write a function to read data into an Array for matrix A
  3. Write a function to read data in an Array of matrix B
  4. Write a function to add two matrices
  5. Write a function to subtract to matrices
  6. Write a function to multiply two matrices ( use the one provided for you)
  7. In main () provide a switch and case statements to call those functions.

          The project is for a 2 dimensional and 3 X 3 data

Tags: No tags