Im have trouble complete on what i have. Looking for some idea's I'm getting a exit error and don't know what to do? Please Help
// This is a program that is an ATM.
#include <iostream>
#include <cstdlib>
#include <iomanip>
using namespace std;
void welcome();
void menu();
void amountDeposit ();
void amountWithdrawal();
int main ()
{
char choice;
double balance = 800,
deposit;
welcome();
do
{
menu();
cin >> choice;
while (choice < 'A' || choice > 'C')
{
cout << " Please make a choice in the range";
cout << " of A through B:";
cin >> choice;
}
switch (choice)
{
case 'a' :
case 'A' : exit();
break;
case 'b' :
case 'B' : amountDeposit();
break;
case 'c' :
case 'C' : amountWithdrawal();
break;
}
} while ( choice != 'B');
return 0;
}
void welcome()
{
cout << "- - - - - - - - - - - - - - - - - - -" << endl;
cout << "- Welcome to DDJ'S ATM Servies -" << endl;
cout << "- Please follow the instructions -" << endl;
cout << "- to access you account -" << endl;
cout << "- - - - - - - - - - - - - - - - - - -" << endl;
system ("PAUSE");
system ("cls");
}
void menu()
{
cout << "What would you like to do?" << endl;
cout << "A. Exit the program" << endl;
cout << "B. Make a deposit" << endl;
cout << "C. Make a withdrawal" << endl;
}
void amountDeposit()
{
double deposit;
cout << "How much would you like to deposit?" << endl;
cin >> deposit;
}
void amountWithdrawal()
{
double withdrawal;
cout << "How much would you like to withdrawal?" << endl;
cin >> withdrawal;
}
void exit ()
{
cout << "Please come again.";
}