CISY 125 - In-Class Lab 6
Prompt the user for an outdoor temperature. Display to the user the appropriate
sport for that temperature. Use a SELECT CASE statement for this logic.
Temperatures:
| Sport | Temperature |
| Swimming | > 85 |
| Tennis | 71-85 |
| Golf | 33-70 |
| Skiing | 11-32 |
| Checkers | <=10 |
Make sure your SELECT CASE handles all possible temperatures. Your message
displayed does not have to be the same as mine below...I was having fun!
Sample Run
Enter the outdoor temperature? 90
Let's go Swimming!
Another Sample Run
Enter the outdoor temperature? 75
Tennis Anyone?
Another Sample Run
Enter the outdoor temperature? 65
Be like Tiger - Play Golf
Another Sample Run
Enter the outdoor temperature? 25
Let's hit the slopes! Ski Shawnee!
Another Sample Run
Enter the outdoor temperature? 5
Brrrr! Let's sit by the fire, play Checkers, and drink Hot Chocoloate
Note: The Select Case examples on page 140 are wrong.
The range is lower to upper.
Submitting the program
- Submit the QBasic code electronically (either hand in the In-Class Floppy, or e-mail the QBasic code)
- Submit the QBasic code on paper.