Ask Question
25 April, 00:38

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.

Answers (1)
  1. 25 April, 00:52
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
Sign In
Ask Question