Documentos de Académico
Documentos de Profesional
Documentos de Cultura
➢ ALUMNOS:
• ALFARO NUNURA AARON JESUS
➢ DOCENTE:
• ING. PUICON ZAPATA HOOWER AUGUSTO
➢ CICLO:
• V
➢ CURSO:
• PROGRAMACION VISUAL
➢ TEMA:
• EXAMEN PARCIAL
2020
PREGUNTA 3
LINEA DE CODIGO
Public Class Restaurante
Dim arregloPlatosPrecios() As Integer = {"5", "8", "9", "3", "10", "12", "15"}
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
Dim montoParcial As Integer
Dim totalPagar As Double
Dim descuento As Double
descuento = 1 - (Double.Parse(txtDescuento.Text) / 100)
montoParcial = txtP1.Text * arregloPlatosPrecios(0) + txtP2.Text *
arregloPlatosPrecios(1) + txtP3.Text * arregloPlatosPrecios(2) +
txtP4.Text * arregloPlatosPrecios(3) + txtP5.Text *
arregloPlatosPrecios(4) + txtP6.Text * arregloPlatosPrecios(5) + txtP7.Text *
arregloPlatosPrecios(6)
txtMontoParcial.Text = montoParcial
End Sub
End Class
CUADRO DE EJECUCION