Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started