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...
What is a program?
What will be an ideal response?
Computer Science & Information Technology
____ software is a type of system software that is designed to perform a specialized task.
A. Utility B. Operating system C. Diagnostic D. Application
Computer Science & Information Technology
Bcdedit is a Graphical User Interface tool that enables you to manage boot configuration data (BCD) stores
Indicate whether the statement is true or false
Computer Science & Information Technology
?Your PowerPoint 'Notes' will not show up if you run a slideshow.
A. Yes B. No
Computer Science & Information Technology