Challenges for 29th Feb 2020
Ask the user to type in a phrase, then display it backwards
eg: Happy Birthday -> yadhtriB yppaH
BONUS: Display the words in reverse order
eg: My name is Tim -> Tim is name My
Ask the user to type in two words
Find the letters which are in both words,
eg: Happy Birthday -> a y
BONUS: Find the letters which are unique to one or other word
eg Peppa Pig -> eaig
Ask someone for their birthday as yyyymmdd and then say how old they are in years (obviously accounting for the fact that their birthday might not have happened yet this year)
BONUS: do it for years and months
You have a list of 5 people. Connect them up in pairs of present-giver / present-receiver. Everyone must give a present; everyone must receive a present; no-one can give a present to themselves.
BONUS: do it again with different answers
You have a list containing runs of numbers with gaps in between, eg [1, 2, 3, 4, 5, 8, 9, 10, 15, 16]
Find the runs (ie here [1, 2, 3, 4, 5], [8, 9, 10], [15, 16])
BONUS: Find the missing numbers (ie here [6, 7], [11, 12, 13, 14])