Question
Write a C++ program that converts speeds/distances from metric to standard units. For this assignment, you will not need to validate user input. That is,
Write a C++ program that converts speeds/distances from metric to standard units. For this assignment, you will not need to validate user input. That is, if you wish you can assume that the user enters values in the required format.
Some of your grade will be based on programming style, and on whether or not you include an honor code affirmation, a design, and a test report. However, most of your grade will be based on program correctness, as determined by two criteria:
1. How closely the output to your program matches exactly what is shown in the two transcripts below.
2. How well your program handles undisclosed test inputs used during grading.
The two program run transcripts to match:
Transcript #1: *** Welcome to the Metric speed/distance conversion program
*** Enter speed in format hh:mm:ss 0:7:30
Enter distance in kilometers: 1.61
00:07:30 per kilometer over 1.61 kilometers = 00:12:04 per mile over 1.00 miles.
Bye for now.
Transcript #2: *** Welcome to the Metric speed/distance conversion program
*** Enter speed in format hh:mm:ss 0:6:0
Enter distance in kilometers: 1
00:06:00 per kilometer over 1.00 kilometers = 00:09:39 per mile over 0.62 miles.
Bye for now.
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