MakeSavingsDep TransRec AcctNum TransRec.Amount ;
else if TransRec AccountType = = DebitCard
MakeDebitCardDep TransRec.AcctNum , TransRec.Amount
else if TransRec AccountType==MoneyMarket
MakeMoneyMarketDep TransRec.AcctNum,TransRec.Amount
Else if TransRec.AccountType==CD
MakeCDDep TransRec.AcctNum ,TransRec.Amount
else if (TransRec.TransType==Withdrawal)
{
* process a withdrawal *
if TransRec AccountType Checking
MakeCheckingWithdrawal( TransRec.AcctNum ,TransRec.Amount )
else if TransRec AccountType = = Savings
MakeSavingsWithdrawal(TransRec.AcctNum , TransRec.Amount );
Else if (TransRec.AccountType = = DebitCard )
MakeDebitCardWithdrawal TransRec AccyNum TransRec Amount ;
}
else if TransRec.TransType = = Transfer
MakeFundsTransfer TransRec.SrcAcctType,TransRec.TgAcctType
TransRec AcctNum TransReC.Amount ;
else
* process unknown kind of transaction *
LogTransError( Unknown Transaction Type TransRec);
}
TransRec
if
C
While( feof( TransFile
* read transaction record *
ReadTransRec TransFile TransRec
* process transaction depending on type of transaction *