So, the great thing about compound conditionals,

is that there are many places in our life,

especially places where we have games.

We're going to be looking at the game of soccer,

and if you're not familiar with soccer,

we want to take a few minutes to give you our diagram,

and hope you interpret it,

or maybe even if you are familiar with soccer.

We want to see how we're interpreting this field with our diagram.

So, we have two teams playing against each other.

We've got the goalie for the red team,

is on the left so the defenders of the red team left and

that people in their forwards and things that are on the right,

and the goalie for the blue team is on the right.

Now, showing essentially the goal as a box just to give you some idea.

But the end of the field,

where we would cross either out of bounds

or into a goal is that first line of the negative 210,

and the positive 210.

Okay. So, those are the edges of the field, if you will.

What we're going to have you do is,

we'll have you figure out under what conditions of X and Y coordinates,

the ball is going to go out of bounds,

or it's going to score a goal.

Or well, we're going to do various forms better bounds, but we'll talk about later.

One of the things you should know is that for this,

we're going to simplify it.

We want to assume that soccer ball essentially has no width,

so that anytime we talk about its coordinate,

its centre positions zero, zero.

For example, it starts in the center at zero, zero.

You don't have to worry about like well how far is it to the edge

of the ball because it's just as soon as the edge of the ball crosses over.

We're just going to imagine we're

just dealing with the center of the ball so that makes it easier.

Okay, so let's try a couple of things together to get you warmed up,

and then we'll set you guys off on a task yourself.

So, let's suppose that with our zero,

zero coordinate here at the middle,

the soccer ball had a y-coordinate of what?

Would it be out of bounds on the side indicated on that top side.

So, don't think just about the very minute it gets out of bound.

What would be a Boolean expression for all the values of y that the soccer ball

could have and the outer bounds up there on the top, right?

So, if the y value has a greater value,

sorry if the y coordinate of the soccer ball has a value greater than 180,

then it will be out of bounds on the top.

All right. Let's try another one. How would

you describe the condition when the ball out of bounds,

but was not on either of the sides?

Is on this bottom one, let's just do them, right?

That would be in the case where y is less than 180.

Okay. So, anytime the y is less than 180,

its outer bounds on that side.

Now finally, let's do both sides.

So, I'm sorry, not both sides, either side.

If its out of bounds on either side,

what conditions for y would we check to see if that was the case?