Physics
Physics, 29.08.2019 22:20, ProfS3770

Define init-speed and init-angle as program variables. use an initial speed of 1 and an initial angle of pi/4 to start. once your program is running, you should try using different values to see how your animation behaves. note here that we are using an angle specified in radians. since only the initial speed will be specified, you will need to calculate the x and y components of the initial velocity. these may be calculated via init-x-vel = init-speed * cos(init-angle) init-y-vel = init-speed * sin(init-angle)
exercise 2 define the initial horizontal velocity init-x-vel and the initial vertical velocity init-y-vel using the initial speed init-speed and the initial angle init-angle. we define the initial speed and velocity components (horizontal and vertical) as numbers rather than functions because they do not change over time. the rocket experiences a gravitational acceleration in the vertical direction. therefore, the vertical position of the rocket is this function of the time t: vertical position = init-y-vel * t - 1/2 * 0.002 * t * t where init-y-vel is the initial velocity in the vertical direction, and 0.002 is the gravitational acceleration, which is a constant.

answer
Answers: 3

Other questions on the subject: Physics

image
Physics, 21.06.2019 20:00, desscraft30
Which of the following represents an upright image? a. -do b. +m c. -m d. +do
Answers: 1
image
Physics, 21.06.2019 21:00, emilyrobles
The density of a liquid could be found by using
Answers: 2
image
Physics, 22.06.2019 16:00, Christyy1837
What part of the ear is names after tools, such as the hammer and the anvil?
Answers: 1
image
Physics, 23.06.2019 07:00, cdjeter12oxoait
Roger pushes a box on a 30° incline. if he applies a force of 60 newtons parallel to the incline and displaces the box 10 meters along the incline, how much work will he do on the box? a. 5.2 × 102 joules b. 6.0 × 102 joules c. -5.2 × 102 joules d. -6.0 × 102 joules
Answers: 3
Do you know the correct answer?
Define init-speed and init-angle as program variables. use an initial speed of 1 and an initial angl...

Questions in other subjects: