Grade 6

Commenting Your Code

Commenting your code is very important. This is the part of writing the code that's in plain english. If someone looks at your code they can see what your code is meant to do.

Commenting Worksheet

Submit the Following to your instructor:

Program Name:
Purpose:
Submitted by:
Date:  

Check off when you complete

Example of well-commented code

#pragma config(Sensor, S2,     lightSensor,         sensorLightActive)
#pragma config(Motor,  motorB,          ,              tmotorNormal, PIDControl)
#pragma config(Motor,  motorC,          ,              tmotorNormal, PIDControl)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

///////////////////////////////////////////////////////////////////////////////
//                                InclinePlane                               //
//                                                                           //

RobotC Syntax / Hello World!

Hello World!

Set Up Bluetooth Communication

What is Bluetooth?

Connect the NXT to a Computer

How to set up the NXT

  1. Go to the Bluetooth menu on the NXT turn Bluetooth On
    btbt on
  2. Then go to "Visibility"
  3. Then "Visible"

Pages