Computer programs use data and algorithms to produce desired results. An algorithm is a set of instructions applied to data to achieve a specific outcome. For example, making an omelette can be a basic algorithm.

Input: eggs, frying pan, cooking oil, bowl

Step 1: crack the eggs into the bowl
Step 2: mix the eggs
Step 3: put oil in the frying pan and let it heat
Step 4: put the eggs in the pan
Step 5: while eggs are cooking, wait
Step 6: put the eggs on a plate
Step 7: eat

Sign up
<- Prev Next ->