I need to make an application that can calculate the items the user chooses from
There is 7 different items the user can choose from
Small Coffee $4.95
Medium Coffee $6.87
Large Coffee $8.52
Bagel $2.99
Cream $0.71
Sugar $0.50
Lid $0.99
Total the coffee order (subtotal + tax at 6% = grand total)
Allow the user to delete items from the customer order and to allow the user to start the order for a new customer (clear all).
Create a button that gives a 10% discount for coffee only and adjusts the subtotal, tax, and total. Make certain the user can not click the button more than once per customer and if an item is removed from the customer order, make sure the discounted price is removed rather than the list price of the coffee. The button can only be clicked after the coffee is ordered, not before the coffee is selected.
This is what I got so far
Public Class Form1
Private myCoolCheckBoxPrices() As Double = {4.95, 6.87, 8.52, 2.99, 0.71, 0.5, 0.99}
Private myTax As Double = 0.06 'Tax used to add to Total Price
Private Sub lstItems_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles lstItems.DoubleClick
'customer double clicks on item and it is added to order list and adds to totals
End Sub
Private Sub lstOrder_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstOrder.SelectedIndexChanged
'customer double clicks on item and it is removed from list and removed from totals
End Sub
Private Sub btnNewCustomer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNewCustomer.Click
'clear the customer order and set the totals to zero
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class