1. Dim name As String, Dim price As Decimal
2. Dim name As String, Dim height As Decimal, Dim weight As Integer
3. City = “Miami”
4. Sales1 + sales2 = totalSales
5. Salary * 1.5 = salary
6. Dim employeename As String, needs to be entered after the click procdure coding, it is a module-level variable.
9. isConverted = Integer.TryParse(unitsTextBox.Text, _NumberStyles.AllowThousands, NumnerFormatInfo.CurrentInfo, numberofunits)
15. A static variable is a variable that will remain the same in every line of code it is placed in.
Page 260
7. If carTextBox.Text = “Grand Am”
Then carMakeLabel = “Pontiac”
8. If units < 0
Then messageLabel.Text = “Entry error”
Else messageLabel.Text = “OK”
9. If quantity < 0
Then messageLabel.Text = “Reorder”
Else messageLabel.Text = “OK”
13. If hours > 40
Then gross = hours * hourRate * 1.5
Else gross = hours * hourRate
EndIf
grossLabel.Text = gross

No comments:
Post a Comment