Академический Документы
Профессиональный Документы
Культура Документы
Homework #7
CIS 166 – Transaction List
This exercise takes the checking account project and applies lists. Your project will
use a single form. Copy your project files in a folder to the R: drive, and turn in a
printed copy of your code, your planning documents, and this sheet in a folder.
Create a new project, and add the Transaction Class from Homework #7, making
any corrections identified in class or your homework. Create a new class named
TransactionList to manage the entered transactions, using a list to store the values.
Include the following capabilities in TransactionList:
• The ability to add a transaction as an object;
• The ability to remove a transaction from the list;
• The ability to refer to a single transaction in the list by index;
• The number of transactions in the list;
• The account balance;
• Whether the balance is negative (overdrawn).
Modify the TransactionList class to include overloaded operators to add and remove
a transaction, and use the new operators in your form.
3/22/11