title: Improper Double Calculations
body: <p>I'm new to c++ and relatively new to programming so there's probably an easy fix though I can't seem to figure it out. I've been beating my head against my desk trying to get the double equations in my code to produce the correct results. I've been at this problem for days and I've tried to input the double equations in several different ways and this is just the current way I have them. For example, for double <code>poundPowderedSugar = (batchesMade / ((double)(11 / 5)));</code> when I test 3 for <code>batchesMade</code>, I should be getting a double output of 1.363636, with a ceiling output of 2, but instead I get 1.04167 with a ceiling output of 2. When I had it just as double <code>poundPowderedSugar = (batchesMade / 2.2);</code> I was getting an output of less than 1. Thanks!</p>
  
  <p>The following is the part of my program that's causing me trouble:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;string&gt;
  using namespace std;
  
  string pluralize(string singular, string plural, int number) {
      if (number == 1) {
          return singular;
  
      }
      return plural;
  }
  
  int main() {
      int peopleServed = 0;
      cout &lt;&lt; "How many people do you need to serve? ";
      cin &gt;&gt; peopleServed;
      cout &lt;&lt; endl;
  
      double batchesMade = (((double)(peopleServed)) / 12);
  
      double flourBag = (batchesMade / ((double)(13 + (1 / 3))));
      double sugarBag = (batchesMade / 10.0);
      double poundOfButter = (batchesMade / ((double)(1 + (1 / 3))));
      double ozSourCream = (batchesMade / 2.0);
      double dozenEggs = (batchesMade / 12.0);
      double poundPowderedSugar = (batchesMade / ((double)(11 / 5)));
      double ozVanilla =  (batchesMade / ((double)(2 + (2 / 3))));
  
      cout &lt;&lt; "You need to make:  " &lt;&lt; ceil(batchesMade) &lt;&lt; " ";
      cout &lt;&lt; pluralize("batch", "batches", batchesMade) &lt;&lt; " of cupcakes.";
      cout &lt;&lt; endl &lt;&lt; endl;
  
      cout &lt;&lt; "Shopping List for \"Best Ever\" Vanilla Cupcakes" &lt;&lt; endl;
      cout &lt;&lt; "----------------------------------------------" &lt;&lt; endl;
      cout &lt;&lt; ceil(flourBag) &lt;&lt; " " &lt;&lt; pluralize("bag", "bags", ceil(flourBag));
      cout &lt;&lt; " of flour" &lt;&lt; endl &lt;&lt; endl;
      cout &lt;&lt; ceil(sugarBag) &lt;&lt; " " &lt;&lt; pluralize("bag", "bags", ceil(sugarBag));
      cout &lt;&lt; " of granulated sugar" &lt;&lt; endl &lt;&lt; endl;
      cout &lt;&lt; ceil(poundOfButter) &lt;&lt; " " &lt;&lt; pluralize("pound", "pounds", ceil(poundOfButter));
      cout &lt;&lt; " of butter" &lt;&lt; endl &lt;&lt; endl;
      cout &lt;&lt; ceil(ozSourCream) &lt;&lt; " " &lt;&lt; pluralize("container", "containers", ceil(ozSourCream));
      cout &lt;&lt; " of sour cream" &lt;&lt; endl &lt;&lt; endl;
      cout &lt;&lt; ceil(dozenEggs) &lt;&lt; " dozen eggs";
      cout &lt;&lt; endl &lt;&lt; endl;
      cout &lt;&lt; ceil(poundPowderedSugar) &lt;&lt; " " &lt;&lt; pluralize("bag", "bags", ceil(poundPowderedSugar));
      cout &lt;&lt; " of powdered sugar" &lt;&lt; endl &lt;&lt; endl;
      cout &lt;&lt; ceil(ozVanilla) &lt;&lt; " " &lt;&lt; pluralize("bottle", "bottles", ceil(ozVanilla));
      cout &lt;&lt; " of vanilla" &lt;&lt; endl &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>