Question: Please help Use cin to read floating-point numbers from input as current readings until two readings are read that are both positive and less than

Please help

Please help Use cin to read floating-point numbers from input as current

Use cin to read floating-point numbers from input as current readings until two readings are read that are both positive and less than 10.0. Output the two readings in the given range. End each output with a newline. Ex: If the input is 0.01.20.91.4, then the output is: 1.2 0.9 Note: Use fixed and setprecision(1) to set one digit after the decimal point. 2 3 A while loop reads each floating-point number from input in currentCurrent. numSuccesses is initialized with 0 . If the value of currentCurrent is greater than 0.0 and less than 10.0, the floating-point number is output followed by a newline and numSuccesses is incremented. If numSuccesses is equal to 2 , the while loop terminates

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!