Lab 3.4 If My Calculations Are Correct
Lab 3.4 If My Calculations Are Correct
Simple Computations
1. Write
a
custom
SNAP
reporter
block
called
"min"
that
determines
which
of
two
numbers
is
smaller
and
reports
that
value.
If
the
two
numbers
are
equal,
report
either
one.
2. Write
a
custom
SNAP
reporter
block
called
"max"
that
determines
which
of
two
numbers
is
larger
and
reports
that
value.
If
the
two
numbers
are
equal,
report
either
one.
3. Write
a
custom
SNAP
predicate
block
called
"between"
that
determines
if
a
number
is
between
two
other
numbers.
If
the
first
number
is
equal
to
either
of
the
other
two
numbers
or
is
between
them,
the
block
should
report
"true".
4. Write
a
custom
SNAP
predicate
called
"at
least
as
long
as"
that
determines
whether
or
not
word
has
at
least
a
specified
number
of
letters.
[ 𝑦! − 𝑦! ! + (𝑥! − 𝑥! )!
2. Write
a
custom
SNAP
predicate
block
called
"contains
letter"
that
determines
whether
or
not
a
word
contains
a
particular
letter.
You
can
consider
upper-‐case
and
lower-‐case
letters
to
be
different
for
the
purposes
of
matching.
This
work
is
licensed
under
a
Creative
Commons
Attribution-‐
NonCommercial-‐ShareAlike
4.0
International
License