Something the original poster should have pointed out, the solution had to comply with only those topics covered in chapters 1 thru 3 of that book.

Strings and arrays aren't covered yet.