SQIT1013 Individual
SQIT1013 Individual
TABLE 1 gives the price schedule for Najib’s Equipment Rental. Full-day rentals cost one-
and-a-half times and half-day rentals. Write a program that displays possible output in a list
box when an appropriate button is clicked on and displays a bill in another list box based on
the item number and time period chosen by a customer. The bill should include a RM 30
deposit.
TABLE 1
ListBox1.Items.Add("Price of Equipment" & vbTab & vbTab & "Half Day" &
vbTab & vbTab & "Full Day")
ListBox1.Items.Add("1. Rug Cleaner" & vbTab & vbTab & "RM16.00" & vbTab
& vbTab & "RM24.00")
ListBox1.Items.Add("2. Lawn Mower" & vbTab & vbTab & "RM12.00" & vbTab
& vbTab & "RM18.00")
ListBox1.Items.Add("3. Paint Sprayer" & vbTab & vbTab & "RM20.00" &
vbTab & vbTab & "RM30.00")
End Sub
End Sub
ListBox2.Items.Clear()
Const deposit = 30
item = txtItem.Text
duration = txtDuration.Text.ToUpper()
Case "1"
itemsCost = 16
Case "2"
itemsCost = 12
Case "3"
itemsCost = 20
End Select
Else
End If
ListBox2.Items.Add("")
ListBox2.Items.Add("")
Else
End If
End Sub
End Class
Display
Display for Rug cleaner
Half-day
Full-day
Display for Lawn mower
Half-day
Full-day
Display for Paint sprayer
Half-day
Full-day