Java Reference
In-Depth Information
D. 67count
6 . How do you create a single-line comment? How do you create a multiline comment?
7 . Show the general form of the if statement. Show the general form of the for loop.
8 . How do you create a block of code?
9 . The moon's gravity is about 17 percent that of earth's. Write a program that computes
your effective weight on the moon.
10 . Adapt Try This 1-2 so that it prints a conversion table of inches to meters. Display 12
feet of conversions, inch by inch. Output a blank line every 12 inches. (One meter
equals approximately 39.37 inches.)
11 . If you make a typing mistake when entering your program, what sort of error will res-
ult?
12 . Does it matter where on a line you put a statement?
Search WWH ::




Custom Search