
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
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](https://content.bartleby.com/qna-images/question/ed581cec-09cc-4b69-ad90-0fa5181ba256/0b513990-38d6-4628-b55e-12eab28c4cb7/4v4j1c_thumbnail.jpeg)
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);;](https://content.bartleby.com/qna-images/question/ed581cec-09cc-4b69-ad90-0fa5181ba256/0b513990-38d6-4628-b55e-12eab28c4cb7/y9l44h6_thumbnail.jpeg)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- A new automobile seat is now under development that can predict when a motorist is about to fall asleep behind the wheel and alert them with a scent and a little jolt. Where would you start looking for answers if you were analyzing it?arrow_forwardEventually, what is AI's purpose? Do any primary topics have specific examples?arrow_forwardWrite atleast two lines on each topic. 1) unsupervised learning 2) supervised learningarrow_forward
- What kinds of artificial intelligence simulations are there to choose from? Give brief descriptions of the many subfields that make up Al, and give some examples of their possible applications.arrow_forwardLabyrinth solver code with shortest path algorithm with c programming language (I would appreciate if you can explain the code).arrow_forwardComputer sciencearrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education