Docsity

Flowcharting: A Guide to Visualizing Data Processing, Exercises of Computer science

Toggle sidebar
bg1
Flowchart
What is a flowchart?
A flowchart is a graphical representation of the operations involved in a
data processing system , the operations performed within the system and the
sequence in which they are performed
What is a flowchart made of?
Symbols : used to represent particular operations or data
flow lines :indicate the sequence of operations.
Each symbol has a particular meaning and used for a specific purpose
Start/Stop of Program flow
Input / Output Operation
For example:
Input number
print total
Connector : to connect between 2 or more lines
Process to be performed
For example
(Total=number1+number2)
Decision / Comparison Operation/If statement
Note that one arrow goes into the symbol
And two go out.
pf3
pf4
pf5

Partial preview of the text

Download Flowcharting: A Guide to Visualizing Data Processing and more Exercises Computer science in PDF only on Docsity!

Flowchart

What is a flowchart?

 A flowchart is a graphical representation of the operations involved in a

data processing system , the operations performed within the system and the

sequence in which they are performed

What is a flowchart made of?

 Symbols : used to represent particular operations or data

 flow lines : indicate the sequence of operations.

Each symbol has a particular meaning and used for a specific purpose

Start/Stop of Program flow

Input / Output Operation

For example:

Input number

print total

Connector : to connect between 2 or more lines

Process to be performed

For example

(Total=number1+number2)

Decision / Comparison Operation/If statement

Note that one arrow goes into the symbol

And two go out.

Any operation that happens within the computer goes through 3 main stages

  1. Input (the user inserts something into the computer)
  2. Process (executed by the CPU according to the input)
  3. Output (the result of the process) Exercise 1 Fill in the table according to the values you choose for X and Y Find the total of two numbers. Input Value of X= Value of Y= Process Total = X+Y Output Print Total Create a Flowchart to calculate how many doughnuts homer didn’t eat before falling asleep

Exercise 3 If the problem has 2 answers that are decided according to a condition you will be using an if statement and this symbol Input a mark. Print 'Fail' if it is less than 50, otherwise print 'Pass'. Input Process Output Create a flowchart to tell if homer should choke Bart or not, he will only choke him if Bart says the phrase “eat my short”

Exercise 4 Find the total of 10 grades Input Process Output Create a flow chart to find out how many A’s did Lisa get on her report card YOU MUST USE A COUNTER Report card English A Math A Music A Science A PE D

Create a flowchart for Marge Simpson to calculate the amount of money she is going to pay in kwik E- mart for the following items

different ouut

Krusty O’s 10.0$ Milk 3.0$ Krusty Kola 2.0$ Pasta 5.0$ Eggs 10.0$