Chapter 3- Data Types and Operators Boolean Expressions Page 2 3 4

Introduction

The If Statement Page 2 3 4 5 6 7 8 9
Arithmetic Operations Page 2 3 4 5 6 Boolean Operators and Nested If Statements Page 2 3 4 5 6 7
Events and Sequential Processing Page 2 3 4 5 More Examples Page 2 3 4 5 6 7 8 9 10 11 12
Datatypes and Conversions Page 2 3 4 5 6 7 Using Check Box and Option Controls Page 2 3 4 5 6 7 8 9 10
Variable Declarations - Local and Global Page 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Exercises Page 2 3 4 5 6 7 8
Chapter 4- Selection Statements Review Questions
Introduction

3-5: Variable Declarations (continued)

Testing Exercise 3-3

Devise a series of test cases that will help you explore the limits of the program you have written. Not only should you specify unusual cases of data for the Initial Capital and Rate textboxes, but you should also experiment with changing the values in the Year, Interest and Capital textboxes.

Cases similar to your testing for Exercise 3-2 should suffice:

Table 3-5: Test Cases for Exercise 3-3.

Initial Capital Interest Rate User Actions Succeeds?
2000 0.05 click NextYr a few times Yes
2000 0.05 click NextYr a few times, then
change the Year value and
click NextYr again
(try it!)
2000 0.05 click NextYr a few times, then
change the Interest value and
click NextYr again
(try it!)
2000 0.05 click NextYr a few times, then
change the Capital value and
click NextYr again
(try it!)
2,500,301 5.0e-2 click NextYr a few times Yes
2,500.99 55.0e-3 click NextYr a few times (try it!)
2000 .05 click NextYr a few times (try it!)
2000 -0.05 click NextYr a few times (try it!)
$2000 0.05 click NextYr a few times (try it!)
(2000) 0.05 click NextYr a few times (try it!)
2.5e-4 0.05 click NextYr a few times (try it!)
-2000 0.05 click NextYr a few times (try it!)
2000 5% click NextYr a few times (try it!)
2000 0.05 click NextYr a few times, then
click in the Initial Capital textbox
but don't change the value, then
click NextYr again
(try it!)