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, feet, and inches. You can find 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,
10777.6 feet, or
129331 inches.
Enter distance in meters: 98211
That is 98.211 kilometers,
61.0256 miles,
322215 feet, or
3.86658e+06 inches.
Enter distance in meters: 17
That is 0.017 kilometers,
0.0105633 miles,
55.7743 feet, or
669.291 inches.

Again, submit just your p2distance.cpp file (name should be all lower-case and no spaces) to this dropbox for project 2.