MENU
1) DESAYUNO
2) ALMUERZO
3) COMIDA
4) SALIR
1.[CAFETERÍA CBTIS 172]
2.[DECLARAR VARIABLES]
Opc: chart
No. Control: string
3.[IMPRIMIR FECHA]
Write (‘fecha´, date)
4.[IMPRIMIR MENÚ DE OPCIÓN]
Write (‘’)
Write (‘menu’)
Write (‘’)
Write (1) (desayuno)
Write (2) (almuerzo)
Write (3) (comida)
Write (4) salir)
Write (´’)
Write (‘No control’)
Read (No Control)
Write (‘opcion’)
Read (opcion)
5.[IMPRIMIR OPCIÓN]
Write (opc)
6.[FIN DEL PSEUDOCÓDIGO]
@
Pseudo - Men´s Club
Pseudocodigo y Diagramas de Flujo
Reproductor
Pages
1. [ÁREA FIGURAS GEOMÉTRICAS]
2. [DECLARA VARIABLES]
Base, altura, lado, d mayor, d menor, área t, área c, área r: real
3. [CALCULAR EL ÁREA DEL TRIANGULO]
Write (‘Area del triangulo’)
Write (‘’)
4. [PEDIR DATOS DEL TRIANGULO]
Write (‘la base del triangulo es:’)
Read (base)
Write (‘la altura del triangulo es:’)
Read (altura)
5. [CALCULAR ÁREA]
Área T (base*altura)/2
6. [IMPRIMIR DATOS]
Write (‘el área del triangulo es:’, área t)
7. [CALCULAR EL ÁREA DEL CUADRADO]
8. [CALCULAR]
Write (‘área del cuadrado’)
Write (‘’)
9. [PEDIR DATOS DEL CUADRADO]
Write (‘el lado del cuadrado es:’)
Read (lado)
10. [CALCULAR EL ÁREA]
Área lado*lado
11. [IMPRIMIR DATOS]
Write (‘él área del cuadrado es:’, área c)
12. [CALCULAR ÁREA DEL ROMBO]
Write (‘área del rombo’)
Write (‘’)
13. [PEDIR DATOS DEL ROMBO]
Write (‘La diagonal mayor del rombo es:’)
Read (d mayor)
Write (‘la diagonal menor del rombo es:’)
Read (d menor)
14. [CALCULAR ÁREA]
Área R (d mayor*d menor)/2
15. [IMPRIMIR DATOS]
Write (‘el área del rombo es:’, área r)
16. [FIN DEL PSEUDOCÓDIGO]
@
1. [TIENDITA DE LA ESQUINA]
2. [DECLARAR VARIABLES]
articulo1, articulo2, articulo3: string
cant1, cant2, cant3: interger
precio1, precio2, precio3, imp1, imp2, imp3, total, efectivo, cambio: real
3. [PEDIR DATOS ARTICULO 1]
Write (‘articulo1’)
Read (articulo1)
Write (‘cantidad articulo 1’)
Read (cant1)
Write (‘precio’)
Read (precio1)
4. [CALCULAR IMPORTE]
Imp1 cant1*precio1
5[PEDIR DATOS ARTÍCULO 2]
Write (‘articulo2’)
Read (articulo2)
Write(‘cantidad del articulo 2’)
Read (cant2)
Write (‘précio’)
Read (precio2)
6. [CALCULAR IMPORTE]
imp. cant2*precio2
7. [PEDIR DATOS DEL ARTICULO 3]
Write (‘articulo 3’)
Read (articulo3)
Write (‘cantidad articulo 3’)
Read (cant3)
Write (‘precio 3’)
Read (precio3)
8. [CALCULAR IMPORTE]
Imp3 cant3*precio3
9. [CALCULAR TOTAL]
Total imp1+imp2+imp3
10. [MONTO PAGADO]
Write (‘efectivo’)
Read (efec)
11. [CALCULAR CAMBIO]
Cambio total-efec
12. [IMPRIMIR LISTA DE PRODUCTOS]
Write (‘la tiendita’)
Write (‘’)
Write (‘articulo’)
Write (articulo1)
Write (‘articulo’)
Write (articulo2)
Write (‘articulo’)
Write (articulo3)
Write (‘cantidad’)
Write (cant1)
Write (‘cantidad’)
Write (cant2)
Write (‘cantidad’)
Write (cant3)
Write (‘precio’)
Write (precio1)
Write (‘precio’)
Write (precio2)
Write (‘precio’)
Write (precio3)
Write (‘importe’)
Write (imp1)
Write (‘importe’)
Write (imp2)
Write (‘importe’)
Write (imp3)
Write (‘total’)
Write (total)
Write (‘efectivo’)
Write (efec)
Write (‘cambio’)
Write (cambio)
13. [IMPRIMIR DATOS]
Write (‘el importe del producto1 es de:’)
Write (imp1)
Write (‘el importe del producto 2 es de:’)
Write (imp2)
Write (‘el importe del producto 3 es de:’)
Write (imp3)
Write (‘total’)
Write (total)
Write (‘efectivo’)
Write (efec)
Write (‘total’)
Write (total)
Write (‘cambio’)
Write (cambio)
14. [FIN DEL PSEUDOCÓDIGO]
@
1. [GASOLINERA]
2. [DECLARAR VARIABLES]
Gran total: real
LG: real
LD: real
Total: real
Total: real
Iva G: real
Iva D: real
3. [PEDIR DATOS DE LA GASOLINA]
Write (‘litros de gasolina’)
Read (LG)
4. [CALCULAR IVA GASOLINA]
Iva G [(7.8/100)*16]*lg
5. [CALCULAR IMPORTE DE LA GASOLINA]
Total G (lg*7.8) + iva d
6. [PEDIR DATOS DEL DIESEL]
Write (‘litros de diesel’)
Read (LD)
7. [CALCULAR IVA DIESEL]
Iva D [(6.25/100)*16]*ld
8. [CALCULAR IMPORTE DIESEL]
Total D (ld*6.25)+iva d
9. [CALCULAR GRAN TOTAL]
Gran total Iva D + total + iva G + total
10. [IMPRIMIR TICKET]
Write (‘ticket’)
Write (‘litros de gasolina’)
Write (LG)
Write (‘litros de diesel’)
Write (LD)
Write (‘via gasoline’)
Write (Iva G)
Write (‘iva diesel’)
Write (iva D)
Write (‘total’)
Write (total)
Write (Total final)
11. [FIN DEL PSEUDOCÓDIGO]
@
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