When posting code, please use the code tags and post it as an SSCCE.

Time to do some debugging. You need to figure out where the program's execution differs from what you expected. Does the...