Question: 1) Write a function GetMin that will that will accept three parameters: a. int N b. int a c. int b The function will generate

1) Write a function GetMin that will that will accept three parameters: a. int N b. int a c. int b The function will generate and display N random numbers from a to b. It will calculate and display the sum and average of all random numbers. Display the average with two decimal places. The function will return the minimum random number. Use the following main() function. All you need is to implement the function GetMin(). int main() { srand(time(0)); int N, a, b, min; cout>N>>a>>b; min = GetMin(N, a, b); cout Chapter# 6: Functions Problem 4 1 Write a function GetMin that will that will accept three parameters: a. int N b. int a c. int b The function will generate and display N random numbers from a to b. It will calculate and display the sum and average of all random numbers. Display the average with two decimal places. The function will return the minimum random number. Use the following main() function. All you need is to implement the function GetMin). int main() srand (time ()) int N, a, b, min; coutc"Enter values for N, a, and b: -; nin - GetMin(N, a, b) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
