Guest User

Untitled

a guest
Dec 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Public Class SodaMachine
  2.  
  3. Dim total, change, dollars, quarters, nickels, dimes As Double
  4. Dim coke, yello, dew As Integer
  5.  
  6. Private Sub PictureBox1(sender As System.Object, e As System.EventArgs) Handles DietCoke.Click
  7.  
  8. If total < 1.25 Then
  9. ListBox1.Items.Add("Please enter $1.25")
  10. Else
  11. ProgressBar1.Value = ProgressBar1.Value - 1
  12. total = (total - 1.25)
  13. ListBox1.Items.Add("Total: " & total)
  14. change = total
  15. ListBox1.Items.Add("Change: " & change)
  16. total = 0
  17. End If
  18.  
  19.  
  20. End Sub
Add Comment
Please, Sign In to add comment