Yes!
define Create class Magnitude containig values (float), measurement unit (string) and a submultiple (string) value = 0 submultiple = "" unit = ""
A string representing magnitude
method convert(submultiple) { this.value * 2^n ] 'this or self'
main
// requirements: SI reads from stdin and from parameter data = new Magnitude() data.value = 30 data.submultiple = "da" data.unit = "g"
data.convert("h")