Assignment 3

A)

Write a countdown timer program.  It has a single button, B with a single click event.  B.text starts as “10”.  Fill in the program so that every time the button is click the number goes down by 1 until it gets to zero.  At zero, the B.text should be “Blast off”.  After blast off, further clicks should have no visible effect.

  

Class BlastOff

 

 

          public sub B_click(…

 

 

 

 

 

          End sub

End class

 

 

B)

This program has a button, B, and a textbox, T.  When B is clicked, take the user input from T, converts it to a number and tells the user (with a message box) whether their input is positive, negative, or zero. If the user has entered an incorrect input ( that is not a number) the message “Incorrect input! Please enter a number” should be displayed. (You will need a vb function IsNumeric() for the check.)

Class BigLittle

 

 

          public sub B_click(…

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

          End Sub

End Class