Write a statement that will calculate and display weekly gross pay in the Label control lblGross if the hours worked are between 0 and 40. The variables are of type Double and are dblHours for hours worked, dblRate for pay rate, and dblGross for total wages.
What will be an ideal response?
If dblHours <= 0 OrElse dblHours > 40 Then lblGross.Text = "N/A"Else dblGross = dblHours * dblRate lblGross.Text = dblGross.ToString("C2")EndIf?
Computer Science & Information Technology
You might also like to view...
The ________ style is the default style for new documents
A) Theme B) Default C) Heading 1 D) Normal Quick
Computer Science & Information Technology
The Microsoft Developers Network (MSDN) online library provides:
a) tutorials b) articles c) downloads d) All of the above.
Computer Science & Information Technology