VB.NET: Decision Making Exercise 2

Start a new project. Add a textbox, a Label and a button to your new Form. Then write a programme that does the following:
  1. Asks users to enter a number from 1 to 20.
  2. The number will be entered into the Textbox.
  3. When the Button is clicked, your Visual Basic code will check the number entered in the Textbox.
  4. If it is between less than or equal to 20, then a message will be displayed.
  5. The message box will display the number from the Textbox.
  6. If the number entered is greater than 20 then the user will be invited to try again, and whatever was entered in the Textbox will be erased.
  7. If the number entered is greater than 99, a message will prompt that it reach the maximum extended number.

Labels: