title: money count denomination C++
body: <p>So my project is to develop an application where the user enters an amount (Ex. 65.67) and the output prints how many dollars, quarters, dime, nickels, and pennies make up the total (Example would be $5.52 is 5 dollars, 2 quarters and 2 pennies. Below I have left the block of code that deals with the calculation of the total. The dollars and quarters are getting distributed properly, but dimes, nickels and pennies are not.My logic is off and any advice will be greatly appreciated. I'm using windows 8.1, Code::Blocks IDE.</p>
  
  <pre><code>    // Calculations for money denomination//
      float dollar = floor(total);
          total = total-dollar;
      float quarter = floor(total/.25);
          total= total -(quarter*.25);
      float dime = floor(total/.1);
          total = total-(dime*.1);
      float nickel = floor(total/.05);
          total = total-(total*.05);
      float penny = floor(total/.01);
          total = total-(total*.01);
  </code></pre>