Suppose you are creating a program that will check a person’s age to determine how much a ticket for an amusement park should cost. The age brackets are as given below. 2 and below free 3-5 $5.00 6-18 $10.00 19 and up $12.00 What would be appropriate test data to check whether the program is working properly for 2 and below category? (1 point) Responses 1,4,7,20 1,4,7,20 0,1,2,3 0,1,2,3 2,3,6,19 2,3,6,19 2,5,18,52

1 answer

To check whether the program is working properly for the "2 and below" category, appropriate test data would need to include ages that fall within that category (2 and below) and some that fall outside of it to ensure the program properly distinguishes between them.

From the given options:

  • 0, 1, 2, 3: This set includes ages 0, 1, and 2 (which are all free) as well as 3 (which should not be free and should cost $5.00).

Thus, the most appropriate choice for testing the "2 and below" category is: 0, 1, 2, 3.