1. [Tiendita]
2. [Declarar variables]
Resp: chart
Nomprod: strin [15]
Cant: int
Precio, importe, suma, total: real
3. [Pedir datos]
Write (‘desea hacer una compra S/N’)
Read (respuesta)
4. [Inicializar suma]
Suma 0
5. [Establecer ciclo]
While resp==S or resp==chart (83) or resp! =S or resp! =chart (83)
6. [Establecer ciclo]
While resp<>S or resp<> respchar (83) and resp<>N or resp<> char (78)
7. [Imprimir datos]
Write (‘Error)
8. [Pedir datos]
Write (‘desea hacer una compra S/N’)
Read (resp)
9. [Establecer ciclo]
While resp ==n or resp==chart 78
10. [Imprimir]
Write (‘gracias por su compra’)
11. [Pedir datos]
Write (‘desea hacer una compra’)
Read (resp)
12. [Establecer ciclo}
While resp ==S or resp==char (83)
13. [Pedir datos]
Write (‘nombre del producto’)
Read (nom prod)
Write (‘precio’)
Read (precio)
Write (‘cantidad’)
Read (cant)
14. [Calcular]
Importe precio*cant
Suma suma+importe
Total suma
15. [Preguntar]
Write (‘desea comprar’)
Read (resp)
16. [Imprimir]
Write (‘total:’ total)
17. [Fin del pseudocódigo]
@
Pseudocodigo y Diagramas de Flujo
Reproductor
Pages
Suscribirse a:
Enviar comentarios (Atom)
About Me
Labels
Blog Archive
-
▼
2010
(47)
-
▼
junio
(47)
- CAFETERIA CBTIS 172
- AREA FIGURAS GEOMETRICAS
- TIENDITA DE LA ESQUINA
- FORMULA
- FACTORIAL
- NUMERO AL EXPONENTE 4
- GASOLINERA
- BOLETA CALIFICACIONES
- NUMERO MAYOR
- PEPSICO
- 3 NUMEROS ENTEROS POSITIVOS
- CARTELERA
- FIGURAS GEOMETRICAS
- SUMA DE 5 NUMEROS
- NUMERO ENTEROS
- PROMEDIO ALUMNOS
- SUMA DE FRACCIONES
- TABLA MULTIPLICAR 1 - 10
- 1 +2/2 + 3/3 + 4/4+ …n/n
- 1- 1/2*2+ 1/3*3 – 1/4*4 …1/n*n
- SUMA "N" NUMEROS
- PROMEDIO TRIGONOMETRIA
- SUMA DE FRACCIONES
- TABLA MULTIPLICAR
- SUMA DE UNOS
- 1- 1/2*2+ 1/3*3 – 1/4*4 …1/n*n
- Tiendita
- CAFETERIA
- FIGURAS GEOMETRICAS
- TIENDITA DE LA ESQUINA
- Sin título
- FORMULA
- FACTORIAL
- EXPONENTE 4
- GASOLINERA
- BOLETA CALIFICACIONES
- NUMERO MAYOR
- PEPSICO
- TRES NUMEROS POSITIVOS ENTEROS
- Sin título
- 5 NUMEROS ENTEROS
- SUMA DE NUMEROS ENTEROS
- PROMEDIO
- SUMA DE FRACCIONES
- TABLAS DE MULTIPLICAR 1 - 10
- 1 +2/2 + 3/3 + 4/4+ …n/n
- 1- 1/2*2+ 1/3*3 – 1/4*4 …1/n*n.
-
▼
junio
(47)
Wp Theme by Promiseringsdesigns | Blogger Template by Anshul
Filed Under :
lunes, 7 de junio de 2010
0 comentarios:
Publicar un comentario