Studying for a test, can't figure out my code won't work

Printable View