Post a sample run so that we can duplicate the error.

Never mind - but please do so in the future.

You ask the user to enter a 'Q' to end. What's going to happen when the program is looking...