Question: PLZ READ Requirements: use 2 functions paremeter to first function should be the size of the array, than you fill up the array in main,
PLZ READ
Requirements:
use functions
paremeter to first function should be the size of the array, than you fill up the array
in main, pass size to find median function
Use passing and returning
must use this lines of code
add $a$$t # Passing to function by $a
add $a$$t # Passing to function by $a
add $t $v $
add $t$$a # Passing to function by $a
add $t$$a # Passing to function by $a
add $v $t $ # returning the result to main
Look at photo provided plz uses Mips Main prints the madian
How many number you like to enter:
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
The median is:
How many number you like to enter:
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
The median is:
How many number you like to enter:
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
Enter number :
The median is:
the middle is in the last case but since we only deal with integer we get the integer part
which is
PLZ READ
Requirements:
use functions
paremeter to first function should be the size of the array, than you fill up the array
in main, pass size to find median function
Use passing and returning
must use this lines of code
add $a$$t # Passing to function by $a
add $a$$t # Passing to function by $a
add $t $v $
add $t$$a # Passing to function by $a
add $t$$a # Passing to function by $a
add $v $t $ # returning the result to main
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
