using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter20 { /// /// Example01: Losing Weight the Hard Way /// A student eats a dinner rated at 200 Calories. He wishes /// to do an equivalent amount of work in the gymnasium by /// lifting a 50.0 kg barbell. How many times must he raise /// the barbell to expend this much energy? Assume that he /// raises the barbell 2.00 m each time he lifts it and that he /// regains no energy when he lowers the barbell. /// n = 8.54 \times 10^3 times /// public class Example01 { public Example01() { } private string result; public string Result { get{return result;} } public void Compute() { L.Heat Q = new L.Heat(); Q.cal = 2.0E6; L.Mass m = new L.Mass(); m.kg = 50.0; L.Acceleration g = new L.Acceleration(); g.Y = L.Constant.AccelerationOfGravity; L.Force f = new L.Force(m,g); L.Displacement h = new L.Displacement(); h.Y = 2.0; L.Work W = new L.Work(f,h); double n = Q.J / W.J; result+=n.ToString(); } } } //8542.85714285714