Computer Science, asked by Anonymous, 6 months ago

4. The following flowchart classifies animals as herbivores or carnivores. 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 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 nitinkumars74
0

Tejas: We visited a computer exhibition for school students. We saw a super computer, demonstration

of many uses of computer and many interesting applications.

Jyoti: In one of the stalls, we could enter any number as input and the computer was displaying the

multiplication table of the number. The picture shown above was used by the person at the stall,

to explain the sequence of steps followed by the computer, to display the table.

Jyoti: We observed that those who did not know about computers and programming could also

understand what was explained by the picture.

Moz: This picture is called a flowchart. One of the uses of flowchart is to describe the sequence

Similar questions