Algorithms - Software & Algorithms HAdm 174 Business...

Info iconThis preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon
HAdm 174 – Business Computing
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Algorithmic Machine That means I know how to follow a sequence of steps.
Background image of page 2
Control Structures Sequence Selection (or decision) Repetition
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sequence Control Structure 1 - 9 1 - 9 1 - 9 1 - 9 STOP 1 - 9 Move Forward Move Backward Turn Right Turn Left Stop/Pause
Background image of page 4
Selection Control Structure ENDIF YES IF NO ??? ???
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Repetition Control Structure NEXT ??? ??? FOR #
Background image of page 6
A First Program START 5 4 STOP 1 END STOP 1
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A Square Program START 5 4 STOP 1 STOP 1 5 4 STOP 1 STOP 1 5 4 STOP 1 STOP 1 END 5 4 STOP 1 STOP 1
Background image of page 8
A Better Square Program START 5 4 STOP 1 STOP 1 END FOR 4 NEXT
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Are 5 squares 5x as long? START END 5 4 STOP 1 STOP 1 FOR 4 NEXT FOR 5 NEXT 5x
Background image of page 10
Autonomous Operation
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
“Infinite” Repetition NEXT FOR 1
Background image of page 12
Selection Control Structure YES IF SL ON NO Do ??? if the left sensor is ON Do ??? if the left sensor is OFF
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Final Program: The Wanderer START 1 END IF FOR ∞ IF SL OFF IF SR OFF END IF YES YES NO NO YES IF SL ON 3 2 END IF NO NEXT 3 2 END IF IF SR ON YES NO
Background image of page 14
From Flowchart to Code BEGIN
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/04/2008 for the course H ADM 174 taught by Professor Clark during the Fall '05 term at Cornell University (Engineering School).

Page1 / 31

Algorithms - Software & Algorithms HAdm 174 Business...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online