Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
Me.Close()
End Sub
Private Sub ClearButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClearButton.Click
Me.LargeCookieTextBox.Text = ""
Me.SmallCookieTextBox.Text = ""
Me.TotalLabel.Text = ""
End Sub
Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculateButton.Click
Dim total As Double
Dim subtotal As Double
Dim tax As Double
tax = 0.06
subtotal = (LargeCookieTextBox.Text * 0.95) + (SmallCookieTextBox.Text * 0.5)
total = subtotal + (subtotal * tax)
total = total + 1
Me.TotalLabel.Text = total
Me.TotalLabel.Text = Format(TotalLabel.Text, "currency")
End Sub
End Class