title: tips for my bank program not returning results
body: <p>I am making a bank program with functions.1 called displaymenu that produces a menu d(make deposit),w(make withdraw),b(check balance) and
  q(quit).2nd function is getdeposit which accepts balance as parameter and asks user for amount they want to deposit then add amount
  to balance and return it to main function.3rd getwithdrawal same parameter (balance and subtract amount and return result)
  last displaybalance it also accepts balance as parameter and displays currentbalance.then use a switch statement to select which function
  to choose based on selection if they choose to quit respond thankyou. I am making my switch statements but am lost on what
  to add my program is showing the menu but when i pick a choice it displays the letter i pick and sitting there instead
  of asking me the options. Can someone please look over my code and point me in the right direction?</p>
  
  <pre><code>      #include &lt;stdio.h&gt;
  
      char displaymenu();
      float getdeposit(float amount,float balance);
      float  getwithdrawal(float amount,float balance);
      float displaybalance(float balance);
  
  
          int main()
          {
  
            char  choice;
            float deposit;
            float withdrawal;
            float balance;
            float amount;
  
            choice=displaymenu();
            deposit=getdeposit(amount,balance);
            withdrawal=getwithdrawal(amount,balance);
            balance=displaybalance(balance); 
  
  
  
  
             switch (choice)
            {
  
               case 'd':case 'D':
                  printf("How much would you like to deposit?");
                  break;
  
               case 'w':case 'W':
                  printf("How much would you like to withdraw?");
                  break;
  
               case 'b':case 'B':
                  printf("Checking your account balance");
                  break;
  
                case 'q':case 'Q':
                  printf("Quit");
                  break;
  
                  default:
                  printf("Invalid Choice");
            }
  
           return 0;
         }
  
           char displaymenu()
           {
              char choice;
  
  
  
              printf("Welcome to Federal Credit Union!\n");
              printf("Please select from the following menu\n");
              printf("d. Make a deposit\n");
              printf("w. Make a withdrawal\n");
              printf("b. check balance\n");
              printf("q. Quit\n");
              scanf ("%c",&amp;choice);
              return choice;
  
  
                }
  
  
               float getdeposit(float amount,float balance)
              {
  
                  float deposit;
                  deposit=amount+balance;
                  scanf ("%f",&amp;deposit);
                  return deposit; 
  
              }
  
               float  getwithdrawal(float amount,float balance)
              {
  
                  float withdrawal;   
                  withdrawal=amount-balance;
                  scanf ("%f",&amp;withdrawal);
                  return withdrawal;  
              }
  
               float displaybalance(float balance)
              {
  
                  printf("Your balance is %.2f\n",&amp;balance);
  
              }
  </code></pre>