19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

230 <strong>Computer</strong> <strong>Programming</strong> <strong>Concepts</strong> <strong>and</strong> <strong>Visual</strong> <strong>Basic</strong><br />

FIGURE 7-5 Template for Entering a Deposit<br />

May 5, 1999<br />

Name: <strong>David</strong> <strong>Schneider</strong> Starting balance: $1,000.00<br />

Date Transaction Amount Balance<br />

Apr 21, 1999 Check #: 1 $75.95<br />

Paid to: L<strong>and</strong>’s End<br />

Memo: shirts<br />

$924.05<br />

Apr 29,1999 Check #: 2 $125.00<br />

Paid to: Bethesda Coop<br />

Memo: groceries<br />

$799.05<br />

May 5,1999 Deposit #: 1 $245.00<br />

Source: Prentice Hall<br />

Memo: typing expenses<br />

Ending Balance: $1,044.05<br />

$1,044.05<br />

FIGURE 7-6 Sample Printout of Transactions<br />

The common design for the check <strong>and</strong> deposit slip allows one set of controls to be used<br />

for both items. Figure 7-7 shows the controls <strong>and</strong> their suggestive names. The caption of the<br />

label lblToFrom will change back <strong>and</strong> forth between Pay To <strong>and</strong> Source.<br />

FIGURE 7-7 Control Names for Checkbook Management Program.<br />

Table 7.1 lists the objects <strong>and</strong> their initial properties. Because the program will always<br />

begin by displaying the next check, the various captions <strong>and</strong> the BackColor property of the<br />

picture box could have been set at design time. We chose instead to leave these assignments

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!