Write a main program to exercise your Chicken class. This main program will use an array of 10 Chicken objects. The chickens will have laid 0, 1, 2,…, 9 eggs respectively. The chickens will weigh 3, 3.2, 3.4,...,4.8 kilograms respectively. The first 5 chickens will be in solitary confinement (position=CONFINED), otherwise they will be on the FARM. Every chicken will have attempted to escape once, however the first 2 chickens have attempted to escape 10 times. Finally, the program should output the attributes for the 10 chickens.

Bonus: compare the chickens to see if any chickens have attempted the same number of escapes and are currently in solitary confinement, i.e., use the operator overloaded function. If so, output which chickens matched, and their attributes using the appropriate outputAll method already written.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.