Question: * * IN JAVA, PLEASE * * First, read the first floating - point number from input. Then, read the remaining floating - point numbers

**IN JAVA, PLEASE**
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 -20.0 to 20.0, both exclusive. Output the total number of floating-point numbers read in the given range. End with a newline.
Ex: If the input is -18.5-16.5-14.0-12.0-49.0-12.5-16.0, then the output is:
Number of floating-point numbers read: 4
Note: -20.0 and 20.0 are not in the given range.
import java.util.Scanner;
public class CountRead {
public static void main(String[] args){
Scanner scnr = new Scanner(System.in);
double inputValue;
int countRead;
countRead =0;
//your code goes here
}
}
 **IN JAVA, PLEASE** First, read the first floating-point number from input.

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!