Write a series of challenges that will test your users skill and cunning
Guess my name.
Which 2 numbers?
Times Table Quiz
Celebrity name generator
Menu
1. Guess my name
When the program runs it should loop until the correct name is entered.
Pass the name to guess as a parameter to the procedure.
Use your name as the one to guess
Accept a guess from the user
Repeat while the wrong answer is added
When the right guess is entered it should print out You guessed my name!
2. Which 2 numbers?
The program generates a random number between 5 and 20. The user then picks 2 number that add up to that number.
Generate a random number and assign it to a variable.
Display the number to the user.
prompt the user to enter the numbers
add the numbers together and check it against the generated number.
Give feedback to the users
Extension
Keep asking until the user gets the right answer
3. Times Table Quiz
Test users on their timetables.
Keep score
Display the 2 times table on the screen without the answer
Ask the user for the answer
Check if the answer is correct.
Display the correct score on the screen.
Extension
The user picks which timetables they can do.
The program generates 10 random timetables to try.
4. Celebrity Couple Name Generator (function)
When this option is selected the program should:
prompt the user for the surname of both celebrities
Take the first 3 letters of the 1st name
Take the last 3 letters of the 2nd name
Join them together
Output the results. e.g. Green Rymer would give Gremer
Extension
Allow the 2 names to be passed as a parameter and return the celebrity couple name
Always return half of the length of the name
5. Menu
When this option is selected the program should:
Show the list of games that can be played
Validate the choice so if the value entered is not accepted the menu is shown again.