Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

FASE 1

RUTINA PRINCIPAL

01 Rem “Rut Principal”


02 Execute Rutina Inicial
03 Execute Rutina de Lectura
04 If sw = 1 then
05 Execute Rutina Proceso and go to 20
06 Else
07 Execute Rutina final and STOP.

FASE 2

RUTINA INICIAL

01 Rem “Rutina Inicial”


02 Open LDEII
03 Move spaces to Ade
04 Let ADE = Cód-E Nom-E Sem-E
05 Let Tit 1 = Universidad Del Atlántico
06 Let Tit 2 = Facultad de Ingenierìa
07 Let Tit 3 = Programa de Ingenierìa Industrial
08 Let Enca = Cód Nom Sem
09 Let sw = 1
10 Let ADT = Cód-T Nom-T Sem-T
11 Move spaces to ADS
12 Move Tit 1 to ADS, Jump two lines and move spaces
13 Print ADS, after jump one line
14 Move Tit 2 to ADS and move spaces
15 Print ADS after jump one line
16 Move Tit 3 to ADS and move spaces
17 Print ADS after jump one line
18 Move Enca to ADS and move 2 spaces
19 Print ADS after jump two lines and STOP.

RUTINA DE LECTURA

01 Rem “Rutina De Lectura”


02 Read Cód, Nom, Sem
03 If /* Then
04 sw = 0 and go to 02
05 Else
06 Exit
RUTINA DE PROCESO

01 Rem “Rutina De Proceso”


02 Let ConL = 0, and ConH = 1 ConL=Contador de Lineas
03 If ConL ≤ 60 Then ConH= Contador de Hojas
04 Move spaces to ADE
05 Move Código to Cód-E
06 Move Nombre to Nom-E
07 Move Semestre to Sem-E
08 Move spaces to ADT
09 Move Cód-E to Cód-T
10 Move Nom-E to Nom-T
11 Move Sem-E to Sem-T
12 Move spaces to ADS
13 Move ADT to ADS
14 Print ADS after two jump lines, add 1 to ConL
15 Move ConH to ADS after Print and return to 15
16 Else
17 Move to the next page
18 Move Tit 1 to ADS, Jump two lines and move spaces
19 Print ADS, after jump one line
20 Move Tit 2 to ADS and move spaces
21 Print ADS after jump one line
22 Move Tit 3 to ADS and move spaces
23 Print ADS after jump one line
24 Move Enca to ADS and move spaces
25 Print ADS after jump two lines
26 Add 1 to ConH
27 Move ConH to ADS
28 Print ADS and return to 02
29 STOP.

PROCESO FINAL

01 Rem “Rutina Final”


02 Close LDEII
03 STOP

You might also like