MIPS Project 2 – vector Solved

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (1 vote)

Vector is a fundamental concept in Mathematics, Physics, and Engineering. With both magnitude and direction, vectors are identified with a tuple, or list of numbers. In this project, you are required to implement three primitive functions: vector addition (denoted A+B), vector subtraction (denoted A-B), and dot product (denoted A*B). There are two input vectors A and B. Each vector contains 8 integer elements separated by commas. The values of integer elements in A and B are between -9 and 9.

 

Please submit your source code according to the following rules:

  • Write down enough comments such that you would receive higher scores.
  • The filename is your student ID (e.g., B12345678.asm).

 

Example:

Please input vector A:

1,2,3,4,5,6,7,8 Please input vector B:

2,0,1,3,0,3,2,0

A+B = (3,2,4,7,5,9,9,8)

A-B = (-1,2,2,1,5,3,5,8)

A*B = 49

 

  • project2-dgjsfa.zip