Exercise 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Exercise 3

Public Class Form1


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim Copies As Integer
Copies = TextBox1.Text
If TextBox1.Text < 500 Then
Label1.Text = 0.3
Label2.Text = Copies * 0.3
ElseIf TextBox1.Text < 750 Then
Label1.Text = 0.28
Label2.Text = Copies * 0.28
ElseIf TextBox1.Text < 1000 Then
Label1.Text = 0.27
Label2.Text = Copies * 0.27
ElseIf TextBox1.Text >= 1000 Then
Label1.Text = 0.25
Label2.Text = Copies * 0.25
End If
End Sub
End Class

You might also like