Code for the end-of-chapter assignments in the Java Blue Pelican Text