In the following code, what values could be read into number to terminate the while loop?
```
Scanner keyboard = new Scanner(System.in);
System.out.print("Enter a number: ");
int number = keyboard.nextInt();
while (number < 100 || number > 500)
{
System.out.print("Enter another number: ");
number = keyboard.nextInt();
}
```
a. Numbers less than 100
b. Numbers greater than 500
c. Numbers in the range 100 - 499
d. Numbers in the range 100 - 500
d. Numbers in the range 100 - 500
You might also like to view...
Which of the following statements is false?
a. An application that requires precise floating-point calculations such as those in financial applications should use class BigDecimal from package java.math. b. We use class NumberFormat for formatting numeric values as locale-specific strings. c. In the U.S, locale, the value 15467.82 would be formatted as "15,467.82", whereas in many European locales it would be formatted as "15.467,56". d. The BigDecimal method format receives a double argument and returns a BigDecimal object that represents the exact value specied.
What does each of the following mean:
1. Clip 2. Splice 3. Reverse 4. Mirror