To Takehome Quizzes

             IT 236 -- Quiz 2 

1. (25 pts.) Write VB.NET statements to do the following:
             (a) Declare an integer variable and initialize it to 2005.
             (b) Declare a double variable and initialize it to 1.414.
             (c) Declare a boolean variable and initialize it to False.
             (d) Declare a string variable and initialize it to 
                 "Lake Michigan"

2. (25 pts.) Show the variable trace and predict the output:
             value = 7
             str = ""
             value = 3 + 4 * value 
             str = value & str & "%"
             System.Console.WriteLine(str & value)
             value = value \ 2
             str = "*" & str 
             System.Console.WriteLine(str & value)

3. (25 pts.) Write a console application that converts a weight in
             pounds and ounces to kilos.

4. (25 pts.) Write a Windows application that converts a weight in
             pounds and ounces to kilos.  Show the code for the 
             submit button event handler only.