Help with Array Loops

I’m in a PHP Class, and I’m stuck on this one assignment about PHP loops. I have no idea what the problem is or how to fix it. My teacher isn’t responding to my e-mails, so I thought I’d try some outside help.

The coding is at:
The Page is at:

Sponsor our Newsletter | Privacy Policy | Terms of Service