Write a fragment of code that will test whether an integer variable score contains a valid test score. Valid test scores are in the range 0 to 100.
What will be an ideal response?
```
if( score >= 0 && score <= 100 )
System.out.println("The score " + score + " is valid.");
else
System.out.println("The score " + score + " is not valid.");
```
This code is in Fragments.java.
Computer Science & Information Technology
You might also like to view...
The two most basic characteristics of a brush are the diameter-the size of the brush-and the feather-how hard or soft the edge of the brush is.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
A(n) ____________________ is a high-speed communications service that allows high-speed access to wide area networks such as the Internet via a cable television connection.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology