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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

The hierarchy chart in Figure 5-6 shows the stepwise refinement of the<br />

problem.<br />

FIGURE 5-6 Hierarchy Chart for the Analyze a Loan Program<br />

■ THE USER INTERFACE<br />

Figure 5-7 shows a possible form design. Figures 5-8 <strong>and</strong> 5-9 show possible runs of the program<br />

for each task available through the comm<strong>and</strong> buttons. The width <strong>and</strong> height of the picture<br />

box were adjusted by trial <strong>and</strong> error to h<strong>and</strong>le the extensive output generated.<br />

FIGURE 5-7 Template for Loan Analysis<br />

TABLE 5.1<br />

Objects <strong>and</strong> Initial Properties for the Loan Analysis Program<br />

Object Property Setting<br />

frmLoan Caption Analysis of a Loan<br />

lblAmt Alignment 1 – Right Justify<br />

Caption Amount of Loan:<br />

txtAmt Text (blank)<br />

lblApr Alignment 1 – Right Justify<br />

Caption Interest APR:<br />

txtApr Text (blank)<br />

lblYrs Alignment 1 – Right Justify<br />

Caption Number of Loan Years<br />

txtYrs Text (blank)<br />

cmdPayment Caption Calculate Monthly Payment<br />

cmdRateTable Caption Display Interest Rate Change Table<br />

cmdAmort Caption Display Amortization Schedule<br />

cmdQuit Caption Quit

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

Saved successfully!

Ooh no, something went wrong!