You are on page 1of 1

Robotics IX ; Week 6 WS 6

ACTIVITY 1: Conditional Control Structures


1. The time between the led being on and off will get smaller and smaller until it
doesn't have a delay anymore and then it will go back up in an infinite loop
2. If the delay time is more than zero then it will light up and off then deduct 100
from the initial delay time. Next if the delay time is less than 100, it will add 100
seconds to the initial delay time causing it to continue forever in a loop.
3. The for statements allows a block of code to be looped 10 times.
ACTIVITY 2: Let’s Solve using Operators!

Part A

17

70

7/10 or 1.42857142857

Part B

false

false

true

false

You might also like