Professional Documents
Culture Documents
N-S Diagrama
N-S Diagrama
VAR i
i=0 ; i<N ; i=i+1
Leer Ids[i]
Ids<10 Ids>99
Leer Nompel[i]
Leer Caps[i]
Leer Cost[i]
Leer Entve[i]
Entve[i]<0
Leer Inps[i]
retornar
REPORTAR TODO(Ids[], Nompel[], Cap[], Cost[], Entve[]=0, Inps[], N
VAR i
i=0 ; i<N ; i=i+1
retornar
ELIMINAR (Ids[],Nompel[],Caps[],Cast[],Entve[],Inps[],N
VAR i, Nompelaux,pos=-1
Leer Nompelaux
Pos=i
I=N
F POS=-1 V
Nompel[pos]=Nompelaux[N-1]
Ids[pos]=Ids[N-1]
Caps [pos]=Caps[N-1]
Cost [pos]=Cost[N-1]
Entve[pos]=Entve[N-1]
Inps[pos]=Inps[N-1]
N=N-1
Retornar N