title: Why am I getting "Too few arguments to function"?
body: <p>The code is to calculate the monthly payment of a car. Although I know I am not finished, I wish to see why I am not passing functions correctly.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;math.h&gt;
  
  using namespace std;
  
  
  void instructions()
  {
    cout &lt;&lt; "We will calculate the monthly payment for your particular car." &lt;&lt; endl;
    cout &lt;&lt; "Please Follow the instructions." &lt;&lt; endl;
  }
  
  
  
  string getCarType()
  {
    string carType;
  
    cout &lt;&lt; "Please enter the type of your car: " &lt;&lt; endl;
    cin &gt;&gt; carType;
  
    return carType;
  }
  
  
  
  
  double getPurchasePrice()
  {
    double purchasePrice;
  
    cout &lt;&lt; "Please enter the price in which you purchased the vehicle: " &lt;&lt; endl;
    cin &gt;&gt; purchasePrice;
  
    return purchasePrice;
  }
  
  
  
  
  double getDownPayment()
  {
    double downPayment;
  
    cout &lt;&lt; "Please enter the down payment made on the vehicle: " &lt;&lt; endl;
    cin &gt;&gt; downPayment;
  
    return downPayment;
  }
  
  
  
  
  int getYears()
  {
    int years;
  
    cout &lt;&lt; "Please enter the number of years remaining to pay off the loan: " &lt;&lt; endl;
    cin &gt;&gt; years;
  
    return years;
  }
  
  
  
  
  
  double getRate()
  {
    double rate;
    double correctedRate;
  
    cout &lt;&lt; "Please enter the annual interest rate of the loan as a whole number: " &lt;&lt; endl;
    cin &gt;&gt; rate;
  
    //calculations
    correctedRate = (rate/100);
  
  
    return correctedRate;
  }
  
  
  
  
  
  double findAmountFinanced(double &amp;purchasePrice, double &amp;downPayment)
  {
    double amountFinanced;
  
    //calculations
    amountFinanced = purchasePrice - downPayment;
  
    return amountFinanced;
  }
  
  
  
  
  
  double findMonthlyPayment(double &amp;amountFinanced, double &amp;rate, int &amp;years)
  {
    double monthlyPayment;
    double sideOne;
    double sideTwo;
  
    //calculations
    sideOne = amountFinanced * (rate/12);
    sideTwo = pow(1 - (1 + (rate/12)) / (-12*years));
      monthlyPayment = sideOne/sideTwo;
  
  
    return monthlyPayment;
  }
  
  
  
  
  int findNumberOfPayments(int &amp;years)
  {
    int payments;
    payments = 12 * years;
  
    return payments;
  }
  
  
  int main()
  {
    instructions();
  
    string carType;
    double purchasePrice;
    double downPayment;
    int years;
    double rate;
    double amountFinanced;
    double monthlyPayment;
    int payments;
  
    carType = getCarType();
    purchasePrice = getPurchasePrice();
    downPayment = getDownPayment();
    years = getYears();
    rate = getRate();
    monthlyPayment = findMonthlyPayment();
    payments = findNumberOfPayments();
  
    cout &lt;&lt; "Make of car: " &lt;&lt; carType  &lt;&lt; endl;
    cout &lt;&lt; "Price Purchased at: " &lt;&lt; purchasePrice &lt;&lt; endl;
    cout &lt;&lt; "Down payment made at purchase: " &lt;&lt; downPayment &lt;&lt; endl;
    cout &lt;&lt; "Years to pay off loan: " &lt;&lt; years &lt;&lt; endl;
    cout &lt;&lt; "Annual rate of interest: " &lt;&lt; rate &lt;&lt; endl;
    cout &lt;&lt; "Your monthly payment is: " &lt;&lt; monthlyPayment &lt;&lt; endl;
    cout &lt;&lt; "The total amount of payments is: " &lt;&lt; payments &lt;&lt; endl;
    return 0;
  }
  </code></pre>
  
  <p>Again, my error is that I have too few arguments to function.</p>