Define Quantity class for handling messages in the form of SI base units sent to a Number (e.g., 2 meters). Quantity objects should handle arithmetic operations, s.a., addition/subtraction with quantities of the same unit, multiplication/division with quantities or a Number, as well as comparison operators between quantities.
Define Quantity class for handling messages in the form of SI base units sent to a
Number
(e.g.,2 meters
). Quantity objects should handle arithmetic operations, s.a., addition/subtraction with quantities of the same unit, multiplication/division with quantities or a Number, as well as comparison operators between quantities.