using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter20 { /// /// Example03: Fun Time for a Cowboy /// A cowboy fires a silver bullet with a muzzle speed /// of 200 m/s into the pine wall of a saloon. Assume that /// all the internal energy generated by the impact remains /// with the bullet. What is the temperature change of the /// bullet? /// \Delta T = 85.5 C /// public class Example03 { public Example03() { } private string result; public string Result { get{return result;} } public void Compute() { L.Mass m = new L.Mass(); m.kg = 10.0; L.Velocity v = new L.Velocity(); v.X = 200.0; L.KineticEnergy K = new L.KineticEnergy(m,v); L.SpecificHeat c = new L.SpecificHeat(); c.JPERkgPERCelsius = 234.0; double deltaT = K.J / m.kg / c.JPERkgPERCelsius; result+=deltaT.ToString(); } } } //85.4700854700855