Appendix A. Answers to lesson exercises
This appendix contains the answers to the exercises found in the lessons. The answers to the Quick checks are very straightforward, but the answers to some of the Summary exercises may be achieved in several different ways. I have provided a possible solution for each, but your answers may vary slightly from the ones that I have provided.
Lesson 2
Answers to quick checks
Quick check 2.1
Problem—Make mac-and-cheese.
Vague statement—Dump box of mac-and-cheese in boiling water for 12 minutes.
Specific statement—Pour 6 cups of water in a pot, turn up stovetop temp and wait for water to boil, pour in noodles, let them cook for 12 minutes, drain noodles, add packet of cheese, and stir.
Quick check 2.2 ...
Get Get Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.