homework for introduction to programming 4052303