This document contains the code for a program that calculates salary increases based on salary ranges. When the calculate button is clicked, it takes the entered salary amount and applies different percentage increases based on salary tiers, and displays the new salary amount. It also contains code to clear the text boxes, move to the next form, and end the program.
This document contains the code for a program that calculates salary increases based on salary ranges. When the calculate button is clicked, it takes the entered salary amount and applies different percentage increases based on salary tiers, and displays the new salary amount. It also contains code to clear the text boxes, move to the next form, and end the program.
This document contains the code for a program that calculates salary increases based on salary ranges. When the calculate button is clicked, it takes the entered salary amount and applies different percentage increases based on salary tiers, and displays the new salary amount. It also contains code to clear the text boxes, move to the next form, and end the program.
This document contains the code for a program that calculates salary increases based on salary ranges. When the calculate button is clicked, it takes the entered salary amount and applies different percentage increases based on salary tiers, and displays the new salary amount. It also contains code to clear the text boxes, move to the next form, and end the program.
Private Sub frmincremento_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btaceptar.Click Dim nombre As String Dim sali, incremento, nsal As Double 'capturamos los valores de las cajas de texto' nombre = UCase(txtnombre.Text) sali = Val(Txtsalario.Text) 'seleccionamos el rango para aplicar el incremento' If sali > 0 And sali < 700000 Then incremento = sali * 0.12 nsal = incremento + sali Else If sali >= 700000 And sali <= 1400000 Then incremento = sali * 0.08 nsal = incremento + sali Else If sali >= 1400001 And sali <= 2200000 Then incremento = sali * 0.07 nsal = incremento + sali Else incremento = sali * 0.06 nsal = incremento + sali End If End If End If 'ESCRIBIMOS LOS RESULTADOS' Txtnombre1.Text = nombre Txtsalario1.Text = sali Txtincremento.Text = incremento Txtnsalario.Text = nsal End Sub Private Sub Btnuevo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnuevo.Click 'limpiamos las cajas de texto' txtnombre.Text = "" Txtsalario.Text = "" Txtnombre1.Text = "" Txtsalario1.Text = "" Txtincremento.Text = "" Txtnsalario.Text = "" 'ubicamos el cursor en la primera caja' txtnombre.Focus() End Sub
Private Sub Btterminar_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Btterminar.Click End End Sub Private Sub Btsiguiente_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btsiguiente.Click 'PARA LLMAR UN FORMULARIO' VENTAS.Show() 'OCULTAMOS EL FORMULARIO QUE LLAMA' Me.Hide() End Sub Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click End Sub End Class