A sloppy flowchart, hopefully. Plus the phone number for late-night pizza delivery.
Here is a more formal flowchart. The boxes have been filled with generic descriptions.
Fill in the list (above) with phrases that tailor the flow chart for this problem. An input buffer is used to hold the "enter" or the "Q" that the user might enter. Select phrases from the following (not all phrases are useful):
Fill in the table