Buy Fruit
; Problem statement: Buy fruit ; Make a fruit list. ; List fruits to buy. ; List the quantities. ; Go to the market. ; If open: Enter. ; If closed: Go to another market. ; If three are closed: Go home. ; Find fruit department. ; Select fruit. ; Find fruit. (Loop for each fruit on list.) ; If available and good: Select. ; Else: Find next fruit on list. ; Pay for the fruit (if selected.) ; If fruit found: Pay for it. ; Else: Go to another marketor Go home. ; If all fruit not found: ; Go to another marketor Go home. ; Go home.
This website has been archived and is no longer maintained.