180k views
3 votes
As you cross a forest, you can't help but admire the nature around you, including the many species of trees. Despite your interest, you are a very unskilled botanist and have a lot of trouble identifying different trees. A friend gives you some guidance, and you decide to write a program that will give you the name of the tree based on its characteristics. There are 4 types of trees:

1.The Tinuviel is 5 meters high or less, and its leaves are composed of 8 or more leaflets.
2.The Calaelen is 10 meters high or more, and its leaves are composed of 10 or more leaflets.
3.The Falarion is 8 meters high or less, and its leaves are composed of 5 or fewer leaflets.
4.The Dorthonion is 12 meters tall or more, and its leaves are composed of 7 or fewer leaflets.
Your program should read the height and the number of leaflets of a given tree (both integers), and should be able to determine and display the name of the corresponding tree. If the height and number of leaflets do not match any of the tree type descriptions, your program should display Uncertain. This is the C programming language.
a) True
b) False

User Pammy
by
7.4k points

1 Answer

5 votes

Final answer:

The given program is written in the C programming language.

Step-by-step explanation:

This question is about programming in the C programming language. The statement in question is asking whether the given program is written in C programming language.

The correct answer is a) True. The statement is indeed written in the C programming language.

User Aestrro
by
7.4k points