If TransRec TransType Deposit
ProcessDeposit TransRec AccountType, TransRec.AcctsubType ;
TransRec.AcctNum TransRec Amount ;
else if ( TransRec.TransType==Withdrawal)
ProcessWithdrawal( TransRec.AccountType,TransRec.AcctNum,
TransRec.Amount ;
}
else if TransRec TransType Transfer
MakeFundsTransfer TransRec SrcAcctType TransRec TgtAcctType
TransRec.AcctNum TransRec Amount ;
else
* process unknown transaction type *
LogTransError Unknown Transaction Type TransRec
while
processDeposit processWithdrawal
switch case
C switch case
while feof TransFile
{
* read transaction record *
ReadTransRec( TransFile TransRec );
* process transaction depending on type of transaction *
switch(TransRec.TransType
case Deposit ;
ProcessDeposit TransRec.AccountType TransRec AcctSubType
TransRec.AcctNum , TransRec.Amount ;