The Guessing Game

Looking Line By Line

If you are having trouble understanding why your program doesn't work the way you think it should, one possibility is to compare your program with somebody else, perhaps a friend who is taking the same course, or else click the buttom below to show my version. If you have a good memory (I don't), you can switch back and forth; otherwise copy yours and paste it into another window so you can see both at the same time. What you can't do is make changes to your program, then switch back and forth and expect those changes to stay (go back to the previous page and make your changes there, or else open a second window so you don't need to swtitch back and forth). 
 

If you still have trouble, ask the instructor, that's what we are here for.

You may notice that I varied my wording: English is like that, different words sometimes mean the same thing. There is a complete list of what the Kitchen computer understands in The Kitchen Reference Manual. I also added extra output lines to remove the request for input (which also serves to let the user know their input was accepted). It's a courtesy, not required.

When your program works OK, or if you want to take a break and work on something different, just save your program text in a separate file (copy the text and paste it into NotePad or whatever you have for saving text on your computer), then turn the page and try Rock-Paper-Scissors (just text input and output).

Or you can start learning Java.
 

<<Previous | ToC | Next >>

[2021 May 27]