Question: how do I code this in C++ ? CS 161 Gayathri lyer Assignment #3 Input/Output Assignment: Two cars A and B leave an intersection at

how do I code this in C++ ?
CS 161 Gayathri lyer Assignment #3 Input/Output Assignment: 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: 1. The average speed of Car A and Car B as two separate input statements. 2. The elapsed time (in hours and minutes, separated by a space) after the cars leave the intersection. o Ex: For two hours and 30 minutes, 2 30 would be entered The program then outputs: 1. The shortest) distance between the cars. Hint: You will need to use the Pythagorean theorem to calculate the distance. Deliverables: Please upload your program source code (.cpp file) as usual. Name your file a03.cpp. Be sure to comment your code as required, and to acknowledge any sources of help you may have received. Your header comments should include the identification of the assignment and your name(s). It should also include a comment indicating any sources of help you may have received. If there were none, the line should read
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
