-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFACTURACIÓN.cbl
38 lines (34 loc) · 1.12 KB
/
FACTURACIÓN.cbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
******************************************************************
* Author:
* Date:
* Purpose:
* Tectonics: cobc
******************************************************************
IDENTIFICATION DIVISION.
PROGRAM-ID. YOUR-PROGRAM-NAME.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
INPUT-OUTPUT SECTION.
DATA DIVISION.
FILE SECTION.
WORKING-STORAGE SECTION.
01 EMPLEADO PIC X(56).
01 SALARIO PIC 9(5)V9(2).
01 INCREMENTO PIC 9V99 VALUE 0.05.
01 MES PIC 9(10)V9(2).
01 N PIC 9(1).
01 I PIC 9(1).
PROCEDURE DIVISION.
INICIO.
DISPLAY "INGRESE EL NUMERO DE EMPLEADOS".
ACCEPT N.
PERFORM NOMINA VARYING I FROM 1 BY 1 UNTIL I > N.
STOP RUN.
NOMINA.
DISPLAY "iNTGRESE EN NOMBRE EMPLEADO".
ACCEPT EMPLEADO.
DISPLAY "INGRESE EL SUELDO:".
ACCEPT SALARIO.
COMPUTE MES = SALARIO * INCREMENTO.
DISPLAY "EMPLEADO: " EMPLEADO.
DISPLAY "SUELDO: " MES.