A procedure Count() will:
1. input a value (all values will be positive integers)
2. count the number of odd values and count the number of even values
3. repeat from step 1 until the value input is 99
4. output the two count values, with a suitable message.
The value 99 must not be counted
The procedure Count() is to be tested.
Typical test data would consist of odd and even values, for example:
23, 5, 64, 100, 2002, 1, 8, 900, 99
The purpose of this test would be to test a typical mix of even and odd values and check the totals.
Give three test data sequences that may be used to test different aspects of the procedure.
Do not include invalid da.
Sequence 1:
Test data ...................................................................................................................................
Purpose of test. ........................................................................................................................
...................................................................................................................................................
Sequence 2:
Test data ...................................................................................................................................
Purpose of test. ........................................................................................................................
...................................................................................................................................................
Sequence 3:
Test data ...................................................................................................................................
Purpose of test. ........................................................................................................................
..................................................................................