what does this describe? flow charts flashlight follower program flow

6
What does this describe? Flow Charts Flashlight Follower Program Flow

Post on 21-Dec-2015

217 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: What does this describe? Flow Charts Flashlight Follower Program Flow

What does this describe?Flow Charts

Flashlight Follower• Program Flow

Page 2: 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

Page 3: What does this describe? Flow Charts Flashlight Follower 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

Page 4: What does this describe? Flow Charts Flashlight Follower Program Flow

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.

Page 5: What does this describe? Flow Charts Flashlight Follower Program Flow

Flow Charts: Decisions, Decisions….

ParallelBranches

MergedParallel

Branches

LoopedParallel

Branches

“Wait-for”Loop

Page 6: What does this describe? Flow Charts Flashlight Follower Program Flow

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