title: Whats wrong with my function not returning this char for my switch
body: <p>I've been trying to figure this out for a few hours now. Im suppose to use the function getMenuChoice to prompt the user to make a choice and return the
  choice. I just dont know how to use the return in the switch statement. Very confused.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  double milesToKilometers();
  double kilometersToMiles();
  void showMenu();
  char getMenuChoice();
  int main()
  {
      char choice;
      do
      {
          showMenu();
          getMenuChoice();
          switch (toupper(choice))
          {
          case 'A':
              cout &lt;&lt; milesToKilometers() &lt;&lt; endl;
              break;
          case 'B':
              cout &lt;&lt; kilometersToMiles() &lt;&lt; endl;
              break;
          case 'Q':
              cout &lt;&lt; "Closing" &lt;&lt; endl;
              break;
          default:
              cout &lt;&lt; "Not Valid" &lt;&lt; endl;
              break;
          }
      }while (choice != 'Q');
      return 0;
  }
  double milesToKilometers()
  {
      cout &lt;&lt; "Enter Miles:" &lt;&lt; endl;
      double m;
      cin &gt;&gt; m;
      m = m * 1.6093;
      return m;
  }
  
  double kilometersToMiles()
  {
      cout &lt;&lt; "Enter Kilometers: " &lt;&lt; endl;
      double k;
      cin &gt;&gt; k;
      k = k * .6214;
      return k;
  }
  void showMenu()
  {
      cout &lt;&lt; "A. Miles to Kilometers" &lt;&lt; endl;
      cout &lt;&lt; "B. Kilometers to Miles" &lt;&lt; endl;
      cout &lt;&lt; "Q. Quit" &lt;&lt; endl;
      return;
  }
  char getMenuChoice()
  {
      char choice;
      cout &lt;&lt; "Enter Choice: " &lt;&lt; endl;
      cin &gt;&gt; choice;
      return choice;
  }
  </code></pre>