2D Assignment


15 points

The objective of this assignment is to use 2D arrays in C++.
Your program must conform to these stringent guidelines. You are to

  1. declare 2 matrices of size 100 in the main and initilize them (see below)
  2. pass both matrices by VALUE to a function to multiply them
  3. the main is to print the result of the multiplied matrices.

Matrix 1:
591317212529333741...
6101418222630343842...
7111519232731353943...
8121620242832364044...
9131721252933374145...
10141822263034384246...
11151923273135394347...
12162024283236404448...
13172125293337414549...
14182226303438424650...
...
104 108 112 116 120 124 128 132 136 140 ...

Matrix 2:
149162536496481100...
281832507298128162200...
312274875108147192243300...
4163664100144196256324400...
5204580125180245320405500...
6245496150216294384486600...
72863112175252343448567700...
83272128200288392512648800...
93681144225324441576729900...
1040901602503604906408101000...
. . .
100 400 900 1600 2500 3600 4900 6400 8100 10000 ...
SUBMISSION:

  1. Submit your code with the constant reset to 10 (not 100)
  2. Please use this code that prints the a part of the complete answer for the 100x100. This code prints the upper left 10x10 and the lower right 10x10 of the answer matrix.
  3. Place both your code (cpp file ) and output (txt file) in the MatrixMult drop box, <\ol>
    Output Samples