Question: Write a program angryBird.java that allows a player to launch a bird to hit the monster pig. Your program should randomly place an angry bird

 Write a program angryBird.java that allows a player to launch abird to hit the monster pig. Your program should randomly place an

Write a program angryBird.java that allows a player to launch a bird to hit the monster pig. Your program should randomly place an angry bird between 200 and 1500 meters away and let the user know the distance to the monster pig. Let the user enter a phi (angle in degrees) and an initial (Slingshot) velocity in meters/second. Calculate where the projectile (angry bird) lands and inform the player. If the projectile (angry bird) lands within 5 meters on either side of the monster pig, the monster pig is destroyed. Otherwise, loop back and allow the user to shoot again (max 5 times). NOTE. Assume target and launch point are at the same level

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!