title: Salary calculator program
body: <pre><code>#include &lt;iostream&gt;
  Using namespace std;
  
  int main ();
  { 
  cout &lt;&lt; "What is the mean amount you work/week?" &lt;&lt; endl;
  
  if (input &lt;= 40)
  cout &lt;&lt; "Your salary is $8.00/hour";
  cin &gt;&gt; a1;
  if (a1 &lt;= 0)
  cout &lt;&lt; "";
  cin &gt;&gt; a2;
  if (a2 &gt;= 40)
  cout &lt;&lt; a3
  cin &gt;&gt; a3;
  
  cout &lt;&lt; "" &lt;&lt; endl;
  else
  cout &lt;&lt; " Better luck next time.- the correct answer is " &lt;&lt; add &lt;&lt; endl;
  
  return 0;
  </code></pre>
  
  <p>I'm trying to write a <code>C++</code> program to compute and display a person’s salary as determined by the following expressions: </p>
  
  <p>If hours worked <code>&lt;= 40</code>, the person receives <code>$8/hour</code> otherwise, 
  Person receives the first <code>40hrs @ $8/hr</code> remaining hrs at <code>1.5x</code> basic rate.<br>
  <strong>Program should request:</strong> 
  1) hours worked (input) 
  2) display the salary earned (output).<br>
  Use a constant variable for basic rate so the program can be updated easily when hourly rates change.<br>
  Give appropriately input/output.
  Test program several <code>x</code> with hrs below, <code>=</code>, and above <code>40</code>.</p>
  
  <p>Any direction will be greatly appreciated!</p>