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.
Sample Output
Enter average speed of the first car (in miles per hour): 40
Enter average speed of the second car (int miles per hour): 60
Enter the elapsed (travel) time (in hours and minutes)
(for two hours and 30 minutes enter 2 30): 2 45
The shortest distance between the cars is: 198.31 mile(s).