Table 4 shows a training company\'s workshops, the number of days of each, and t
ID: 3527196 • Letter: T
Question
Table 4 shows a training company's workshops, the number of days of each, and their registation fees.
The training company conducts its workshops in the six locations shown in Table 5. The table also shows the lodging fees per day at each location.
When a customer registers for a workshop, he or she must pay the registration fee plus the lodging fees for the selected location. For example, here are the charges to attend the Supervision Skills workshop in Orlando:
Registration: $995
Lodging: $100 X 3days = $300
Total: $1,295
The application should allow the user to select a workshop from one list box and a location from another list box. When the user click the "Add Workshop" button, the application should add the total cost of the selected workshop at the selected location in the third list box. When the user clicks the "Calculate Total" button, the total cost of all the selected workshops should be calculated and displayed in the label. The "Reset" button hould deselect the workshop and location from the first two list boxes, clear the third list box, and clear the total cost label.
Explanation / Answer
Private Sub uxReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles uxReset.Click Me.lbWorkshops.SelectedIndex = -1 Me.lbLocation.SelectedIndex = -1 Me.lbSelectedWorkshops.Items.Clear() Me.uxTotalCost.Text = "$0.00" End Sub Private Sub lbSelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles lbLocation.SelectedIndexChanged, lbWorkshops.SelectedIndexChanged If Not lbLocation.SelectedIndex = -1 AndAlso Not lbWorkshops.SelectedIndex = -1 Then uxAdd.Enabled = True Else uxAdd.Enabled = False End If End Sub
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.