1. Create a Magic 8-Ball program. Ask the user to first think of
a yes/no question and then press any key to
continue. Once they press a key, generate a random number between 0-6 (inclusive), and use a switch
statement to print out one of the following statements. Feel free to use an enum to make your program
I don’t think so…
I believe so…
Think of a yes/no question.
Press any key to continue...
2. Create a program to simulate level difficulty. Each level of
difficulty of your game will have a different
number of enemies, though that number is random. Ask the user which level of difficulty they would like
to play. Use a switch to process their choice. Generate a random number of enemies for your game, but
generate a number in a higher range for harder levels of gameplay.
What’ll it be? 1
You’ll have to fight 6 enemies!
What’ll it be? 3
You’ll have to fight 27 enemies!