what does this describe? flow charts flashlight follower program flow
Post on 21-Dec-2015
217 views
TRANSCRIPT
What does this describe?Flow Charts
Flashlight Follower• Program Flow
Flow ChartsElements
Start/End• Start, always• End, sometimes
Process• Do something
Decision• Binary only• Yes or No
Program Flow
Create a Flow Chart for the Dragster Challenge program
Flow Charts
1. Break task down into separate behaviors
2. Identify whether each behavior is a Process or Decision block
3. Put the labeled blocks in order(including Y/N on decision blocks)
4. Use Arrows to show program flow5. Don’t forget the Start/End blocks
Flow Charts: Dragster Challenge
Every Flow Chart block behavior must be created in NXT-GEvery program has a Start blockSome programs have an End block:
Implied by dangling beam in NXT-GOne Process block may imply more than one NXT-G blockA Decision block always implies some type of input:
sensor, button, timer, counter, bluetooth, etc.
Flow Charts: Decisions, Decisions….
ParallelBranches
MergedParallel
Branches
LoopedParallel
Branches
“Wait-for”Loop
Creating Flow Charts• Flowcharting programs like LucidChart.com (shown below): • Select “New Blank Flowchart”• Use “FLOWCHART” Library
Click/drag these blocks into place
Click/drag to connect blocksClick on text to move/change