How do I use if else statements in this program?
<p>How do I make this program only accept paint prices more than $10? Then with the input less than $10, output: "That price is too low for paint". Every time I try to use it, it just outputs both options.</p>

<pre><code>//This program is used to calculate total cost of painting.
#include &lt;iostream&gt;
#include &lt;iomanip&gt;
using namespace std;

//These are the function prototypes that will be used for the main function.
void displayInstructions(int &amp;feet, float &amp;price);
float paintprice (int feet, float price);
float laborprice (int feet);
float totalcost(float paint, float labor);
void displayoutput (float paint, float labor, float total, int feet);

int main()
{
  int feet=0;
  float price=0;
  float paint=0;
  float labor=0;
  float total=0;

  displayInstructions(feet, paint);
  paint=paintprice(feet, paint);
  labor=laborprice(feet);
  total=totalcost(labor, paint);
  displayoutput(paint, labor, total, feet);
  return 0;
}

void displayInstructions(int &amp;feet, float &amp;price)
{
  cout&lt;&lt;setw(35)&lt;&lt;"==================================="&lt;&lt;endl;
  cout&lt;&lt;setw(30)&lt;&lt;"Painting Cost Calculator" &lt;&lt;endl;
  cout&lt;&lt;setw(35)&lt;&lt;"===================================" &lt;&lt;endl;
  cout&lt;&lt;"This program will compute the costs (paint, labor, total)\nbased on th\
e square feet of wall space to be painted \
and \nthe price of paint." &lt;&lt;endl;
 cout&lt;&lt;"How much wall space, in square feet, is going to be painted?" &lt;&lt;endl;
  cin&gt;&gt;feet;
  cout&lt;&lt;"How much is the price of a gallon of paint?" &lt;&lt;endl;
  cin&gt;&gt;price;
}

float paintprice (int feet, float price)
{
  float paint;
  paint=((feet/115)*price);
  return paint;
}

float laborprice (int feet)
{
  float labor;
  labor=((feet/115)*18*8);
  return labor;
}

float totalcost (float paint, float labor)
{
  float total;
  total=(paint+labor);
  return total;
}

void displayoutput (float paint, float labor, float total, int feet)
{
  cout&lt;&lt;"Square feet:" &lt;&lt;feet &lt;&lt;endl;
  cout&lt;&lt;"Paint cost:" &lt;&lt;paint &lt;&lt;endl;
  cout&lt;&lt;"Labor cost:" &lt;&lt;labor &lt;&lt;endl;
  cout&lt;&lt;"Total cost:" &lt;&lt;total &lt;&lt;endl;
}
</code></pre>

<p>Should the <code>if else</code> statement be in the main function or in another function? I'm totally lost, help would be much appreciated.</p>
