C Language Used Format Void Menu Bool Withdraw Float Const Float Bool Deposit Float Const Q37061884

c++ language

used in this format:

void menu();
bool withdraw(float&, const float);
bool deposit(float&,const float);
void checkBalance(float);

int main()
{
   //initialize the variables

   while (true)
   {
       menu();

       //Please enter the menu numberof the option you would like to perform
      

       switch (choice)
       {
       case(1):
           // callcheckBalance();
       case(2):
           char op;
           cout << “Would you like to deposit $10 by default or a custom amount , TypeY for Default or N for custom? ” << endl ;
           cin >>op;
           if (op ==’Y’)
           {
              amount = 10;
              deposit(balance,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.