// ======================
// Main Function
// ======================
int main()
{
BankAccount Customer1("Anne Jowsey", "ABC0001", 200);
BankAccount Customer2("Salvatore Sciandra", "ABC0002", 500);
BankAccount Customer3("Debra Sorrentino", "ABC0003", 1000);
BankAccount Accounts[3];
Accounts[0] = Customer1;
Accounts[1] = Customer2;
Accounts[2] = Customer3;
for (int i = 0; i < 3; i++)
{
cout << Accounts[i].getName()<<" "<<Accounts[i].getAccountNumber()<<" "<<Accounts[i].getBalance()<<endl;
}
// Open transactions.txt (assumed to be in project folder)
// Validate that the file opened successfully
// Use an EOF-controlled loop to process all transactions in the file
// For each record,
// Read the input record from the file: account number, transaction type, and amount (if appropriate)
// Search the array for the specified account (reject invalid account numbers)
// If found, perform the indicated transaction on the account (make sure the account is open)
// Display the requested transaction to the screen (inlucing error messages such as invalid account, or illegal transaction)
// Display the updated bank account after each transaction
// end loop
// Close the input file and exit
ifstream Infile;
Infile.open("transactions.txt");
while(!Infile.eof())
{