This is the homework

http://i34.tinypic.com/30bjpd0.jpg

It's #5


This is my code
http://pastebin.com/d76a45c10

This is how it runs


Any idea what I can fix or do with that last display? I need to use that method/function to display it but it freaks out to no end when I try to do it via the method/function. I just know that there has to be something I"m missing something really stupid.