| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 13 of 14 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, [13 (top)], 14, [Lab] |
|
Notes for Slide 13 In the lab, you will write a program that uses a loop that will end when a secret number is guessed. Reporting if the guess is too high or too low should help the person playing the game so that the game will end without having to guess up to 64 times. Modifying the above program by placing it inside another loop helps verify that loops can exist inside of other loops. This was not discussed in the slides, but is similar to the previous lesson that covers nesting if-constructs. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, [13 (top)], 14, [Lab] |