Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Draw a flowchart that performs

addition of two numbers


Input: num1, num2
Output: Sum Start
Process: Sum=num1+num2
input
num1, num2

Sum=num1+num2

Output
Sum

Stop

Fahrenheit Scale Convert into Celsius


Input: F
Output: C
Process: C=5/9*F – 32 = 0.5556* F - 32
Begin

Input
F

CC=.5556*F-32

Output
C

End

Draw a flowchart that will compute and print the area of


the circle assuming. Begin
I: r
O: A
P: A = pi*r*r r
pi=3.1416

pi=3.1416

A=pi*r*r

End
Draw a flowchart that will read two numbers the compute and
print for their difference and product
End I: num1, num2
O: D, P
P: D = num1- num2 P=num1*num2

Begin

num1,
num2

D=num1-num2

P=num1*num2

D,P

End

Draw a flowchart to find greater of 2 numbers


I: num1, num2
O: larger number
D: comparison (decision)
Begin

num1,
num2
First
Yes number is
num1>num2? greater than
the second
No number

Second
Begin
number is
greater than
the first
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
number

Draw a flowchart that determines if an inputted number is odd


or even
Begin
I: num
O: odd/even
D: determine if num
Odd or even
Yes
num%2=0? “even”

A
No
End
“Odd”

A
Draw a flowchart that will determine the if the difference of
two numbers is positive, negative, or zero.

I: n1,n2 Begin

O: positive, negative, zero


P: D=n1-n2 n1, n2
D: D=pos
D=neg
D=n1-n2
D=0

<0 >0
“Negative” D? “Positive”

=0
A A
“Zero”

End
Draw a flowchart that will give remark based on the age of a
child

Age Remark
<1 Baby
1 to 4 Toddler
5 to 12 Kid
13 to 19 Teenager
>=20 Approaching Adulthood
Begin

Age

Yes
Age<1 “Baby”

No
B
Yes
“Toddler” Age>=1 & Age <=4

B No
Yes
“Kid” Age>=5 & Age <=12

B
No
Yes
“Teenager” Age>=13 & Age <=19

B
No
A
A

“Approaching Adulthood”

End

You might also like