geoff@atoll:Answers> BoatTrip 'Dodgy Divers' ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : r ------------------------------------ Status for Dodgy Divers ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : a ------------------------------------ Enter passenger name : Tom ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : a ------------------------------------ Enter passenger name : Eileen ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : r ------------------------------------ Status for Dodgy Divers Tom On board Done 0 dives Eileen On board Done 0 dives ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : d ------------------------------------ Enter passenger name : Tom ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : r ------------------------------------ Status for Dodgy Divers Tom In water Done 0 dives Eileen On board Done 0 dives ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : l ------------------------------------ Enter passenger name, bottom time, max depth : Tom 34 12 ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : r ------------------------------------ Status for Dodgy Divers Tom On board Done 1 dives Dive # 1 : 34 minutes at 12 meters Eileen On board Done 0 dives ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : d ------------------------------------ Enter passenger name : Tommy ERROR: Tommy is not a passenger ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : d ------------------------------------ Enter passenger name : Tom ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : d ------------------------------------ Enter passenger name : Tom ERROR: Tom is already diving ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : l ------------------------------------ Enter passenger name, bottom time, max depth : Eileen 44 16 ERROR: Eileen has not been diving ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : l ------------------------------------ Enter passenger name, bottom time, max depth : Tom 44 16 ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : r ------------------------------------ Status for Dodgy Divers Tom On board Done 2 dives Dive # 1 : 34 minutes at 12 meters Dive # 2 : 44 minutes at 16 meters Eileen On board Done 0 dives ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : d ------------------------------------ Enter passenger name : Eileen ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : d ------------------------------------ Enter passenger name : Tom ------------------------------------ A - Add a passenger D - Send someone diving L - Log a dive R - Report boat status X - Exit Enter choice : x ------------------------------------