Miracle Algorithm Challenges
- Hello World
Write a program which pops up a message to the user saying
"Hello, world"
- User
Ask the user his or her name, and repeat that name to the user
- Hello, user
Ask the user his or her name, and say "Hello, " and the user's
name in the same message box.
- Hello Wally
Ask the user his or her name. If it's Wally, call him a name.
- Ten Lap Race
Simulate a race with a program that says "now on lap: "
for ten laps.
- Backwards Race
Write a program that goes from ten to one
- Math Quiz
Ask the user a simple math question. Continue asking the
question until the user gets the answer correct.
- Mad lib.
Ask the user for a number of words (favorite color, name of a
person, adjective). Use these words in a story.
- Number guesser
Your program generates a random number between 1 and 100. The
user guesses a number, and your program will tell the user if he
or she is high, low, or right on.