| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 9 of 10 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, 8, [9 (top)], 10, [Lab] |
|
Notes for Slide 09 In the lab, you will modify your Off-by-One War of 1812 program so that it will report exactly how many years off a guess is from 1812. A guess of 1811 and 1813 will both output a message that the guess is off by 1. (Notice that the output uses the number 1 instead of the word "one".) Similarly, a guess of 1814 and 1810 will both output a message that the guess is off by 2. 1, 2, 3, 4, 5, 6, 7, 8, [9 (top)], 10, [Lab] |