/// <summary> /// Solves for cubic area feet. /// </summary> /// <returns>The for cubic area feet.</returns> /// <param name="depthTotalInches">Depth total inches.</param> /// <param name="lengthTotalInches">Length total inches.</param> /// <param name="widthTotalInches">Width total inches.</param> public double SolveForVolumeFeet( double depthTotalInches, double lengthTotalInches, double widthTotalInches) { Conversions conv = new Conversions(); double retVal = 0; double cubicFt = 0; double cubicIn = 0; cubicIn = depthTotalInches * lengthTotalInches * widthTotalInches; cubicFt = conv.ConvertCubicInchesToCubicFeet(cubicIn); retVal = Math.Round(cubicFt, 2); return(retVal); }
} //End public static double SolveForCubicAreaYards() public static double SolveForCubicAreaFeet() { Conversions conv = new Conversions(); double retVal = 0; double cubicFt = 0; double cubicIn = 0; cubicIn = diameterTotalInches * heightTotalInches * widthTotalInches; cubicFt = conv.ConvertCubicInchesToCubicFeet(cubicIn); retVal = Math.Round(cubicFt, 2); CubicFeetInCubicCylinder = retVal; return(retVal); } //End public static double SolveForCubicAreaFeet()
/// <summary> /// Solves for cubic area feet. /// </summary> /// <returns>The for cubic area feet.</returns> /// <param name="diameterTotalInches">Diameter total inches.</param> /// <param name="heightTotalInches">Height total inches.</param> public double SolveForCubicAreaFeet( double diameterTotalInches, double heightTotalInches) { Conversions conv = new Conversions(); double retVal = 0; double cubicFt = 0; double cubicIn = 0; double radius = 0; radius = diameterTotalInches / 2; cubicIn = math.PiValue * radius * radius * heightTotalInches; cubicFt = conv.ConvertCubicInchesToCubicFeet(cubicIn); retVal = Math.Round(cubicFt, 2); return(retVal); }