ComProg Assignment #2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Taer, Anexi V.

BSCS – 1B

Algorithm: How to cook scrambled


eggs.
Prepare ingredients.
Beat eggs.
If no
Heat the pan and add butter.
If pan was not hot enough:
If yes
Put beaten eggs in the pan.
Add Chopped tomato and Onions into beaten egg,
add some salt and pepper.
Keep stirring until it’s cooked.
Turn off the stove and prepare your scrambled egg.
End.
Flow Chart: Yes – continue

Heat up Is the pan Put beaten eggs


Prepare ingredients in the pan.
the pan hot enough?

Turn off the stove Keep stirring Add Chopped tomato and Onions, add
and prepare your
some salt and pepper.
scrambled egg until it’s cooked.

Enjoy

Pseudocode:
Begin
Prepare ingredients;
Beat eggs for 20 to 35 seconds in a bowl;
Heat the pan over a medium-low heat;
If the pan was hot enough;
Melt the butter;
Put beaten eggs on pan;
Add chopped tomato and onions;
Add salt and pepper for taste;;
While eggs not okay
Stir until it’s cooked;
End
SERVE the scrambled eggs

You might also like