In java:
Projectile motion equations: x = [vo *t.cos(@)] + xo y = [vo * * * sin(O)) - L. 9t?) + y X. x displacement Xo: initial x displacement Y y displacement Yo: initial y displacement V. initial velocity t: time 0 initial angle g: gravitational constant Keep in mind that the X and Y displacement is the distance from the projectiles origin at a given time stamp. See example below. Program Requirements: 1. The program shall use the first quadrant of a 2D coordinate plane. 2. The program shall have 2 projectiles named Hare and Hound 3. The program shall have the projectiles follow projectile motion equations. 4. The Hare shall have a random initial angle ranging from 0 to 90 degrees. 5. The Hare shall have a random initial velocity ranging from 70 to 120 meters per second. 6. The Hare shall have a random initial height ranging from 400 to 1000 meters. 7. The Hound shall have a random initial angle ranging from 0 to 90 degrees. 8. The Hound shall have a random initial velocity ranging from 50 to 150 meters per second 9. The Hound shall have a starting height of 600 meters. 10. The Hare shall stop moving once it hits the ground. 11. The Hound shall stop moving once it hits the ground 12. The program shall calculate the distance between the Hare and the Hound once they have both hit the ground 13. The program shall start both Hare and Hound on the left side of the screen (x = 0). 14. The program shall define ground as constant horizontal line. Homework Requirements: 1. The program shall run 2 iterations. 2. An Iteration shall consist of: I a. Setting up the Hare and hound (see Program Requirements 4-9) Homework Requirements: 1. The program shall run 2 iterations 2. An Iteration shall consist of a. Setting up the Hare and hound (see Program Requirements 4-9) b. Firing the Hare and Hound to follow projectile motion. i. The program shall display the flight path in time intervals of 5 seconds c. Once the Hare and Hound hit the ground, the program shall display the distance between the Hare and the Hound 3. Iteration 1 shall have a ground shall defined as y0 4. Iteration 2 shall have a ground shall defined as y 120 5. The program shall have 2 classes Manager and Projectile. 6. The Projectile class shall handle the location and movement 7. The Manager class shall handle the 2 iterations using Projectile objects. Projectile motion equations: x = [vo *t.cos(@)] + xo y = [vo * * * sin(O)) - L. 9t?) + y X. x displacement Xo: initial x displacement Y y displacement Yo: initial y displacement V. initial velocity t: time 0 initial angle g: gravitational constant Keep in mind that the X and Y displacement is the distance from the projectiles origin at a given time stamp. See example below. Program Requirements: 1. The program shall use the first quadrant of a 2D coordinate plane. 2. The program shall have 2 projectiles named Hare and Hound 3. The program shall have the projectiles follow projectile motion equations. 4. The Hare shall have a random initial angle ranging from 0 to 90 degrees. 5. The Hare shall have a random initial velocity ranging from 70 to 120 meters per second. 6. The Hare shall have a random initial height ranging from 400 to 1000 meters. 7. The Hound shall have a random initial angle ranging from 0 to 90 degrees. 8. The Hound shall have a random initial velocity ranging from 50 to 150 meters per second 9. The Hound shall have a starting height of 600 meters. 10. The Hare shall stop moving once it hits the ground. 11. The Hound shall stop moving once it hits the ground 12. The program shall calculate the distance between the Hare and the Hound once they have both hit the ground 13. The program shall start both Hare and Hound on the left side of the screen (x = 0). 14. The program shall define ground as constant horizontal line. Homework Requirements: 1. The program shall run 2 iterations. 2. An Iteration shall consist of: I a. Setting up the Hare and hound (see Program Requirements 4-9) Homework Requirements: 1. The program shall run 2 iterations 2. An Iteration shall consist of a. Setting up the Hare and hound (see Program Requirements 4-9) b. Firing the Hare and Hound to follow projectile motion. i. The program shall display the flight path in time intervals of 5 seconds c. Once the Hare and Hound hit the ground, the program shall display the distance between the Hare and the Hound 3. Iteration 1 shall have a ground shall defined as y0 4. Iteration 2 shall have a ground shall defined as y 120 5. The program shall have 2 classes Manager and Projectile. 6. The Projectile class shall handle the location and movement 7. The Manager class shall handle the 2 iterations using Projectile objects