Im trying to get a sales percentage program to work and im having trouble on the last part. My homework is to get the original price from the customer and then take the sales percentage off and show how much it is. Then after the first percentage is off take an additional percentage off part and then show the grand total. I got all the way up to the additional percentage off part to work right. I dont understand why I cant add an additional percentage of and the program wont recognize it and work right. Can someone help me
Public Class Form1
Dim Num1 As Integer
Dim Num2 As Integer
Dim Num3 As Integer
Dim Num4 As Integer
Dim Num5 As Integer
Dim sales As Integer
Dim answer As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Num1 = TextBoxNum1.Text
Num2 = TextBoxNum2.Text
Num4 = Num2 / 0.01
sales = Num4 / Num1
Labelsale.Text = sales
Num3 = TextBoxNum3.Text
Num5 = 0.01 / Num3
answer = Num5 / sales
Labelanswer.Text = answer
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Close()
End Sub
End Class
Thank you