What's wrong with this program, and how to fix it?

Printable View