Page 70 - 2611_SmartGPT Pro V(5.0) C-6
P. 70
Step 21 Click on the Label1 block to open its blocks.
Step 22 Drag the set Label1.Text to block and place it below call Pedometer1.Reset, then attach
a 0 block inside it from Math.
Step 23 Click on the Pedometer1 block again and drag the when Pedometer1.SimpleStep block
to the workspace.
Step 24 Click on the Label1 block again and drag the set Label1.Text to block inside the when
Pedometer1.SimpleStep block.
Step 25 Click on the simpleSteps variable inside the event block; a get simpleSteps block will
appear.
Step 26 Drag the get simpleSteps block and attach it to set Label1.Text.
Suppose Android and iOS were rival kingdoms in a digital realm. What unique
features and powers would each kingdom possess and how would they influence the
development of apps within their domains?
TESTING THE PEDOMETER APP
After completing the design and blocks for your Pedometer app, follow these steps to test it on
your mobile device.
Step 1 Open the MIT AI2 Companion app on your mobile phone.
Step 2 Click on Connect from the top menu.
Step 3 Click on AI Companion from the drop-down list.
The Connect to Companion message box appears.
68 Computer Science (V5.0)-VI

