blob: caca3452b4547d619c5eff94f6cbff0fe1be30f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//motorist and traffic light
//initial velocity
u=(80*1000)/(60*60) //m/sec
t=10 //sec
s=200 //m
//a be acceleration
//using equation of motion
a=(200-22.22*10)*2/10^2 //m/sec^2
//final velocity
v=(22.22-0.444*10)*(3600/1000) //kmph
printf("\na=%.2f m/sec^2\nv=%.2f kmph",a,v)
|