4. The following flowchart classifies animals as herbivores or carnivores. A lion is a meat-eating animal. Elephants eat only plants. Study the flowchart and answer the questions.
start -- Read the name of the animal.--Does it eat only plants?---Yes--Print Herbivore-- end
start -- Read the name of the animal.--Does it eat only plants?---No---Print Carnivore-- end
a. Indicate each element of the flowchart by putting ‘I’ for input, ‘O’ for output, ‘D’ for decision in the circles provided next to the boxes.
b. Put a rectangle around the decision structure.
Hint: See page .... in the lesson. (Page no to be put.)
c. What is the condition which classifies an animal as a carnivore?
d. Write the Execution steps if the input is a Lion. e. What is the condition which classifies an animal as herbivore?
f. Write the Execution steps if the input is an elephant.
Answers
Answered by
2
Answer:
it is hard to input an elephant
Explanation:
it will help you
Similar questions
Accountancy,
4 months ago
Computer Science,
4 months ago
English,
8 months ago
Chemistry,
1 year ago
Math,
1 year ago