Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Write a function called find_min_max() that accepts an array of doubles and t

ID: 3530172 • Letter: 1

Question

1. Write a function called find_min_max() that accepts an array of doubles and the number of items in the array as input parameters, and returns the minimum and maximum values in the array through output parameters. 2. Write a function called reverse_array() that accepts an array of integers and the number of items in the array as parameters, and reverses the items in the array. Hence, the first item in the array should become the last one, and the last one in the array should become the first one, etc. You may NOT create a second array to solve this problem!

Explanation / Answer

1) double min_max(double a[10],int size) { double max,min; int i; max=min=a[0]; for(i=1;imax) max=a[i]; //calculates max if(a[i]=0;i--) printf("%d",a[i]); //printing in reverse order }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote