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 float Min(floatArr, SIZE); printf("The smallest float is: % f ", min); return 0; } thank you 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);;

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Solve it asap don't use ai and add explanation
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 float Min(floatArr, SIZE);
printf("The smallest float is: % f
", min);
return 0;
} thank you
Transcribed Image Text: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 float Min(floatArr, SIZE); printf("The smallest float is: % f ", min); return 0; } thank you
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);;
Transcribed Image Text: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);;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education