kk258966

5-2

Nov 3rd, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.    
  4.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  5.         Dim income As Integer
  6.         income = Val(TextBox1.Text)
  7.         Select Case income
  8.             Case Is <= 300000
  9.                 Label4.Text = "6%"
  10.                 Label5.Text = income * 0.94
  11.             Case Is <= 800000
  12.                 Label4.Text = "13%"
  13.                 Label5.Text = income * 0.87
  14.             Case Is <= 2000000
  15.                 Label4.Text = "21%"
  16.                 Label5.Text = income * 0.79
  17.             Case Is > 2000000
  18.                 Label4.Text = "30%"
  19.                 Label5.Text = income * 0.7
  20.         End Select
  21.     End Sub
  22.  
  23.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  24.         End
  25.  
  26.     End Sub
  27. End Class
Advertisement
Add Comment
Please, Sign In to add comment