| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 3 of 18 [next] |
|
|
| 1, 2, [3 (top)], 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, [Lab] |
|
Notes for Slide 03 Given that you can store a number such as 1812 in a String variable, the question is what functionality is missing in Strings so that we need the concept of using ints instead of String for numbers? Above you see that using our current approach of reporting that a guess is one year away is limited. What if the guess is two years away? What if the guess is three years away? What if the guess is ten years away? How would you handle any guess and be able to report how far away the guess is from 1812? 1, 2, [3 (top)], 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, [Lab] |