Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider a ball of mass m-0.1 kg released at rest at time-0 at a height h-20 m a

ID: 3739472 • Letter: C

Question

Consider a ball of mass m-0.1 kg released at rest at time-0 at a height h-20 m above the ground The force of gravity causes the ball to accelerate towards the ground and air resistance slows this acceleration as the velocity increases. The force due to air resistance is where v is the speed (magnitude of velocity) of the ball and b-0.01 Ns /m2. Write a program using PhilsPlot which plots the height of the ball (on the vertical axis) as a function of time (with time on the horizontal axis). The following might help you formulate your approach:

Explanation / Answer

#include <stdio.h>
#include <stdlib.h>
#include<math.h>

int main()
{
double v,t,m,h,d;

m=0.1;
h=20;

for(t=0;d<h;t++){

v=pow(m*9.8/.01,.5)*tanh(t/pow(m/(9.8*.01),.5));
printf("v=%d time=%d ",v,t);


d=(m/.01)*log(cosh(t/pow(m/(9.8*.01),.5)));

}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote