Programming The Computer (Python) - A Answer Key
Programming The Computer (Python) - A Answer Key
Programming The Computer (Python) - A Answer Key
Worksheet: A
Process
arrow
Input/Output - Data
Start/ Stop
i. Define Python?
v. What is Pseudocode?
Q5. Make an algorithm, flowchart & pseudocode for making instant noodles. [10 marks]
Algorithm to cook noodles :-
Step 1: Start
Step 2: Take a pan with water
Step 3: Put pan on the burner
Step 4: Switch on the gas burner
Step 5: Put the noodles and masala.
Step 6: If you wish you can add some veggies also
Step 7: Give two minutes to boil
Step 8: Take off the pan
Step 9: Take out the maggie with the help of fork/spoon
Step 10: Put the Noodles on the plate and serve it hot
Step 11: Stop.
Pseudocode ->
Start
Take a pan with water
Put pan on the burner
Switch on the gas burner
Put the noodles and masala
If you wish to add some veggies:
Add veggies
Give two minutes to boil
Take off the pan
Take out the maggie with the help of fork/spoon
Put the noodles on the plate
Serve it hot
Stop
Or
Make an algorithm, flowchart & pseudocode for making tea.
Algorithm->
1. Start
2. Boil water in a kettle
3. Measure desired amount of tea leaves or tea bags
4. Place the tea leaves or tea bags in a teapot
5. Once the water is boiled, pour it into the teapot
6. Let the tea steep for the desired amount of time (usually 3-5 minutes)
7. While the tea is steeping, optionally warm up the cups by rinsing them with hot water
8. After steeping, pour the tea through a strainer into cups to remove the tea leaves or tea bags
9. Optionally add sugar, honey, or milk to taste
10. Stir the tea gently
11. Serve the tea hot
12. Enjoy your tea!
13. Stop