Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java: Projectile motion equations: x = [vo *t.cos(@)] + xo y = [vo * * * sin(O)) - L. 9t?) + y X. x

In java: image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago