Inicio.
Definir las variables:
cantHamburguesas (entero)
cantPapas (entero)
cantRefrescos (entero)
total (real)
Solicitar al cliente la cantidad de hamburguesas, papas fritas y refrescos.
Guardar cada cantidad en su variable correspondiente.
Calcular el total con la fórmula:
total = (cantHamburguesas × 12) + (cantPapas × 7) + (cantRefrescos × 5)
Mostrar el valor total del pedido.
Fin.
┌───────────┐
│ INICIO │
└─────┬─────┘
│
▼
┌──────────────────────────────────┐
│ Definir variables: │
│ cantHamburguesas : entero │
│ cantPapas : entero │
│ cantRefrescos : entero │
│ total : real │
└──────────────┬───────────────────┘
│
▼
┌──────────────────────────────────┐
│ Leer cantHamburguesas │
└──────────────┬───────────────────┘
│
▼
┌──────────────────────────────────┐
│ Leer cantPapas │
└──────────────┬───────────────────┘
│
▼
┌──────────────────────────────────┐
│ Leer cantRefrescos │
└──────────────┬───────────────────┘
│
▼
┌──────────────────────────────────┐
│ total = (cantHamburguesas × 12) │
│ + (cantPapas × 7) │
│ + (cantRefrescos × 5) │
└──────────────┬───────────────────┘
│
▼
┌──────────────────────────────────┐
│ Mostrar "Total a pagar: $" total │
└──────────────┬───────────────────┘
│
▼
┌───────────┐
│ FIN │
└───────────┘