Can goto() statements be avoided in this program -- pls place code?

I think this is one of those cases (no pun intended) where the notation, in this case a flowchart, adversely affects the approach to structuring of the code, and encourages poor solutions.