Without any real documentation or assignment instructions, it would take too long to try an figure out why you wrote things the way you did.
Anyways, by the way your instructor's response is worded, it sounds to me as if the alleged printing error is caused by one of the previous mistakes. I'd like to help further, but without assignment guidelines or some kind of documentation I'm not going to try and disect this. Maybe someone else on this forum will be more willing.
I can tell you, however, that assigning 0 to a variable of an unknown dataType is questionable, as it's not always guaranteed that it will be an integral type.