Application of the Cosequential Model to a General Ledger Program IV
Summary of the steps involved in processing the ledger entries:
- Immediately after reading a new ledger object, print the header line and initialize the balance for the next month from the previous month’s balance.
- For each transaction object that matches, update the account balance.
- After the last transaction for the account, print the balance line.