

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Feasibility study , types of feasibility study , advantage and disadvantage of fe
Typology: Study notes
1 / 33
This page cannot be seen from the preview
Don't miss anything!


























Basic Flowchart Symbols (^) Terminals (^) represented by rounded rectangles (^) indicate a starting or ending point
Display message “How many hours did you work?” Read Hours Display message “How much do you get paid per hour?” Read PayRate
Display GrossPay
Terminal START END Terminal
Basic Flowchart Symbols (^) Input/Output Operations (^) represented by parallelograms (^) indicate an input or output operation
Display message “How many hours did you work?” Read Hours Display message “How much do you get paid per hour?” Read PayRate
Display GrossPay
Display message “How many hours did you work?” Read Hours Input/Output Operation
Four Flowchart Structures (^) Sequence (^) Decision (^) Repetition (^) Case
Sequence Structure (^) A series of actions are performed in sequence (^) The pay-calculating example was a sequence flowchart.
Decision Structure (^) The flowchart segment below shows a decision structure with only one action to perform. It is expressed as an if statement in C++ code. if (x < y) a = x * 2; Flowchart C++ Code
Calculate a as x times 2.
Repetition Structure (^) The flowchart segment below shows a repetition structure expressed in C++ as a while loop. while (x < y) x++; Flowchart C++ Code
Controlling a Repetition Structure (^) ANSWER: By adding an action within the repetition that changes the value of x.
Case Structure CASE years_employed
bonus = 100 (^) bonus = 200 bonus = 400 (^) bonus = 800 If years_employed = 1, bonus is set to 100 If years_employed = 2, bonus is set to 200 If years_employed = 3, bonus is set to 400 If years_employed is any other value, bonus is set to 800
Modules
(^) This flowchart segment shows two decision structures combined. Combining Structures Display “x is within limits.” Display “x is outside the limits.”
x > min? x < max?
Display “x is outside the limits.”
Answer (^) What do each of the following symbols represent?
Review (^) Name the four flowchart structures. (Answer on next slide)