more solutions to the Learning To Program book exercises