title: C++ Food Menu (using do while loop )
body: <p>I'm having trouble running this program: I'm trying to have the user <code>input</code> their choices on the menu (<strong>A,B,C,D or E</strong>), if they select the yes <code>option</code>. If not, then it goes straight to calculation of  the total sales price. But whenever I select yes, it seems to repeat the display menu and does not show the choices. Please help I'm fairly new to <code>c++</code></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  
  int main()
  {
  
      double a = 5.99, b = 4.99, c = 4.99, d = 5.99, e = 9.99, totalprice;
      const double TAX = 0.13;
      int choice = 0;
      char (answer);
  
      do
      {
  
          cout &lt;&lt; "\nGood day! Welcome to The Bakery! What would you like today?\n";
          cout &lt;&lt; "\nMenu\n                                                        Price"&lt;&lt; endl;
          cout &lt;&lt; "A: Earl Gray Tea and Biscuits  -                        $" &lt;&lt; a &lt;&lt; endl;
          cout &lt;&lt; "B: Coffee and a blueberry scone -                       $" &lt;&lt; b &lt;&lt; endl;
          cout &lt;&lt; "C: Espresso and a tea biscuit -                         $" &lt;&lt; c &lt;&lt; endl;
          cout &lt;&lt; "D: Coffee and a Muffin-                                 $" &lt;&lt; d &lt;&lt; endl;
          cout &lt;&lt; "E: The Assorted Tea, Scones, and Biscuits Platter-      $" &lt;&lt; e &lt;&lt; endl;
  
          cout &lt;&lt; "\nAre there any addtional orders? 'Y' or 'N'\n" &lt;&lt; endl;
          cin &gt;&gt; answer;
          if (answer == 'Y' || answer == 'y')
  
          {   //Display Choice
  
              cout &lt;&lt; "\nYour choice?\n" &lt;&lt; endl;
          }
  
  
           if (choice == 'A' || choice == 'a')
           {
  
              cout &lt;&lt; "A: Earl Gray Tea and Biscuits" &lt;&lt; a &lt;&lt; endl;
  
          }
  
  
          if (choice == 'B' || choice == 'b')
          {
  
              cout &lt;&lt; "B: Coffee and a blueberry scone" &lt;&lt; b &lt;&lt; endl;
  
          }
  
  
        if (choice == 'C' || choice == 'c')
          {
  
              cout &lt;&lt; "A: Earl Gray Tea and Biscuits" &lt;&lt; c &lt;&lt; endl;
  
          }
  
  
           if (choice == 'D' || choice == 'd')
          {
  
              cout &lt;&lt; "D: Coffee and a Muffin" &lt;&lt; d &lt;&lt; endl;
  
          }
  
  
          if (choice == 'E' || choice == 'e')
          {
  
              cout &lt;&lt; "E: The Assorted Tea, Scones, and Biscuits Platter" &lt;&lt; e &lt;&lt; endl;
  
          }
  
          else if (answer == 'N' || answer == 'n')
          {
              cin &gt;&gt; totalprice;
              cout &lt;&lt; "The final bill for today is ";
          }
  
          else //Displaying error message
          {
              cout &lt;&lt; "Invalid input";
          }
  
      } while (answer != 'Y' &amp;&amp; answer != 'y');
  
  } 
  </code></pre>