Menu

(Solved) : Peeved Pigeons Assignment Create New Computer Game Called Peeved Pigeons Game Pigeon Uses Q33299785 . . .

Only python programming
Peeved Pigeons For this assignment you will create a new computer game called Peeved Pigeons. In the game, a pigeon uses a slingshot to shoot a stone at an annoying pig. The distance that the stone travels is given by this formula: distance - sin(20) Where: . . v is the velocity of the stone, given in feet per second. θ is the angle of elevation of the shot, given in degrees. An angle of zero degrees is horizontal. An angle of ninety degrees is straight up. g is the acceleration of gravity, which is approximately 32.2 ft/sec distance is the distance the stone travels in the air, given in,feet. The game begins when the user enters the distance to the pig. The pigeon repeatedly shoots the slidgshot by specifying the angle of elevation (in degrees) and how far back to pull the slingshot. We will call this measurement the draw length. A draw length of 10 inches gives a velocity of 100 feet per second. The velocity is proportional to the draw length. For example if the draw length is reduced by one third, then the velocity is also reduced by one third. If the draw length is doubled, then the velocity is also doubled. Implementation Details Write and include each of these functions in your program A function that computes and returns the distance the stone travels, given the draw length (in inches) and the angle of elevation (in degrees). Remember that 3600 R. 2π radians. A function that computes the sine of an angle given in radians. You must write your own function; do not use a function from the Python library. (See the previ- ous programming project.) . A function that returns a Boolean value to indicate whether the stone hits the pig. The arguments are the distance to the pig and the distance the stone travels. A shot is deemed to hit the pig if the stone lands within 2 feet of the pig. Report on the result of each shot by indicating whether it hits the pig (the pig oinks), or whether it is too long or too short, and if so, by how much. A shot is deemed to hit the pig if the stone lands within 2 feet of the pig.media%2F787%2F78755da6-efd9-437b-abb7-d4Peeved Pigeons For this assignment you will create a new computer game called Peeved Pigeons. In the game, a pigeon uses a slingshot to shoot a stone at an annoying pig. The distance that the stone travels is given by this formula: distance – sin(20) Where: . . v is the velocity of the stone, given in feet per second. θ is the angle of elevation of the shot, given in degrees. An angle of zero degrees is horizontal. An angle of ninety degrees is straight up. g is the acceleration of gravity, which is approximately 32.2 ft/sec distance is the distance the stone travels in the air, given in,feet. The game begins when the user enters the distance to the pig. The pigeon repeatedly shoots the slidgshot by specifying the angle of elevation (in degrees) and how far back to pull the slingshot. We will call this measurement the draw length. A draw length of 10 inches gives a velocity of 100 feet per second. The velocity is proportional to the draw length. For example if the draw length is reduced by one third, then the velocity is also reduced by one third. If the draw length is doubled, then the velocity is also doubled. Implementation Details Write and include each of these functions in your program A function that computes and returns the distance the stone travels, given the draw length (in inches) and the angle of elevation (in degrees). Remember that 3600 R. 2π radians. A function that computes the sine of an angle given in radians. You must write your own function; do not use a function from the Python library. (See the previ- ous programming project.) . A function that returns a Boolean value to indicate whether the stone hits the pig. The arguments are the distance to the pig and the distance the stone travels. A shot is deemed to hit the pig if the stone lands within 2 feet of the pig. Report on the result of each shot by indicating whether it hits the pig (the pig oinks), or whether it is too long or too short, and if so, by how much. A shot is deemed to hit the pig if the stone lands within 2 feet of the pig. Show transcribed image text

Expert Answer


Answer to Peeved Pigeons Assignment Create New Computer Game Called Peeved Pigeons Game Pigeon Uses Q33299785 . . .

OR