Open book You may consult your textbook, my printed class notes, and one page of information you have prepared. You may also use a printed dictionary. You may not use a calculator or any other electronic device. Do not copy any wrong answers!
Here is a loop. What do you expect the output to be?
la $a0, another
li $v0, 4
loop: syscall
sub $a0,5
sub $v0,3
bne $v0, 1, loop
li $v0,10
syscall
.data
string: .asciiz "Help!"
another: .asciiz "I need somebody\n”
Suppose that $a0 points to an array of 365 words, containing
daily temperatures. Make $v0 be the count of days of extreme
temperature, that is, less than -10 or greater than +25
#define SIZE 7 int a[SIZE] = { 1, 3, 5, 7, 9, 88, -1}; int b[SIZE] = {11,-5, 5, 3, -29, -8, 43};