Professional Documents
Culture Documents
Bit 2105 Application Programming
Bit 2105 Application Programming
iv) Briefly describe Microsoft's Visual Studio (also called Visual Studio.NET)
programming environment [4 Marks]
GrossPayDecimal = Decimal.Round(HoursDecimal *
PayRateDecimal, 2)
Else
GrossPayDecimal = Decimal.Round((40D *
PayRateDecimal) + _
1
((HoursDecimal - 40D) * PayRateDecimal *
1.5D), 2)
End If
ii) VB has two different types of constants. Describe them using examples to
illustrate. [6 Marks]
c) Describe how local variables and module level variables are declared in VB
[3 Marks]
d) Differentiate between list box, checked Listbox and combo box as used in VB.NET
[2 Marks]
Clicking a Compute button should display the total value of the inventory product
to an output textbox. Clicking a Reset button will reset the form. Clicking an Exit
button will close the form. Write code to perform all the above. [20 Marks]
b) The VB code segment shown below is incorrect. Identify the error and write the
correct code. [8 Marks]
Illegal Syntax
RegularPayCheckBox.Checked = True
2
Else if RegularPayCheckBox.Checked = False
End If
b) Describe using examples how to define keyboard access keys (hot keys) for buttons
and other controls. [7 Marks]
[6 Marks]
c) Using sample VB codes declare a module-level array and store values to the array
immediately. [8 Marks]