Question

You are to write a computer program that will accept as input from the screen or...

You are to write a computer program that will accept as input from the screen or read from a file two square matrices of arbitrary size less than or equal to 10, and conduct basic operations upon them. The matrices must be multiplied (full matrix multiplication, not element-by-element), added, subtracted, and transposed (both matrices). Each operation must be contained within its own subroutine or function, and the input matrices passed to the subroutine or function as appropriate. For each operation, the resulting matrix must be formatted and written to a file that you will turn in. Screenshots or files that have been “cleaned-up” using Word or other software are not acceptable. For this assignment, the definition of “formatted” means that each matrix row and column must be evenly spaced so as to be legible without excessive white space (i.e. don’t separate the rows and columns by ~15 blank spaces). Also, each value in the resulting matrix should have exactly two significant decimal figures, including any trailing zeros. In your file, it should be clear what each matrix is, so you will need to include additional print/write statements for that purpose.

The input matrices are on the next page. These matrices and their size must be entered from the keyboard or read from a file. They cannot be hard coded into your program.

You may choose any computer language you prefer provided you are not using a commercial or other pre-written application to do the work for you (MATLAB, Mathematica, Excel, and other available software are not acceptable).

Use the following filename template for your code:

firstname_lastname.hmwk1.ext          where “ext” is the proper language extension.

3.13

2.08

3.82

5.31

5.17

6.86

6.48

4.94

5.49

5.71

8.58

5.85

9.30

9.74

4.34

0.72

9.81

8.01

2.30

9.23

4.50

8.46

7.05

0.32

6.20

2.27

3.25

6.61

6.20

5.40

1.47

0.41

8.33

5.60

3.87

2.31

9.42

8.66

8.29

4.83

5.03

4.69

8.86

2.02

9.70

7.58

0.82

3.10

0.12

6.23

7.66

6.51

1.90

4.53

3.73

2.21

6.12

2.41

1.03

5.14

6.30

1.58

1.79

7.56

3.57

1.61

5.17

0.49

5.66

9.97

8.71

1.63

8.92

3.37

8.25

6.27

7.00

0.15

1.26

7.02

3.99

0.13

9.65

7.11

3.86

7.58

1.86

5.21

6.41

2.87

0.02

6.29

6.21

9.61

4.16

6.43

9.23

7.65

9.17

4.54

8.96

1.23

8.82

8.84

1.54

4.68

5.73

7.40

1.85

6.76

0.89

2.02

3.33

0.96

8.36

2.24

5.11

4.79

0.64

8.17

9.42

8.64

9.20

1.98

9.70

2.60

5.88

4.87

6.98

1.96

1.23

6.24

3.08

3.76

5.69

1.27

9.06

8.31

6.00

0.89

8.29

0.77

6.45

3.37

8.49

3.23

3.05

4.63

8.89

6.14

0.13

3.25

4.58

5.19

5.11

8.14

1.95

0.56

7.13

6.86

5.43

9.97

9.02

5.26

3.03

2.47

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
You are to write a computer program that will accept as input from the screen or...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT