Question: Write a c + + program that will prompt a user to input the length in inches of two distances. Once entered, convert the number

Write a c++ program that will prompt a user to input the length in inches of two distances. Once entered, convert the number of inches of the two distances to feet (include the remaining inches). Output each distance entered, the total of the two distances and the conversion in feet / inches.
After outputting the distance in feet and inches, if the distance is greater than 3 feet, convert the distance to meters (display the remaining distance in centimeters). If total distance is not greater than 3 feet, convert the total inches to inches in miles. Output the title Metric Conversion of ??? inches, where ??? is the total inches. Format the numbers with one decimal place. Right align the numbers with a column width of 10 and left align the labels m and cm, with a column with of 5. Leaving a space between the number and label (ex: 2.0 m).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!