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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started