Algorithms - Software Algorithms HAdm 174 Business...

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

View Full Document Right Arrow Icon
Software & Algorithms HAdm 174 – Business Computing
Image of page 1

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

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

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

View Full Document Right 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
Image of page 4
Selection Control Structure ENDIF YES IF NO ??? ???
Image of page 5

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

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

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

View Full Document Right 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
Image of page 8
A Better Square Program START 5 4 STOP 1 STOP 1 END FOR 4 NEXT
Image of page 9

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

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

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

View Full Document Right Arrow Icon
“Infinite” Repetition NEXT FOR 1
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
Image of page 13

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

View Full Document Right 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
Image of page 14
From Flowchart to Code BEGIN
Image of page 15

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern