These are my code snippets from Chris Pine's "Learn To Program" chapter 7 tasks ("A few things to try"):