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 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
Get step-by-step solutions from verified subject matter experts
