Lecture 5
11
How Temperatures class uses LinearEquation services
•construct a LinearEquation with new  (line  25)
–25 LinearEquation c2f =
–   new LinearEquation( 9.0/5.0, 32.0 );
–(carefully use 9.0/5.0 to avoid integer division!)
•send a getInverse message to create another
–28 LinearEquation f2c = c2f.getInverse();
•send compute messages (lines  36, 38 , not  35, 37 )
•  35 terminal.print(                          "c2f.compute( 0.0 ), should see 32.0: ");
•   36 terminal.println( c2f.compute( 0.0 ) );
•