Question: Write a C++ program that prompts a user to enter 10 random numbers and determines the statistical range of numbers. Also count and show the
Write a C++ program that prompts a user to enter 10 random numbers and determines the statistical range of numbers. Also count and show the total number of comparison that your program does to compute the range.
For example, if the numbers are 6, 7, 2, 3, 6, 9, 1, 7, 4, 2, the output should be:
The range is 9-1=8.
This program did 18 comparisons.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
