Wednesday, February 25, 2009

Chapter 4 KURL

Page 188-189
1. Dim totalPrice As Decimal
2. Dim itemHeight As Integer
Dim itemWeight As Decimal
3. City = “Miami”
4. Sales1 + Sales2 = totalSales
5. Salary*1.5 = salary
6. Dim employeeName As Integer
9. isConverted = Integer.TryParse(unitsTextBox.Text, _
NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo, numberOfUnits)
15. A static variable is a variable that will remain the same in every line of code that it is placed in.
Page 260
7. If carTextBox.text = “Grand Am” Then carMakeLabel.text = “Pontiac” Else carMakeLabel.text = “ “
8. If units < 0
Then messageLabel.Text=”Entry Eror”
Else messageLabel.Text=”OK”
9. If quantity < 10
Then messageLabel.text=”Reorder”
Else messageLabel.text=”OK”
13. if hours > 40
Then gross = hours * hourRate * 1.5
MessageLabel.Text=”gross”

No comments:

Post a Comment