Monday, May 10, 2010

Learning & Assessment Activity 3.15

1. Create a new Visual Studio project and name it LA_Activity_3.15

2. Code a select case statement that will ask a user for a colour and then matches that colour against pink, red, blue, yellow and aqua, giving a correct message if they have entered any of these colours, and an incorrect message if they entered any other colour.

3. Publish a screen shot of your code and any comments you have to your assessment document.

My code:











A correct message when i type in a color that is within the code:












An incorrect message when i type in a color that is not within the code:

No comments:

Post a Comment