//Prof. Barimani's Lecture Notes Monday November 14 #include using namespace std; float Balance=1000; int choice; void RemoveMoney (double a) //<----Answer for Error#1 { if (a <= Balance && a <=300) //<----Answer for Error#2 Balance -= a ; //<----Answer for Error#3 else //<----#4 was already OK { cout<<"***Sorry, but you do not have enough funds or asked for over 300\n"; system("PAUSE"); } } void ATM_Menu() { system("CLS"); cout<<"AB BANK ATM"<>choice; //<----Answer for Error#11 } int main() { int done= false; //<----Answer for Error#12 double amount; //<----Answer for Error#13 do { ATM_Menu(); switch (choice) { case 1: cout<<"Withdrawal Amount Please? "; //<----Answer for Error#14 cin>>amount; //<----#15 was OK RemoveMoney(amount); //<----Answer for Error#16 break; case 2: cout<<"You chose to Exit\n"; done= true; //<----Answer for Error#17 break; default: cout<<"Wrong choice\n"; system("PAUSE"); } } while (!done); //<----Answer for Error#18 system("PAUSE"); return 0; }