Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

First, read the first floating - point number from input. Then, read the remaining floating - point numbers while the floating - point numbers are

First, read the first floating-point number from input. Then, read the remaining floating-point numbers while the floating-point numbers are in the range -15.0 to 40.0, both exclusive. For each floating-point number read that is in the given range, output the floating-point number followed by " is in range". Then, output the floating-point number read that causes the reading to stop followed by " is out of range". End each output with a newline.
Ex: If the input is -5.2-43.9-8.9-9.1, then the output is:
-5.2 is in range
-43.9 is out of range
Note: -15.0 and 40.0 are not in the given range.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago