title: Integer division and remainder
body: <p>HELP please. I'm new to this so please be nice and descriptive. I coded this in Visual studio and the goal is to find out how many of each L, M, and S trays I need based on the number of people attending. I am trying to divide by remainder and I'm getting an error on the last two lines. "expression must have integral or unscoped enum type" --- I don't even know what that means. English, please?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;cmath&gt;
  
  using namespace std;
  
  int main()
  {
  
  
  //prompt user
      cout &lt;&lt; "Please enter number of guests attending event:";
      double attendees;
      cin &gt;&gt; attendees;
  
      double large_trays = attendees / 7;
  
      double medium_trays = large_trays % 3;
  
      double small_trays = medium_trays % 1;
  </code></pre>