Imagine you’re reviewing a programming statement that represents the rules for who is allowed to enter a waterpark:

p OR (q AND u) OR (r AND s) OR (r AND t)

The variables stand for:

p = is over 21
q = is over 16
r = is under 21
s = has an adult with them
t = is with a school group
u = has a waiver
If you were to create a script on the waterpark website that explains who is allowed in the park, what would the output look like? (Respond in the same order as the logic statement)

(4 points)
Put responses in the correct input to answer the question. Select a response, navigate to the desired input and insert the response. Responses can be selected and inserted using the space bar, enter key, left mouse button or touchpad. Responses can also be moved by dragging with a mouse.
To be allowed in the park, you mustResponse area, Response area ,Response area, or Response area
Skip to navigation

1 answer

To be allowed in the park, you must be over 21, be over 16 and have an adult with you, be under 21 and have an adult with you, be under 21 and be with a school group, or have a waiver.