Homework #4 CIS 166 - Validating Entries
Homework #4 CIS 166 - Validating Entries
Homework #4
CIS 166 – Validating Entries
This exercise expands the checking account application. Prepare materials that
describe the work to be performed. 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. Make sure that your code includes comments. You may modify your earlier
homework or create a new project.
A transaction includes the following information: when the transaction occurred, the
amount of the transaction, the kind of transaction (deposit, withdrawal, service fee),
and whether the transaction has cleared the bank.
• The transaction amount should be tested to make sure it is a positive number.
• The transaction date should also be tested to be sure a date value has been
entered, and the date is on or before today.
• Each transaction must have a transaction type specified (deposit, service fee,
withdrawal).
• A withdrawal cannot cause the actual balance to be less than zero (a service fee
can result in a negative balance).
Two account balances need to be tracked: actual and processed (cleared). The
actual account balance changes when a new transaction is created IF all of the
requirements are met. The processed balance changes if all of the requirements are
met AND the transaction is marked as processed.
12/10/10