title: C Programming: Computing mean effective pressure
body: <p>So I'm very new to C programming and I'm being asked to write a programming to compute the mean effective pressure of an internal combustion engine's cylinder.</p>
  
  <p>I'm given: </p>
  
  <p>MEP = (66,000 * HP) / (L * A * RPM)</p>
  
  <p>A = (pi * D^2) / 4 (cross sectional area of the cylinder</p>
  
  <p>D = 3.5in. (Cylinder diameter)</p>
  
  <p>L = 0.417ft (cylinder stroke)</p>
  
  <p>RPM = 5000</p>
  
  <p>HP = 110</p>
  
  <p>I'm supposed to output the Bore (in), Stroke (ft), and the MEP (psi).</p>
  
  <p>This seems like a relatively easy programming, but I just need a few walkthroughs to get me to the finish line. I'm using LCC-Win for testing.
  That is what I have so far:</p>
  
  <pre><code>int main()
  {
  float A, MEP, D, A, L, RPM, HP; //declaring all variables
  D = 3.5;
  L = .417;
  RPM = 5000;
  HP = 110;
  MEP = (66000*HP)/(L*A*RPM);
  double compute_area(double diameter);
  const double pi = 3.14159265;
  return (pi * diameter * diameter) / 4;
  }
  </code></pre>