using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter19 { /// /// Example02: Heating a Pan of Water /// A pan of water is heated from 25 C to 80 C. What is the /// change in its temperature on the Kelvin scale and on the /// Fahrenheit scale? /// \Delta T = 55 K /// \Delta T_F = 99 F /// public class Example02 { public Example02() { } private string result; public string Result { get{return result;} } public void Compute() { L.Temperature t1 = new L.Temperature(); t1.C = 25.0; L.Temperature t2 = new L.Temperature(); t2.C = 80.0; t1.FindAbsoluteFromCelsius(); t1.FindFahrenheitFromCelsius(); t2.FindAbsoluteFromCelsius(); t2.FindFahrenheitFromCelsius(); result+=Convert.ToString(t2.K - t1.K)+" " +Convert.ToString(t2.F - t1.F); } } } //55 99