Question: Exercise#1: All Purpose Function Write a program that prompts the user to enter a two positive integers LowerBound, UpperBound. The program then asks the user

 Exercise#1: All Purpose Function Write a program that prompts the user

Exercise#1: All Purpose Function Write a program that prompts the user to enter a two positive integers LowerBound, UpperBound. The program then asks the user to enter a positive integer n. Then, it calls a function named allPurpose to generate n random numbers between LowerBound and UpperBound void allPurpose(int, int, int, int&, int&, float&) The function finds the minimum, maximum, and average of the generated numbers Then the main () program will print all the generated numbers, the minimum, the maximum, and the average Sample Input/ output: Enter the upper bound 200 Enter the lower bound:100 Enter how many numbers: 8 Tho goneratond ntar 17 117 110 181 170 106 130 174 176 117 110 181 The minimum is: 106 The maximum is: 181 The average is: 124.25 1/2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!