Write a program that inputs a value and type of conversion. The program should then display the
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that inputs a value and type of conversion. The program should then display the output after conversion. The program should include the following conversions:
- 1cm = .394 inches
- 1 Liter = .264 gallons
- 1 kilometer = .622 miles
- 1 kilogram = 2.2 pounds
Make sure that the program accepts only valid choices for the type of conversion.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: