Question: covert the following c code into MIPS , dont use syscall rather jal C Code : int a , b , c , f; /
covert the following c code into MIPS dont use syscall rather jal
C Code : int a b c f; Declare results counters
int i; Declare loop counter
int y; Declare total number of students
y ; Initialize y
a; b; c; f; Initialize results counters
int coursework ; Coursework is an array to store
the coursework marks that goes
from to
int exam ; Exam is an array to store the exam
marks that goes from to
int results ; Results is an array to store the
total marks coursework exam. And the sorted total marks.
It goes from to
for i; i h
d ; d the highest
mark in your results array
for i; i and
f ;
for i; i
a a ;
else ifresultsi
b b ;
else ifresultsi
c c ;
else
f f ;
Main program code ends here
CURVE function code
void CURVE int p int z int k
pz pz k;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
