Analyze the following highly simplified procedure:

Code

Ask: "What type of ticket do you require, single or return?"
IF the customer wants 'return'
    Ask: "What rate, Standard or Cheap-day?"
    IF the customer replies 'Cheap-day'
        Say: "That will be $11:20"
    ELSE
      Say: "That will be $19:50"
    ENDIF
ELSE
    Say: "That will be $9:75"
ENDIF

Comments