Case Contract Question-Kent State University.

I’m working on a programming question and need an explanation and answer to help me learn.