Computer Science, asked by DrArrynMorgan, 1 year ago

The relative velocity of two trains travelling in opposite directions is calculated by adding their velocities. In case, trains are travelling in the same direction, the relative velocity is the difference between there are velocities. Write a program to input the velocities and length of the trains. Write a menu driven program to calculate the relative velocities and the time taken to cross each other by indicating 1 for same direction and 2 for opposite direction.

Answers

Answered by Anonymous
0

Explanation:

relative velocity and length of time

Similar questions