You need to convert this c code to mips - the subsequent


Question: You need to convert this C code to MIPS, I am just stuck on the loop part

void main() { int numbers[11] = {6, 4, 2, 7, 5, 22, 7, 2, 5, 2, 7} ? int check, count? int i? printf("Enter an integer:\n")? //read an integer from a user input and store it in check

scanf("%d", &check)? count = 0? for (i = 0? i < 11? i++)

{ if (numbers[i] > check) { count = count+1? } }

printf( "The count of the integers that are greater than %d is: %d\n", check, count)?

return?

The subsequent is a sample output (user input is 2): Enter an integer: 2 The count of the integers that are greater than 2 is: 3 You have to assure the requirements specific in the instruction.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: You need to convert this c code to mips - the subsequent
Reference No:- TGS0949101

Expected delivery within 24 Hours