Algoritmos informatica
NC, RFC, DIR, HT, PH, DT, HE.
2.- Declaro mis variables.
SD “Entero” [4] SM ”Entero” [5] X “Entero” [5] ST “Entero” [5] S“Entero” [4]
DT “Entero” [5] IR “Entero” [5] DNT “Entero” [5] O “Entero” [5]
3.- Calculo“sueldo diario del empleado”.
SD = HT * PH
Calculo lo que el empleado gana por días trabajados.
S =SD * DT
Calculo los descuentos del empleado.
SM = S * 1%
IR = S * 1%
O = S * 1%
Calculo los descuentos por días que falte.
X = DNT * SD
Calculo el sueldo total
ST = SD – X – SM – IR –O.
Imprimo el sueldo total y los datos del empleado.
NC, DIR, RFC, ST.
4. - FIN.
DIAGRAMA DE FLUJO
INICIO
NC,RFC,DIR,HT,PH,DT,HE.
SD,SM,X,ST,S,DT,IR,DNT,O.
SD = HT * PH
S =SD * DT
SM = S * 1%
IR = S * 1%
O = S * 1%
X = DNT * SD
ST ¨= SD – X – SM – IR – O
NC. RFC. DIR
S.T.
FIN
1.- Crear una nueva aplicación.
2.- Ajustar el tamaño por defecto delformulario.
3.- Dibujar los controles u objetos.
Form 1 _()x
Label 1 Text 1
Label 2 Text 2
Label 3 Text 3
Label 4 Text 4
Label 5 Text 5
Label6 Text 6
Label 7 Text 7
Label 8 Text 8
Label 9 Text 9
Command 1
Label 10 Text 10
Command 2 Command 3
4.- Definir las propiedades del formulario:Nombre: Empleado
Caption: Sueldo total
Backcolor: …
B).- Propiedades de las etiquetas:
Nombre: L1
Caption: Nombre completo:
Backstyle: 0_transparente
Nombre: L2
Caption: RFC
Backstyle:0_transparente
Nombre: L3
Caption: Dirección
Backstyle: 0_transparente
Nombre: L4
Caption: Precio por hora
Backstyle: o_transparente
Nombre: L5
Caption: Horas trabajadas
Backstyle: o_transparenteNombre: L6
Caption: Dias trabajados
Backstyle:0-transparente
Nombre: L7
Caption: Horas extras
Backstyle: 0_transparente
Nombre: L8
Caption: Descuentos
Backstyle: 0-transparente
Nombre: L9...
Regístrate para leer el documento completo.