Question: In C++ please Read floating-point numbers from input until a floating-point number is read that is not in the range 15.0 to 35.0, both exclusive.

 In C++ please Read floating-point numbers from input until a floating-point

In C++ please

Read floating-point numbers from input until a floating-point number is read that is not in the range 15.0 to 35.0, both exclusive. Then, find the sum of all the floating-point numbers read before the floating-point number that causes reading to stop. Lastly, output the sum, ending with a newline. Ex: If the input is 9.58.933.411.4, then the output is: 18.4

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!