1. Una tienda ofrece un descuento del 15% sobre el total de
la compra y un cliente desea saber cunto deber pagar finalmente por su compra.
Private Sub Command1_Click() Label4.Caption = Val(Text1.Text) * 0.15 End Sub Private Sub Command2_Click() Text1.Text = "" Label4.Caption = "" End Sub Private Sub Command3_Click() End End Sub
2. Calcula la nota parcial de un alumno. Private Sub Command1_Click() Label5.Caption = Val(Text1.Text) + Val(Text2.Text) End Sub Private Sub Command2_Click() Text1.Text = "" Text2.Text = "" Label5.Caption = "" End Sub Private Sub Command3_Click() End End Sub 3. Calcula la nota promedio de un alumno. Private Sub Command1_Click() Label6.Caption = (Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text)) / 4 End Sub Private Sub Command2_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Label6.Caption = "" End Sub Private Sub Command3_Click() End End Sub 4. Un individuo desea invertir su capital en un banco y desea saber Cunto dinero ganara en un mes? Si el banco paga al 2% mensual. Private Sub Command1_Click() Label4.Caption = Val(Text1.Text) * 0.02 * 1 End Sub Private Sub Command2_Click() Text1.Text = "" Label4.Caption = "" End Sub Private Sub Command3_Click() End End Sub 5. Un individuo desea invertir su capital en un banco y desea saber Cunto dinero ganara en un ao? Si el banco paga al 5% mensual. Private Sub Command1_Click() Label4.Caption = Val(Text1.Text) * 0.05 * 12 End Sub Private Sub Command2_Click() Text1.Text = "" Label4.Caption = "" End Sub Private Sub Command3_Click() End End Sub 6. Calcular el nuevo salario de un obrero si obtuvo un incremento del 25 % sobre su salario anterior. Private Sub Command1_Click() Text2.Text = Val(Text1.Text) * 0.25 Label5.Caption = Val(Text1.Text) + Val(Text2.Text) End Sub Private Sub Command2_Click() Text1.Text = "" Text2.Text = "" Label5.Caption = "" End Sub Private Sub Command3_Click() End End Sub