1) How many objects are referred to? What are they?
There's one variable, two text boxes and two buttons.
2) What is the name of the variable referred to?
secretnum
3) What are the three text options that appear in textbox1?
higher, lower and correct.
4) What do you think this code does?
You would enter a number in one of the text boxes and click a button but if the random number is higher, lower or if it's correct the other text box would tell you.
5) Well actually you should replace TextBox2 with a label and that means replacing TextBox2 in the code with Label1. This means that you can't enter something in the wrong textbox which is what I was doing which is why it wasn't working. In the original code I was entering a number where it shouldn't have been entered which is why you change it into a label because you can't enter a number in a label. The first button checks your answer and the second button resets it.
No comments:
Post a Comment