The Programming Language is C++ Please write comments in each part create a zoo animal placement program. (no visual, graphics needed) First class should be called ”animal”, and will has: ”Type”: string variable one of ”omnivore”,”herbivore” and ”carnivore”, ”Climate”: string variable one of ”tropical”,”cold”,”average”, ”eyeNo”: integer number, indicates how many eye the animal would have, ”footNo”:integer number, indicates how many foot the animal would have. Second class, ”zoo” has: ”id”: 5 digit integer value for name of the animal, ”food”: string variable shows what kind of food to give the animal. ”grass”,”meat”,”fish” ”location”: string name of animal placement. ”grassland”,”oceanic”,”mountain” ”animalType”: string value. ”sea lion”,”bear”,”gazelle”. You need to create these three animal in the zoo, and place them into the suitable placement. Then please print all this information.
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
The
Please write comments in each part
create a zoo animal placement program. (no visual, graphics needed)
First class should be called ”animal”, and will has:
”Type”: string variable one of ”omnivore”,”herbivore” and ”carnivore”,
”Climate”: string variable one of ”tropical”,”cold”,”average”,
”eyeNo”: integer number, indicates how many eye the animal would have,
”footNo”:integer number, indicates how many foot the animal would have.
Second class, ”zoo” has:
”id”: 5 digit integer value for name of the animal,
”food”: string variable shows what kind of food to give the animal. ”grass”,”meat”,”fish”
”location”: string name of animal placement. ”grassland”,”oceanic”,”mountain”
”animalType”: string value. ”sea lion”,”bear”,”gazelle”.
You need to create these three animal in the zoo, and place them into the suitable placement.
Then please print all this information.
Thanks in Advance
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images