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. Posted solutions are meant to be 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 complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.