Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Arithmetic Operations 1) Read and Output in the command line MARS window. (a) Re

ID: 3812349 • Letter: A

Question

Arithmetic Operations

1) Read and Output in the command line MARS window.

(a) Read three integers from the command line window

(b) Add the three integers

(c) Print the result in the command line window

2) Print–out the result of the following expression, in the command line (window):

($s0 - $s1 - $s2) + $s3

where,

• $s0 = 8

• $s1 = 3

• $s2 = 1

• $s3 = 2

3) Place the result of the following equation, into register $t0: $t0 = $s0/8 2 $s1 + $s2

where,

• $s0 = 2400 • $s1=50
• $s2 = 600

or

800 = (2400/8) (2 50) + 600

4) Using MIPS assembly evaluate the polynomial:

... for x = 2.

($s0$s1$s2)+$s3

3x^2 +2x+1

Explanation / Answer

1)

b)

2)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote