domingo, 25 de marzo de 2012

algoritmo de notas nivel estado de alumnos con while

definitiva
i=2
while(i<=4)
cells(i,5)=celles(i,2)*0,3+cells(i,,3)*0,3+cells(i,4)*0,4 
i=i+1
wend


estado
i=2
while(i<=4)
if cells(i,5)<60 then
cells(i,6)="perdio"
else
cells(i,6)="gsno"
end if 

i=i+1
wend




nivel
i=2


while(i<=4)


if cells(i,5)<60 then
cells(i,7)=" bajo"
end if
if cells(i,5)<80 then
cells(i,7)=" basico"
end if
if cells(i,5)<98 then
cells(i,7)=" alto"
end if
i=i+1
wend


nivel
i=2
while(i<=4) 
if cells(i,5)<60 then
cells(i,7)=" bajo"
else
if cells(i,5)<80 then
cells(i,7)=" basico"
else
if cells(i,5)<98 then
cells(i,7)=" alto"
else
cells(i,7)="superior"
end if
end if
end if
i=i+1
wend





No hay comentarios:

Publicar un comentario