You are on page 1of 3

INGRESAR( Ids[],Nompel[],Caps[],cost[],Enve[]=0,Ings[],N

VAR i
i=0 ; i<N ; i=i+1
Leer Ids[i]

Ids<10 Ids>99

Leer Nompel[i]

Leer Caps[i]

Caps [ i ] <120 ⋀ ≥ 200

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

Escribir: Ids[i], Nompel[i],


Caps[i],Cost[i]Enve[i],Inps[i]

retornar
ELIMINAR (Ids[],Nompel[],Caps[],Cast[],Entve[],Inps[],N

VAR i, Nompelaux,pos=-1

Leer Nompelaux

i=0 ; i<N ; i=i+1


Nompel[i]=Nompelaux
F V

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

You might also like