The distance d travelled by an object in t seconds is given
The distance d travelled by an object in t seconds is given by the formula d = u middot t + 0.5 middot a middot t^2, where u is the initial velocity and a is the acceleration Calculate and print the distance travelled by an object with initial velocity of 10 m/s and acceleration of 1.5 m/s^2 after t = 7 seconds
Solution
Given d=ut+0.5*a*t^2
and u=10,a=1.5,t=7
d=10*7+0.5*1.5*7*7
=70+.5*49*1.5=70+36.75=106.75
C program
#include<stdio.h>
void main()
{
float distance,a=1.5;
int t=7,u=10;
distance=((u*t)+0.5*(a*t*t));
printf(\"Distance travelled is %f\",distance);
}
