AD (728x90)

GoogleOnline Exam Test Seminar Sparkz IncEasy Link Exchange

Saturday 31 May 2014

The total distance travelled by vehicle in 't' seconds is given by distance = ut+1/2at2 where 'u' and 'a' are the initial velocity (m/sec.) and acceleration (m/sec2). Write C program to find the distance travelled at regular intervals of time given the values of 'u' and 'a'. The program should provide the flexibility to the user to select his own time intervals and repeat the calculations for different values of 'u' and 'a'

Seminars and Jobs information
Share it Please
/*   The total distance travelled by vehicle in 't' seconds is given by distance = ut+1/2at2 
    where 'u' and 'a' are the initial velocity (m/sec.) and acceleration (m/sec2). 
    Write C program to find the distance travelled at regular intervals of time given 
    the values of 'u' and 'a'. The program should provide the flexibility to the user 
    to select his own time intervals and repeat the calculations for different values of 'u' and 'a'.
*/

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

void main()
{
int tim_intrval, counter,time;
float accl, distance=0, velos;
clrscr();
printf("<===========PROGRAM FOR CALC TOTAL DISTANCE TRAVELED BY A VECHIAL===========>");
printf("\n\n\n\t\t\tNO OF TIME INTERVALS : ");
scanf("%d",&tim_intrval);
For more Click

Written by

Java Basic Point blog is created for the MCA,M.Tech,B.Tech and Graduate students.So visit and get the benifits from this blog.

0 comments:

Post a Comment

© 2013 Learning Java. All rights resevered. Designed by Templateism