You are on page 1of 2

Jennie Paez

BSEE T-121

ACTIVITY: ALGORITHM, PSEUDOCODE ,and FLOWCHART


ALGORITHM
1.Develop a program that will allow the user to enter three numbers and display the average.
Step 1:Enter three numbers
Step 2:Add three numbers
Step 3: Dividing by the count of those numbers
Step 4:Display the average

PSEUDOCODE
INPUT n1, n2,n3
SUM=n1+n2+n3
QUOTIENT=SUM/3
OUTPUT QUOTIENT

FLOWCHART

BEGIN

n1, n2, n3

QUOTIENT=SUM/3

QUOTIENT

END
2. Develop a program that will ask two numbers and display the quotient.

ALGORITHM
Step 1: Ask two numbers
Step 2: Divide the two numbers
Step 3: Display the quotient

PSEUDOCODE
INPUT n1, n2
QUOTIENT=n1/ n2
OUTPUT QUOTIENT

FLOWCHART

BEGIN
n1, n2

QUOTIENT=n1/ n2

QUOTIENT
C

END

3. Make a program that will ask your age and display how many days have you been alive.

ALGORITHM
Step 1:Ask your age
Step 2: Multiply your age by 365
Step 3 :Display how many day have you been alive

PSEUDOCODE
INPUT x
MULTIPLY=x*365
OUTPUT MULTIPLY

BEGIN

x
MULTIPLY=x*365

MULTIPLY

END

You might also like