Question: C + + coding please Define a structure named. An imal with the following four fields: species ( string ) : Represents the species of

C++ coding please
Define a structure named. An imal with the following four fields:
species (string): Represents the species of the animal.
age (int): Represents the age of the animal.
weight (double): Represents the weight of the animal.
ispet (bool): Represents whether the animal can be a pet (true) or not (false).
Within the main function declare an Animal variable called myAnimal and prompt the user for input values for each of the fields as follows:
What is the species of the animal?
What is the age of the animal?
What is the weight of the animal?
Can this animal be a pet (y for yes, n for no)?
Within main, print out all of the information about the animal with the following format:
Animal Details:
Species:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!