Guest User

Untitled

a guest
Jun 19th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
  2.  
  3.         Dim lblOutputA As Double 'ClassA Output
  4.        Dim lblOutputB As Double 'ClassB Output
  5.        Dim lblOutputC As Double 'ClassC Output
  6.        Dim lblOutputT As Double 'Total Output
  7.  
  8.         lblOutputA = CDbl(txtInputA.Text) * 15 'Calculates ClassA
  9.        lblOutputA = lblOutputA.ToString("c")
  10.         lblOutputB = CDbl(txtInputB.Text) * 12 'Calculates ClassB
  11.        lblOutputB = lblOutputB.ToString("c")
  12.         lblOutputC = CDbl(txtInputC.Text) * 9 'Calculates ClassC
  13.        lblOutputC = lblOutputC.ToString("c")
  14.         lblOutputT = CDbl(lblOutputA + lblOutputB + lblOutputC) 'Adds all classes to produce Revenue Total
  15.        lblOutputT = lblOutputT.ToString("c")
  16.  
  17.     End Sub
Add Comment
Please, Sign In to add comment