You are on page 1of 3

PROGRAMMING LOGIC AND DESIGN

CPE 2 – 1ST SEM 2020-2021

MIDTERM GRADING PERIOD

LABORATORY ACTIVITY #3
PROFESSOR: FREDDIE M. TAMAYAO, MENG-CPE, CISSP

NAME: Ivan Webster J. Razo DATE: September 17, 2020 TIME: ___10:13 AM___

ACTIVITY PROBLEM #1:


Flowchart to find sum and average of series of numbers
ACTIVITY PROBLEM #2:
Flowchart to find even numbers between 1 to 50.

Start

a=1
Initialization

Condition
Is a <= False
50?

True
Repeated False
a%2 == 0
Action

Output var. a
Stop

a++

Updating or Increment
ACTIVITY PROBLEM #3:
Flowchart to find odd numbers between 1 to n when there is a positive integer.

Start

Variables odd
and n

n=1 Initialization

Is n>0?
Condition
odd= n%2

Repeated False
if odd != 0
Action
True
Output var.
odd

Do you want False Output


to add more?
var. odd

True
n++
Stop
Updating or Increment

You might also like