Drinking Parrot
A small toy popular with children is a drinking parrot. The parrot is positioned in front of a container of water and its body given a push. Because of the counterbalance of weights on either end of its body, the parrot repeatedly lowers its head into the water. Create a simulation of the drinking parrot (Objects). Use an infinite Loop statement to make the parrot drink.
![2110_723b8bd2-8cf9-4dbd-8f72-cdf0fee27134.png](https://secure.tutorsglobe.com/CMSImages/2110_723b8bd2-8cf9-4dbd-8f72-cdf0fee27134.png)