In a pivot turn, how do the wheels turn?
One turns right/left, while the other wheel doesn't move at all.
What does a color sensor do?
Detects colors and uses these colors to perform actions.
If age > 12, say "you can come in"
What type of statement is this
if/then statement, or conditional
What is a variable?
A box/location that stores values.
How do the wheels turn in a curve turn?
How does a touch sensor work?
Pressing the touch sensor closes the circuit inside the sensor, allowing electricity to flow through.
What is a conditional statement?
A conditional statement is a statement that runs under certain conditions
True or False? you can store anything inside a variable
true
What is a spin turn?
Both wheels move at the same speed, but turn in different directions.
What type of sensor does a keyboard use?
Touch sensor
If Timer= 0, end game
Is this an example of a conditional?
yes
On start, Set Score to 0.
What should you do to change the variable "score" by 100 points?
change score by 100
Tank Motors A+D to 50%, 0% for 2 rotations
What type of turn is this?
Pivot turn.
How does an ultrasonic sensor work?
One part of the sensor sends out soundwaves to an object. As the soundwaves bounce back, the other sensor uses it to measure the distance from the object.
repeat 15 times- play sound "hello"
Is this an example of a conditional statement?
No, this is a loop
If Timer= 0, then End Game
What is the variable in this statement?
timer
Tank Motors A+D to 50%, -50% for 2 rotations
What type of turn is this?
Spin Turn
Port View- What number is shown when the EV3 color sensor detects black?
1
Conditionals aren't only used in programming. What's an example of a real life conditional.
Answers may vary.
One example is "If it's raining outside, then grab umbrella."
repeat forever
change timer by -1
pause 1000ms
What is the variable?
timer