Академический Документы
Профессиональный Документы
Культура Документы
End If
igv = (tp - desc) * 0.19
total = tp - desc + igv
TextBox6.Text = tp
TextBox7.Text = desc
TextBox8.Text = igv
TextBox9.Text = total
Dim a As Integer = 0
Dim n As Integer
n = TextBox1.Text
For i As Integer = 1 To n + 1
If (n Mod i = 0) Then
a=a+1
End If
Next i
If (a <> 2) Then
TextBox2.Text = "No es Primo"
Else
TextBox2.Text = "Si es Primo"
End If
El usuario por ltimo, ingresar en la celda de Pago la cantidad entregada por el cliente
y al volver a presionar Pagar el programa mostrar el Cambio a entregar al Cliente en
la casilla de Cambio.
Public Class Form1
End Sub
txthamburguesa.Enabled = False
txtpapas.Enabled = False
txtrefresco.Enabled = False
txtpizza.Enabled = False
txtnughets.Enabled = False
txtensalada.Enabled = False
txtyogur.Enabled = False
txtagua.Enabled = False
End Sub
Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles RadioButton2.CheckedChanged
txthamburguesa.Text = 0
txtpapas.Text = 0
txtrefresco.Text = 1
txtpizza.Text = 1
txtnughets.Text = 1
txtensalada.Text = 0
txtyogur.Text = 0
txtagua.Text = 0
txthamburguesa.Enabled = False
txtpapas.Enabled = False
txtrefresco.Enabled = False
txtpizza.Enabled = False
txtnughets.Enabled = False
txtensalada.Enabled = False
txtyogur.Enabled = False
txtagua.Enabled = False
End Sub
txthamburguesa.Enabled = False
txtpapas.Enabled = False
txtrefresco.Enabled = False
txtpizza.Enabled = False
txtnughets.Enabled = False
txtensalada.Enabled = False
txtyogur.Enabled = False
txtagua.Enabled = False
End Sub
End Class