Essay
The following sample of code contains errors. Rewrite the incorrect statements to correct all errors.
-An application allows the user to enter a salary amount.The application should then calculate and display the possible bonuses based on that salary,using bonus rates of 3-6% in increments of .5%.
' displays bonus amounts using rates
' of 3% - 6% in increments of .5%
Dim dblSalary As Decimal
Dim decBonus As Decimal
TryParse(txtSalary.Text,decSalary)
lblBonus.Text = String.Empty
For decRate As Decimal = 0.03 To 0.06 Step 0.5
decBonus = decSalary + decRate
lblBonus.Text = lblBonus.Text & decRate.ToString("P1")& " " & decBonus.ToString("C2")& ControlChars.NewLine
Next decRate
Correct Answer:

Verified
Dim decSalary As Decimal
Decim...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
Decim...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q22: Write two different Do...Loop clauses that stop
Q23: A counter is always incremented by a
Q24: Explain the difference between a pretest loop
Q25: Which of the following statements pauses program
Q26: _ means assigning a beginning value to
Q28: If the stepValue is omitted when coding
Q29: A(n)_ read is used to prepare or
Q30: A(n)_ is a numeric variable used for
Q31: The assignment statement that updates a counter
Q32: You can use a _ to display