Monday, April 12, 2010

Turing in-class assignment - Selection using the case construct

Create a Turing program named after yourself (e.g. HannahM_SelectionCase). The program asks the user to choose their favourite sport from a menu of four sports. The program then gives a different reponse (e.g. "Great choice! Hockey is Canada's most popular sport.") for each sport. Use a case construct with string input. When finished, copy your file to the Dropoff Folder (Jarvis / Dropoff / Schreiber / ICS2O1).

No comments:

Post a Comment