Question: Angry Bird program in JAVA. It needs to have the requirements from the first picture. I also attached the sample solution and sample output. Could

Angry Bird program in JAVA. It needs to have the requirements from the first picture. I also attached the sample solution and sample output. Could you please help me solve this? i am getting stuck in some parts.  Angry Bird program in JAVA. It needs to have the requirements
from the first picture. I also attached the sample solution and sample
output. Could you please help me solve this? i am getting stuck

Write a program angry Bird.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). The Monster pig has arrived! Youtl need to find his position and kill him. If you don't, the pig fires a snowball every second! The monster pig is 374 meters away. Your angry bird slingshot report: 5 shots remaining. Set your angle of fire: 5 Set your slingshot velocity: 100 FIRE! After flying for 2 seconds, the angry bird impacted 177 meters away! The monster pig is 374 meters away. Your angry bird slingshot report: 4 shots remaining. Set your angle of fire: 10 Set your slingshot velocity: 100 FIRE! After flying for 4 seconds, , the angry bird impacted 349 meters away! The monster pig is 374 meters away. Your angry bird slingshot report: 3 shots remaining. Set your angle of fire: 10 Set your slingshot velocity: 105 FIRE! Affer flying for 4 seconds, the angry bird impacted 384 meters away! The monster pig is 374 meters away. Your angry bird slingshot report: 2 shots remaining. Set your angle of fire: 10 Set your slingshot velocity: 103 FIRE! Affer flying for 4 seconds, the angry bird impacted 370 meters away! Congratulations! You took revenge and will play the next 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!