Problem
Write a package that contains floating-point types for inches, feet, miles, centimeters, meters, and kilometers. The package should also contain conversion functions to convert values from one length type to another. Write a driver program to test your package. Why do we use types instead of subtypes for these six units? How would you classify this package?