That happened on an episode of Golden Girls:
https://www.youtube.com/watch?v=4RZQTloQuVs
I cant remember where but expect at a fair or theme park there was a chicken in a cage. You put your quarters in, turned a knob and a light came on. The chicken knew if it played the piano while the light was on food wood fall in a bowl.