Herramientas de desarrollo de software IESTP “Manuel Seoane Corrales” VISUAL BASIC .NET FORMULARIO CALCULANDO PAGOS (PROGRAMAR BOTÓN NUEVO Y CALCULAR) Ingreso LAS HORAS TRABAJADAS, EL PAGO X HORA Proceso El Básico (Horas Trabajadas X Pago Por Hora) Salida Afp (Será El 12% Del Básico), Seguro Priv (5% Del Básico) Comisión (Será El 4,5% Del Básico) Total A Pagar (Básico – Afp – Seguro + Comis) Ingresos (Básico+Comisión) Egresos (Afp+Seguro Privado) Total (Ingresos-Egresos) BÁSICO, AFP, SEGURO, COMIS, TOTAL A PAGAR BOTÓN CALCULAR BOTÓN NUEVO RESOLUCIÓN Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" TextBox9.Text = "" TextBox10.Text = "" TextBox1.Focus() End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim HT, PXH, BAS, AFP, SP, COM, TOT As Double HT = TextBox1.Text PXH = TextBox2.Text BAS = HT * PXH AFP = BAS * 0.12 SP = BAS * 0.05 COM = BAS * 0.045 TOT = BAS - AFP - SP + COM TextBox3.Text = BAS TextBox4.Text = AFP TextBox5.Text = SP TextBox6.Text = COM TextBox7.Text = TOT Dim I, EE, T As Double I = BAS + COM EE = AFP + SP T = I - EE TextBox8.Text = I TextBox9.Text = EE TextBox10.Text = T End Sub Lic. Omar Angel Mamani Rodriguez [email protected] Herramientas de desarrollo de software IESTP “Manuel Seoane Corrales” (PROGRAMAR BOTÓN NUEVO Y CALCULAR) FORMULARIO DIRECCIÓN ACADÉMICA Ingreso Los Créditos A Estudiar Y El Costo De Cada Crédito Las Horas Trabajadas, El Pago X Hora Proceso Mensualidad (Créditos X Costo De Cada Crédito) Salida Carnet Biblioteca (Será El 4% Del Mens), Estacionamiento (15 Soles Por Crédito Mat) Laboratorio (Será El 12% De La Mensualidad) Descuento (Será El Valor De Menos 2 Créditos) Total Pago Mensual (Mensualidad + CarneBiblio + Estac + Lab - Dscto) Mensualidad, Carnet Biblio, Estac, Lab, Dscto, Total Pago Mensual BOTÓN NUEVO Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" TextBox1.Focus() End Sub BOTÓN CALCULAR RESOLUCIÓN Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim cred, vcred, men, car, est, lab, des, tot As Double cred = TextBox1.Text vcred = TextBox2.Text men = cred * vcred car = men * 0.04 est = 15 * cred lab = men * 0.12 des = 2 * vcred tot = men + car + est + lab - des TextBox3.Text = men TextBox4.Text = car TextBox5.Text = est TextBox6.Text = lab TextBox7.Text = des TextBox8.Text = tot End Sub Lic. Omar Angel Mamani Rodriguez [email protected] Herramientas de desarrollo de software IESTP “Manuel Seoane Corrales” FORMULARIO DELIVERY (PROGRAMAR BOTÓN NUEVO Y CALCULAR) Ingreso El pedido, el Precio Unitario y la Cantidad Proceso Subtotal (PrecioUni x Cantidad) Igv (19% del Subtotal) Envío (S/. 5.00 x Cantidad) Total (SubTotal+Igv+Envio) Salida Vendedor ( 5% del total ) Chofer (25% del envió) Sunat (Igv) Tienda (el resto) Total Coste debe salir igual al total Subtotal, Igv, Envio, Total, Vendedor, Chofer, Sunat, Tienda, Total Coste BOTÓN CALCULAR BOTÓN NUEVO RESOLUCIÓN Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" TextBox9.Text = "" TextBox10.Text = "" TextBox11.Text = "" TextBox12.Text = "" TextBox1.Focus() End Sub Private Sub Button2_Click(…) SUNAT = IGV Dim PU, CANT, SUBTOTAL, IGV, ENVIO, TOTAL, VEND, TIE = TOTAL - VEND - CHOF - SUNAT CHOF, SUNAT, TIE, TCOSTE As Double TCOSTE = VEND + CHOF + SUNAT + TIE TextBox4.Text = SUBTOTAL PU = TextBox2.Text TextBox5.Text = IGV CANT = TextBox3.Text TextBox6.Text = ENVIO SUBTOTAL = PU * CANT TextBox7.Text = TOTAL IGV = SUBTOTAL * 0.19 TextBox8.Text = VEND ENVIO = CANT * 5 TextBox9.Text = CHOF TOTAL = SUBTOTAL + IGV + ENVIO TextBox10.Text = SUNAT VEND = TOTAL * 0.05 TextBox11.Text = TIE CHOF = ENVIO * 0.25 TextBox12.Text = TCOSTE End Sub FORMULARIO PROMEDIO BOTÓN CALCULAR SE INGRESARÁ P1, P2, P3, EXAMEN PARCIAL, EXAMEN FINAL; AL HACERLE CLIC EN EL BOTÓN “CALCULAR PROMEDIO” SE HALLARÁ EL PROMEDIO DE PRÁCTICAS (P1, P2, P3) Y EL PROMEDIO FINAL (PROM DE PRÁCTICAS, EX FINAL, EX. FINAL) SE MOSTRARÁN LOS RESULTADOS (PP, PF) Private Sub Button2_Click(…) Dim P1, P2, P3, EP, EF As Integer Dim PP, P As Double P1 = TextBox1.Text P2 = TextBox2.Text P3 = TextBox3.Text PP = Math.Round((P1 + P2 + P3) / 3, 0) EP = TextBox5.Text EF = TextBox6.Text P = Math.Round((PP + EP + EF) / 3, 0) TextBox4.Text = PP TextBox7.Text = P End Sub * La función Math.Round(), permite redondear decimales. Lic. Omar Angel Mamani Rodriguez [email protected]