Question: Computer Organization Literature: Computer Organization and Design - The Hardware / Software Interface, David A. Patterson & John L. Hennessy, Morgan Kaufmann, 5th Edition. Lectures

Computer Organization

Literature:

Computer Organization and Design - The Hardware / Software Interface, David A. Patterson & John L. Hennessy, Morgan Kaufmann, 5th Edition. Lectures handouts

Software: MARS:http://courses.missouristate.edu/KenVollmar/MARS

Project Description:

Write a MIPS assembly language program that enables the user to enter two vectors (arrays) of single precession floating point numbers and saves them in memory.

Input data requirements are as follows:

- The size of each vector (array) is 10 (N = 10) .

-Each element of an input vector should be entered as a 4 decimal digits number (one digit for the integer and three digits for the fraction).

Your program should compute the arithmetic mean of each vector and the dot product of the two vectors then the program should display the results on the console preceded by appropriate messages.

Test your program using the following vectors:

A = [0.637, -0.342, -1.234, -5.346, 0.706, 1.659, 2.341, 0.121, 0.874, -3.213]

B = [7.892, 6.871, 9.891, 7.127, -6.234, 8.769, 8.210, 7.321, 7.324, -8.662]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!