//Hi all,
//I am finding it impossible to write a short piece of Java that will allow
//me to create a guessing game. I want to write a guessing game whereby the
//computer generates a random number between 1 and 1000. The player must guess
//the number, with the program responding with either "too high" or "Too low"
//or "Well Done". When the player has eventually guessed correctly, the
//program will show how many attempts were required. If someone can help me
//within the next 10 hours, then they have literally saved my life !
//Thanks in advance...
//Sarah
My first thought was that this exact assignment was in our textbook. It was not, but great humanitarian that I am (favorite phrase while driving: THERE ARE TOO MANY @#$% PEOPLE IN THIS WORLD!), after mowing the yard and getting ready for bed, I decided to write the program. It quickly became apparent that J++ 6 was not at all like J++ 1.1, so I reinstalled J++ 1.1. I took the random routine from the failed randomWeb project, mixed it with some other code, tested, refined, and posted all the files at 2230.
Did it reach Sarah by 2400? Was I able to save her life? She cross-posted to a number of Java newsgroups, so did she even check the right one? I never heard anything more, so I do not know. However, on the following day, there were two email messages for me from recruiters looking for Java programmers; further proof that I chose the right field of study.