The Traveller, The Fox, and The Soup.

You might also like

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

Algorithm

The hungry traveller, the fox and the soup. 1. Start 2. A hungry traveller walked through the jungle. 3. The hungry traveller saw a house 4. The hungry traveller stopped. 5. The hungry traveller knocked the door. 6. A fox came out. 7. The hungry traveller ask for stones. 8. The hungry traveller got the stones. 9. The hungry traveller asked for onions and peas. 10. IF no peas -changed with corns 11. The hungry traveller needed meat . 12. The hungry traveller got the meat. 13. The hungry traveller cooked the delicious soup. 14. The hungry traveller and the fox ate together. 15. End

Flowchart
Start

A hungry traveller walked through the jungle.

The hungry traveller saw a house

The hungry traveller stopped.

The hungry traveller knocked the door.

A fox came out.

The hungry traveller ask for stones.

The hungry traveller got the stones.

The hungry traveller asked for onions and peas.

No peas?

Changed with corns.

The hungry traveller needed meat

The hungry traveller got the meat.

The hungry traveller cooked the delicious soup.

The hungry traveller and the fox ate together.

End

You might also like