Project 2

due at midnight on   +60

For this assignment, write a program called p2distance.cpp that will ask the user to type an integer distance in meters, and then it will print that distance in kilometers, miles, yards, and inches. You can determine the conversion factors yourself.

Below are transcripts of a few different runs of my solution, but your solution should work no matter what integer the user types on the first line.

Enter distance in meters: 3285
That is 3.285 kilometers,
2.04121 miles,
3592.52 yards, or
129331 inches.
Enter distance in meters: 98211
That is 98.211 kilometers,
61.0256 miles,
107405 yards, or
3.86658e+06 inches.
Enter distance in meters: 17
That is 0.017 kilometers,
0.0105633 miles,
18.5914 yards, or
669.291 inches.

Again, submit just your p2distance.cpp file on Blackboard.