Question: c++ I need help writing a program that reads a set of floating-point values. It needs to ask the user to enter the values, then
c++
I need help writing a program that reads a set of floating-point values. It needs to ask the user to enter the values, then prints >the average of the values >the smallest of the values >the largest of the values >the range (the difference between the smallest and largest) the program may only prompt for the values once.
the program needs to be in C++..thank you
output should like
Enter numbers ( Q when done ) : 1.5 3 4 2 Q
Average : 2.625
Smallest : 1.5
Largest : 4
Range : 2.5
Enter numbers ( Q when done ) : -7.2 Q
Average : -7.2
Smallest :- 7.2
Largest : -7.2
Range : 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
