Question
Using ALICE 2.4.3 create this program Legend has it that dragons are distant relatives of chickens. We are not surprised, then, that a favorite pastime
Using ALICE 2.4.3 create this program
Legend has it that dragons are distant relatives of chickens. We are not surprised, then, that a favorite pastime of dragons was a game of chicken. The scene below shows a world with four dragons (Medieval) carefully placed in a diamond like pattern (similar to baseball players at the four bases). Create a simulation of a game of chicken where any two dragons face each other and fly upward to a slightly different height above the ground. Then the dragons fly toward each other, nearly missing one another. Each dragon should land in the position where the other dragon was located. That is, the two dragons trade places. Your simulation should use a method named dragonFlight that has four parametersthe two dragons that will face off in a game of chicken and the height for each dragons flight.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started