These are sample solutions to the test program questions. There are many ways to implement these programs other than the way we did.