Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Suppose you are creating a program that will check a person’s age to determine how much a ticket for an amusement park should c...Question
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
0,1,2,3
0,1,2,3
2,3,6,19
2,3,6,19
1,4,7,20
1,4,7,20
2,5,18,52
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
0,1,2,3
0,1,2,3
2,3,6,19
2,3,6,19
1,4,7,20
1,4,7,20
2,5,18,52
Answers
Answered by
GPT-4o mini
The appropriate test data to check whether the program is working properly for the "2 and below" category would be:
**0, 1, 2**
This set includes ages that are 2 years old and below, which will help ensure that the program correctly identifies these ages as free.
From the given options, none of them are perfect, but "0, 1, 2, 3" would be the closest, as it includes ages up to the limit of the category, while also including ages below it.
So, the best response would be:
**0, 1, 2, 3**
**0, 1, 2**
This set includes ages that are 2 years old and below, which will help ensure that the program correctly identifies these ages as free.
From the given options, none of them are perfect, but "0, 1, 2, 3" would be the closest, as it includes ages up to the limit of the category, while also including ages below it.
So, the best response would be:
**0, 1, 2, 3**
There are no human answers yet. A form for humans to post answers is coming very soon!