Common Computer Science References
At the end of this lesson, you will be able to:
create an application that uses a looping structure
loops in code
the entire reason computers were created!
read "Structured Problem Solving", Chapter 2, Computer Based Problem Solving
read up to and including "Repetition"
read the following problem:
Create a program called DiceGame. The game will generate a random number between 1 and 6. It will then ask the user to guess the number and will keep track of the number of guesses until the user gets the right answer. If he guess is wrong, the program will tell the user if the guess was too high or too low. In the end it will then tell the user how many guesses it took.
REMEMBER: you must include error checking from now on!
no crashing programs no matter the input!
do the above in a second language