Question
Two cars A and B leave an intersection at the same time. Car A travels west at an average speed ofx miles per hour and
Two cars A and B leave an intersection at the same time. Car A travels west at an average speed ofx miles per hour and carB travels south at an average speed ofy 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. Turn in: Your analysis and test plan (hand written or Word document).
Your C++ source code with IPO comments (file with the .cpp extension). Screen shots of your test results. Once completed you will show that you can Analyze a problem statement Organize the information to produce an IPO chart Solve a problem involving time, distance, and speed. Develop test data that proves your code is producing the correct results
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started