The program is missing two instructions and two instructions

The program is missing two instructions and two instructions are wrong. What instructions are wrong and what instructions are missing? What function does the program perform?

Solution

Ans. 1 Wrong instructions are, i) li $v0,8 , because we want integer/float value from keybord

and ii) li $v0,11 , because output is also integer/float.

Missing instructions are i) move $a0,$t2 , after line 11 of main code

and ii) li $v0,10

   syscall , at the end of main code.

Ans.2 This program performs the function to find an area of a square.

Ans.3 Unit of the answer is in2 (inches2).

 The program is missing two instructions and two instructions are wrong. What instructions are wrong and what instructions are missing? What function does the p

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site