lunes, 7 de noviembre de 2011

5. UNA CONCESIONARIA DE AUTOS ESTABLECE UN RANGO DE INTERESES POR LOS AUTOS OFRECIDOS DEPENDIENDO DEL VALOR DEL AUTO. A CONTINUACIÓN SE DETALLA UNA TABLA CON EL VALOR Y EL INTERÉS QUE SE APLICARÁ A LA COMPRA.

1Inicio
2leer(valor)
3si(valor <8000) vt=valor*10/100 escrivir (vt) si no 4si (valor >=8000)and(valor<=11500)entonses vs=valor*10.7/100 escrivir(vs) si no 5si(valor>11500)and(valor<=22000)entonses vr=valor*11.7/100 escribir(vr) si no 6si(valor >22000)entonses
vq=valor*12.5/1oo
escrivir (vq)
7fin

No hay comentarios:

Publicar un comentario