Write a program that asks a user to predict how many rolls of a single die it will take to reach 100. When all rolling is finished, compare the given answer to the results and let them know if they did well or not.
• First, ask the user to make a prediction – how many rolls will it take to reach 100?
• Now, start the rolling process. Remember, the die is six sided so each roll could result in any integer from 1 – 6 inclusively.
• After each ‘roll’, show the user the results of each die roll on a separate line. Tab over and display the running total.
• When the total reaches 100 or more, stop rolling.
• Let the user know how many rolls it took.
• Give a message using the following ranges:
o +/- 5 rolls – amazing!
o +/- 10 rolls – good.
o +/- 15 rolls – okay.
o +/- 20 rolls – think harder next time.
No problem, I'm new to coding ( sorta kinda eh idek ) -- I like the challenge of a new problem ( one that isn't super complex and beyond my understanding level )
There are probably parts of the code that I could rewrite to be more functional
You could add a loop to ask if they want to try again, etc, etc but I felt that this was sufficient enough to solve all the requirements of the problem.