Computer Science, asked by smritigupta3399, 8 months ago

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 VirajShukla17
2

Answer:

it is hard to input an elephant

Explanation:

it will help you

Similar questions