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

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!