Friday 13 November 2015

4. John needs to write a program to calculate the total distance travelled by a vehicle. To calculate the distance, John can use the following formula: Distance = ut + (at2)/ 2 Here, u is the initial velocity (meters per second), a is the acceleration (meters per second2 ), and t is the time (seconds). Help John to perform the desired task.

Ans.

No comments:

Post a Comment