|
-
May 1st, 2007, 02:27 AM
#1
Thread Starter
New Member
Help!!!!!!!!!
Hey,
im pretty new at VB and i need a hand with coding for an assignment im stuck on. what would people suggest?
the requirements for the coding is below.
|
v
Option 1 : Guess the Number Game
The computer will guess a whole number between 1 and one of the following numbers : 100 or 1000 or 10000 (the 3 levels of difficulty). When the user enters a number the computer will respond whether the number entered is “Too High”, “Too Low” or “Correct”. The program will continue until the user guesses the number correctly. A number entered outside the selected range will be checked and not accepted by the program.
The program will keep a count of how many guesses the user takes to guess the number and at the end of the program will display a “Certificate” detailing the user’s name, level chosen, the number chosen by the computer, the number of guesses taken by the user and a response based on the following rules:
Maximum Number Chosen
Program’s response after the correct guess is entered
100 3 or less guesses Marvellous, User’s name
4 – 7 guesses Quite good, User’s name
More than 7 guesses Keep trying, User’s name
1000 5 or less guesses Great work, User’s name
6 – 10 guesses Adequate, User’s name
More than 10 guesses Shabby, User’s name
10000 7 or less guesses Out of this world, User’s name
8 – 14 guesses Pretty good, User’s name
More than 14 guesses Oh NO, User’s name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|