Chapter 30: Problem 26
Write an application that will assist the user with metric conversions. Your application should allow the user to specify the names of the units as strings (i.e., centimeters, liters, grams, and so on, for the metric system and inches, quarts, pounds, and so on, for the English system and should respond to simple questions, such as "How many inches are in 2 meters?" "How many liters are in 10 quarts?" Your application should recognize invalid conversions. For example, the question "How many feet are in 5 kilograms?" is not meaningful because "feet" is a unit of length, whereas "kilograms" is a unit of mass.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.