Ask Question
14 November, 14:07

Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B travels south at an average speed of y miles per hour. Write a program that prompts the user to enter the average speed of both the cars and the elapsed time (in hours and minutes) and outputs the (shortest) distance between the cars.

+5
Answers (1)
  1. 14 November, 15:28
    0
    Distance between A & B, dAB, is hypotenus.

    dAB²=dA²+dB²

    A'=70 mph, B'=55mph, (convert t to hours)

    dA=A'•t, dB=B'•t

    dAB=√ ((70t) ² + (55t) ²)

    Explanation:

    Distance between A & B, dAB, is hypotenus.

    dAB²=dA²+dB²

    A'=70 mph, B'=55mph, (convert t to hours)

    dA=A'•t, dB=B'•t

    dAB=√ ((70t) ² + (55t) ²)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B travels south ...” in 📙 Engineering if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers