Ask Question
9 June, 10:43

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.

+2
Answers (1)
  1. 9 June, 12:06
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers