Está en la página 1de 1

Algoritmo de mi vida cotidiana:

Preparar cafe:

Entrada= ¿Quiero café?


1-Levantarme
2-Caminar a la cocina
3-Buscar los ingredientes (cafe,agua)
4-Buscar los utensilios (olla, taza, batidor)
5-Encender la cocina
6-Agregar ingredientes a la olla
7-Revolver ingredientes y dejar hervir
8-Apagar cocina
9-Servir el cafe en una taza
10-Tomar café
Salida=FIN

+ ¿Quiero café? - Sí - Levantarme - Caminar a la cocina - Buscar los ingredientes -


Buscar los utensilios - Encender la cocina - Agregar ingredientes a la olla -
Revolver ingredientes y dejar hervir - Apagar cocina - Servir el cafe en una taza -
Tomar café - FIN

+ ¿Quiero café? - No - Fin

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--

Algorithm of my everyday life:

Making coffee:

Input: Do I want coffee?


1. Wake up
2. Walk to the kitchen
3. Gather the ingredients (coffee, water)
4. Gather the utensils (pot, cup, whisk)
5. Turn on the stove
6. Add ingredients to the pot
7. Stir ingredients and let it boil
8. Turn off the stove
9. Pour the coffee into a cup
10. Drink the coffee
Output: END

+ Do I want coffee? - Yes - Wake up - Walk to the kitchen - Gather the ingredients
- Gather the utensils - Turn on the stove - Add ingredients to the pot - Stir
ingredients and let it boil - Turn off the stove - Pour the coffee into a cup -
Drink the coffee - END

+ Do I want coffee? - No - End

También podría gustarte