using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter01 { /// /// Example04: Is he speeding? /// On an interstate highway in a rural region of /// Wyoming, a car is traveling at a speed of 38.0 m/s. /// Is this car exceeding the speed limit of 75.0 mi/h? /// public class Example04 { public Example04() { } private string result; public string Result { get{return result;} } public void Compute() { L.Length x = new L.Length(); x.m = 38.0; // meter L.Time t = new L.Time(); t.s = 1.0; // sec double v = L.Unit.mTOmile(x)/L.Unit.sTOhour(t); result = v.ToString()+" mile/hour"; } } } // 85.0217526413922 mile/hour