Question
Given the following equation for the velocity of a skydive: v(t) = v(tt) + {g [C**A/2m] * [(v(tt)^)2] }*t note that v(tt) means the velocity
Given the following equation for the velocity of a skydive: v(t) = v(tt) + {g [C**A/2m] * [(v(tt)^)2] }*t
note that v(tt) means the velocity is a function of time and the time step, NOT velocity times the difference of the time and the timestep
Where:
C isdrag coefficient = 0.581
A is cross sectional area - 1.035 m^2
is the density of air = 1.14 kg/m^3
g is gravity = 9.81 m/s^2
v is velocity
t is time
t is the time step, given as 0.1 seconds
m is the mass = 80 kg
initial velocity v(t=0)= 0
Write a program that asks for mass, cross sectional area, and drag coefficient, as well as how long to calculate the dive out to (for example, do you want the dive to last 10 seconds, 16 seconds, 25 seconds), and what the time step should be (0.1 sec)
As your program does its calculations, it should save the time and velocities in an array (i.e., in two separate one-dimensional arrays, one for time and the other for velocities). One you have calculated all these values, write the output to a le. The le should have two columns, the rst being the time (t) and the second being the velocity (v(t)) at that time. You can separate the two columns either by a space, tab, or comma Your program, then, should also prompt you for the output name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started