Question: Write the follow two programs. 1) Write a program that reads a set of floating-point values. Ask the user to enter the values, then print:

Write the follow two programs. 1) Write a program that reads a set of floating-point values. Ask the user to enter the values, then print: . The number of values entered. . The smallest of the values . The largest of the values. . The average of the values. . The range, that is the difference between the smallest and largest values. If no values were entered, the program should display "No values were entered" The program execution should look like (note: the bold values are sample user inputs): This program allows you to enter as many numbers as you want and then displays the number of numbers that you entered, the smallest value, the largest value, the average, and the range. Enter a number (0 to quit): O No values were entered. Please run the program again. New execution This program allows you to enter as many numbers as you want and then displays the number of numbers that you entered, the smallest value, the largest value, the average, and the range. Enter a number (0 to quit): 10 Enter a number (0 to quit): 20 Enter a number (0 to quit): 25.5 Enter a number (0 to quit): 30 Enter a number (0 to quit): 66.2 Enter a number (0 to quit): 100 Enter a number (0 to quit): O The number of values entered was: 6 The smallest value was: 10.0 The largest value was: 100.0 The average of the values was: 41.949999999999996 The range of th Thank you for using the program. e values was: 90.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
