LMD Async Tutoring

Okay as soon as I saw this prompt I knew how to do it.

1 / 10 = 0
2 / 10 = 0
3 / 10 = 0
4 / 10 = 0
5 / 10 = 0
6 / 10 = 0
7 / 10 = 0
8 / 10 = 0
9 / 10 = 0
10 / 10 = 1
11 / 10 = 1

These last three give me the outputs I want:

9 / 10 = 0
10 / 10 = 1
11 / 10 = 1

so (x + y + 9) / 10 would work.

But I think a smaller one would work. would ‘/ 3’ work?

1 / 3 = 0
2 / 3 = 0
3 / 3 = 1
4 / 3 = 1

so (x + y + 1) / 3

or(1, 1): (1 + 1 + 1) / 3 = 1
or(1, 0): (1 + 0 + 1) / 3 = 0

okay no

3 / 2 = 1
2 / 2 = 1
1 / 2 = 0

Okay that’ll do it:

or(x, y) = (x + y + 1) / 2

or(1, 1): (1 + 1 + 1) / 2 = 1
or(1, 0): (1 + 0 + 1) / 2 = 1
or(0, 1): (0 + 1 + 1) / 2 = 1
or(0, 0): (0 + 0 + 1) / 2 = 0

1 Like