Exercise: Value objects for measures of length - 1

We want to work with length measurements in both centimeters and meters. If you are not familiar with the metric system: 1 meter has 100 centimeters. Represent centimeters as an integer and meters as a floating point number. Of course, the Value Object design pattern should be used.

Implement the following requirements step by step and only program exactly the code required for each requirement. It is best to work test-driven, but you should definitely write automated tests.

  1. Where appropriate, we need the methods asFloat() and asInt().

Subtask 2

To the solution