Assignment:

For the two buttons on the GUI, define their behavior in the reactions field of the given SimpleGui object.

Button1 should take the text and use the encodeText method to encode the text giving a encoding function of your choosing. Then make the text display in the centerArea .

Button2 should utilize a Measurement class and Ord trait that you will create within the SimpleGUI class. Measurement will represent a measurement in feet and inches (eg, a measurement could be 5ft 2in) and will extend the Ord trait. The Ord trait will define functionality for <, >, <=, >=. With these two defined, the button will create two measurements and print to the console (or text are) the result of: (Mesurement1 >= Measurement2) (hint: you only need to explicitly define one of the Ord methods)