subject
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.

ansver
Answers: 3

Other questions on the subject: Physics

image
Physics, 22.06.2019 08:50, schoolwannapass
You are a sales representative for a company that makes a new alternate fuel for vehicles. you have prepared a presentation for the environmental engineers to sell your new product. what question do you expect the audience to ask regarding whether the new fuel will cause less damage to the environment? a. do we have to change any parts of the vehicle to use this alternate fuel? b. will the vehicles get better fuel mileage with the alternate fuel? c. how much greenhouse gas does your fuel produce compared with current fuel sources? d. is the alternate fuel more expensive than fossil fuel?
Answers: 2
image
Physics, 22.06.2019 11:50, morenodonaldo762
The electric field between square plates of a parallel-plate capacitor has magnitude e. the potential across the plates is maintained with constant voltage by a battery as they are pulled apart to twice their original separation, which is small compared to the dimensions of the plates. the magnitude of the electric field between the plates is now equal to a)e b)e/4 c)e/2 d)4e e)2e
Answers: 1
image
Physics, 22.06.2019 23:00, electrofy456
Which of the following is another term for a planned economy
Answers: 1
image
Physics, 23.06.2019 02:00, jocelyn7575
Provides most of the energy used in the world today. question 4 options: wind fossil fuel moving water sunlight
Answers: 1
You know the right answer?
Define init-speed and init-angle as program variables. use an initial speed of 1 and an initial angl...

Questions in other subjects:

Konu
Mathematics, 04.01.2021 23:10