9
After the list is populated, the program calculates and displays the average of these numbers and also displays the minimum value in the list.
Result of the program:
How many random floating-point numbers would you like to generate? -5
Please enter a number greater than 0.
How many random floating-point numbers would you like to generate? a
Invalid input. Please enter an integer.
How many random floating-point numbers would you like to generate? 5
Enter the lower bound of the range: 0.5
Enter the upper bound of the range: -0.5
Invalid range. The lower bound must be less than the upper bound.
Enter the lower bound of the range: 0.5
Enter the upper bound of the range: 1.5
Generated list of floating-point numbers:[0.57, 0.90, 1.25, 0.92, 1.40]
Average of the numbers: 1.01
+ 100%
P
Zoom
Close