Solving the first problem

This is my first attempt to solving the dog years question. I asked the
instructor if I was on the right track using this code.