Question: I need to find the Assembly module to find minimum and average value in an array of float values. I have the max ( which

I need to find the Assembly module to find minimum and average value in an array of float values.
I have the max(which is below.),but i need the min, i think it should be similar to max, just need to change a few things, but i couldnt figure out. and also for average, i need to put something for line 23 and 25 so it work. here is my test code: #include
using namespace std;
extern "C"{
float floatAverage(float[], int);;
float floatMax(float[], int);;
float floatMin(float[], int);;
}
int main()
{
// declare an array of floats to pass into assembly functions
const int SIZE =5;
float floatArr[SIZE]={2.2,3.75,1.11,5.9,4.64};
// display the array content
printf("The array contains the float numbers: ");
for (int i =0; i SIZE; i++)
printf("%f ", floatArr[i]);
// call the assembly function to compute average
float avg = floatAverage(floatArr, SIZE);
printf("
The average of the floats are: %f
", avg);
// call assembly function to commpute maximum
float max = floatMax(floatArr, SIZE);
printf("The largest float is: %f
", max);
//call assembly function to compute minimum
float min = floatMin(floatArr, SIZE);
printf("The smallest float is: %f
", min);
return 0;
} thank you
 I need to find the Assembly module to find minimum and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!