I have to create this bot where the workflow asks user for his name and two-digit lottery
number and displays if he is a winner.
These are the tasks:
• Ask name of the user and two-digit lottery number
• Give the user five chance to enter the correct lottery number
• If entry is below 54 and above 64, display “Enter your lottery number. X chance remaining.”
Here, X is the number of remaining chances for user.
• If entry is between 54 and 64, display, “Congratulations User! You won the lottery.” Replace
User with the name of the user.
• If chances end before correct entry, display “Sorry, you lost. No more chances remaining
How would you do it?