simply me & what I do in IST...
no taxing aiights. :)
cos i have machine guns! xD
02.05.95
cmac10'ster.
[EST. 210307]
i❤youuuu.
&& thats me.
In this task we are to create a small game where the user is to guess the random number that the computer has generated between 1 to 10.
- Objects- 2 buttons and 2 textboxes.
- Properties- Codes of the objects used.
- Events- The click function.
Here are a few questions from the task that we had to answer;
1. How many objects are referred to? What are they?
Objects referred to are 2 buttons that allow the data to be entered and reset the game, and 2 textboxes which show the number you entered and whether your entry was right, wrong or needed to be guessed again at a higher or lower value.
2. What is the name of the variable referred to?
The variable that the program refers to is the number that the user enters into the first textbox as this affects the answer that the program gives whether the number guessed was correct or not to the random number generated by the program.
3. What are the three text options that appear in textbox1?
- Higher
- Lower
- Correct
4. What do you think this code does?
The code allows the textbox to be able to display clues to the number that was randomly generated by the computer. This gives the user an idea of how close their estimated number is to the number generated by the computer.5. Build this code into a project and get it to work!!
Below is a screen shot of the program once run;
And here's a screen shot of the code that was used;
Tatjana's Blog: Tatjana in IST.