Write a do loop that verifies that the user enters an even integer value.

What will be an ideal response?


```
Scanner scan = new Scanner(System.in);
do
{
System.out.print("Enter an even integer: ");
number = scan.nextInt();
}
while {number%2 != 0);
```

Computer Science & Information Technology

You might also like to view...

____ language followed machine language.

A. Connection B. Assembly C. Line D. Wave

Computer Science & Information Technology

Which of the following physical security measures should be applied to a server room?

a. The room should be locked at all times. b. The room should be fireproof. c. The room should have no windows. d. All the above.

Computer Science & Information Technology

Federal agencies such as the NSA, FBI, and CIA use specialty classification schemes. For materials that are not considered "National Security Information," __________ data is the lowest-level classification.

A. sensitive B. confidential C. unclassified D. public

Computer Science & Information Technology

A(n) ________ is a part of a form or report that can be manipulated independently from other parts.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology