title: Calling Method that has a Return value...param
body: <p>I am in search of what to put in the param for purse.CountMoney(); if anything...im having a mental block as how methods that return a value work in comparison to non returning methods...I tried total...double total....um I tried stepping into the program and see if the debug tool could assist and nothing popped out at me.</p>
  
  <p>Any guidance be wonderful.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace lab24
  {
  class Program
  {
      static void Main()
      {
          CoinPurse purse = new CoinPurse();
  
          purse.AddPenny(3);
          purse.AddNickel(4);
          purse.AddDime(2);
          purse.AddQuarter(1);
          purse.CountMoney();
          purse.TakeNickels(4);
          purse.CountMoney();
  
  
          Console.ReadLine();
      }
      public class CoinPurse
      {
          private int numPennies;
          private int numNickels;
          private int numDimes;
          private int numQuarters;
          private double total;
  
          public CoinPurse()
          {
              numPennies = 0;
              numNickels = 0;
              numDimes = 0;
              numQuarters = 0;
              total = 0;
          }
          public void AddPenny(int p)
          {
              numPennies += p;
          }
          public void AddNickel(int n)
          {
              numNickels += n;
          }
          public void AddDime(int d)
          {
              numDimes += d;
          }
          public void AddQuarter(int q)
          {
              numQuarters += q;
          }
          public void TakePenny(int p)
          {
              numPennies -= p;
          }
          public void TakeNickels(int n)
          {
              numNickels -= n;
          }
          public void TakeDime(int d)
          {
              numDimes -= d;
          }
          public void TakeQuarters(int q)
          {
              numQuarters -= q;
          }
          public double CountMoney(double total)
          {
              double q = numQuarters * .25;
              double d = numDimes * .10;
              double n = numNickels * .05;
              double p = numPennies * .01;
  
              total = q + d + n + p;
  
              return total;
          }
      }
  
  }
  }
  </code></pre>