Diagram

You might also like

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

NAME: Julliana T.

Viloria Group 13 – CES 1102L


BSCE – 1
1. Create a flowchart for a program that accepts a whole number and prints out its
equivalent value in binary.

Start

Input the decimal number, n

Input the number, b

If n> 0
False

True

Display binary

End
NAME: Julliana T. Viloria Group 13 – CES 1102L
BSCE – 1
2. Make a flowchart that will continue asking for a number until a positive number is
inputted. Determine if the number inputted is greater than 100. If greater than 100
print, "greater than 100". Otherwise, print "less than or equal to 100“.

Start

Input the number, num

False

If num > 0

True

False PRINT
If num > 100
“less than or equal to 100”

True

PRINT End
“greater than 100”
NAME: Julliana T. Viloria Group 13 – CES 1102L
BSCE – 1
3. Create a flowchart that shall determine the number of infants (0-2), children (3-12),
teenagers (13-17), and adults (18 & above) in a group of people.

Start

Input age of person, AP

Initialize Count (C), C = 0

Get number of infants (I), when Where C<15 Get number of childrens (CH),
AP >0 but AP<2 when AP > 3 but AP<12

Get number of teenagers (T), Get number of adults (A), when


when AP >13 but AP<17 AP >18

Display number of I

Display number of CH

Display number of T

Display number of A

End

You might also like