| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 9 of 21 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, 8, [9 (top)], 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [Lab] |
|
Notes for Slide 09 Java will not allow you to attempt to get the value of a double variable until you put a value into it. The example program above on the left shows using an input statement to place a number into the average variable. The erroneous program above on the right shows a second statement that is not acceptable Java because the average variable would be empty when the second statement runs. 1, 2, 3, 4, 5, 6, 7, 8, [9 (top)], 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [Lab] |