CPS 196 week 6

CPS 196 week 6 - CPS 196 week 6 10/3/11 Flowchart: a...

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

View Full Document Right Arrow Icon
CPS 196 week 6 10/3/11 Flowchart: a graphical representation of an algorithm often used in the design phase of programming to work out the logical flow of the program. \ Name Symbol Use in flowchart Oval Denotes beginning or end of program Flow line Denotes direction of logic flow Parallelogram Denotes either input or output operations (printf, scanf) Rectangle Denotes a process to be carried out (i=5; A=b+5) Diamond Decision or branch to be made the program should continue to drag one or two routes for (initial expression, loop condition, loop expression)
Background image of page 1

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

View Full DocumentRight Arrow Icon
{ program statement(s) } initial expression is loop condition true or false true program statement(s) loop expression i=1
Background image of page 2
is i<=10? false true printf i++; while (loop condition) { program statement(s)
Background image of page 3

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

View Full DocumentRight Arrow Icon
} is the loop condition true/false? true program statement do { program statemen(s)
Background image of page 4
} while (loop condition); Program Statement(s) is the condition true/false false true Oct 5, 2011 Making decisions |5| is 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
|-7| is 7 |0| is 0 Start(oval)
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

CPS 196 week 6 - CPS 196 week 6 10/3/11 Flowchart: a...

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

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