In the 6th grade, students will be provided specific problems (with detailed goals) to solve using computers. Besides designing programming solutions, students will also learn more about how computers work. Computing is not as frustrating as many students believe it is, however, it does require clear concise language in order to craft the appropriate sequence of commands which will yield the desired result.
This past Friday (and continuing through this week), students will be working on writing the correct computer code to solve the problem--- "What's my number?".
Below is an outline of the sequence of steps that the program needs to contain:
Step 1: The computer will generate a random number between 1 and 100
Step 2: The player (person) will make a guess between 1 and 100.
Step 3: The computer will compare the user input to the computer generated number
(a) If the numbers don't match, provide a hint and have the person guess again
(b) If the numbers do match, the game ends (or you can play again, if the user wants to).
Part of the learning process is coming up with the logic (Conditional Statements) (the comparison statements) to determine if the Player has guessed the correct number. The second part of the learning, is to determine the logic (Control Statements) which will enable the user to keep entering guesses (if needed).
Below is the skeleton code for the project: