407141: GYM102697 112 Unit Conversions
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
112. Unit Conversionstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Converting from one unit of measurement to another is very useful. Make a program that can convert between, feet, inches, meters, centimeters, miles, and kilometers. Use the following conversions to get the correct answer: .08333 feet in 1 inch, 3.28084 feet in 1 meter, 0.0328084 feet in one centimeter, 5280 feet in 1 mile, and 3280.84 feet in 1 kilometer.
InputOne line describing a conversion: Ex: "The road is 1.5 miles, how many kilometers is it."
OutputPrint the value of the conversion and the unit.
ExampleInputI am 1.5 meters, how many feet am IOutput
4.92126 feetNote
The first number and unit will always be right before the ",". after the "," it will always "how many" then the unit you are converting to.