Question
ASAP ..........An athlete runs on a 400 meter (437.6 yards) track at a constant speed. Write a C++ program that asks the coach to input
ASAP ..........An athlete runs on a 400 meter (437.6 yards) track at a constant speed. Write a C++ program that asks the coach to input the runner speed in kilometers per hour and a time interval in seconds, and then calculates and displays the distance covered at that speed and in such time interval, both in meters and yards. Then, on a new line, the program must also compute 1) the number of full laps, and 2) the distance in the last, incomplete lap corresponding to the total distance covered by the runner. The screenshots below show two examples of output. Do not use more than 2 decimal points when displaying fractional numbers.
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