These are some exercises from Learn To Program 2nd ed by Chris Pine