Question: In this lab you will read in two integers defining the low and high bounds of a half - open range. Then you will read
In this lab you will read in two integers defining the low and high bounds of a halfopen range. Then you will read integers until you reach the end of the input, and for each one you will determine whether or not it is in the range defined by the first two numbers.
Given this input:
your program will print
is in the range
is in the range
is not in the range
is not in the range
is not in the range
Remember that a halfopen range does include the lower bound of the range, but does not include the upper bound. For example, is in the range but is not.
Using System.out.printf will make your life easier here. Remember that d is the format specifier for a decimal integer. Wrie in code main.java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
