Question: C++ program that generates 20 random numbers in the range [lowerbound, upperbound]. The program first prompts the user to enter the lower and upper bounds.
C++ program that generates 20 random numbers in the range [lowerbound, upperbound]. The program first prompts the user to enter the lower and upper bounds. Then it prints out the 10 random numbers, and for each number prints whether it is above, equal to, or below the mid point of the range. Mid point value is to be computed as the average of the lowerbound and upperbound values. At the end, it displays how many values are above, equal to, or below the mid point value; as well as the average of these values.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
