Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

ALGORITHM

FINDING THE SUM


Step 1. Start
Step 2. Enter 2 numbers
N1, N2
Step 3. Find the Sum of 2 given
numbers.
sum = N1 + N2
Step 4. Display Sum
Step 5. End

FINDING THE
DIFFERENCE
Step 1. Start
Step 2. Enter 2 numbers
N1, N2
Step 3. Find the Difference
of 2 given numbers.
difference = N1 - N2
Step 4. Display Difference
Step 5. End
ALGORITHM
FINDING THE
PRODUCT
Step 1. Start
Step 2. Enter 2 numbers
N1, N2
Step 3. Find the Product of 2
given numbers.
product = N1 * N2
Step 4. Display Product
Step 5. End

FINDING THE
QUOTIENT
Step 1. Start
Step 2. Enter 2 numbers
N1, N2
Step 3. Find the Quotient of
2 given numbers.
quotient = N1 / N2
Step 4. Display Quotient
Step 5. End
ALGORITHM
FINDING THE AVERAGE

Step 1. Start Step 6. Display Ave

Step 2. Declare Variables Step 7. Ave = 75, is it failed or


passed?
Average as Ave
English as Eng Step 8. Do you want to continue?
Filipino as Fil Yes or No? if yes then go back to
Math as Math step 2 if no then continue.
Science as Sci
Aral. Pan as AP Step 9. Stop
TLE as TLE
MAPEH as MAPEH
Values as Values

Step 3. Enter Score


Eng, Fil, Math, Sci, AP,
TLE,MAPEH, VALUES

Step 4. Read Score


Eng, Fil, Math, Sci, AP,
TLE,MAPEH, VALUES

Step 5. Find the Ave of 8 given


variables.
Ave= (Eng + Fil + Math + Sci +
AP + TLE + MAPEH + VALUES)/8
PSEUDCODE

FINDING THE SUM


Start
Enter 2 numbers
N1, N2
Find the Sum of 2 given
numbers
sum = N1 + N2
Display Sum
End

FINDING THE
DIFFERENCE
Start
Enter 2 numbers
N1, N2
Find the Difference of 2 given
numbers
difference = N1 - N2
Display Difference
End
PSEUDCODE

FINDING THE
PRODUCT
Start
Enter 2 numbers
N1, N2
Find the Product of 2 given
numbers
product = N1 * N2
Display Product
End

FINDING THE
QUOTIENT
Start
Enter 2 numbers
N1, N2
Find the Quotient of 2 given
numbers
quotient = N1 / N2
Display Quotient
End
PSEUDCODE

FINDING THE
PRODUCT
Start
Enter 2 numbers
N1, N2
Find the Product of 2 given
numbers
product = N1 * N2
Display Product
End
PSEUDCODE
FINDING THE AVERAGE

Start
Display Ave

Declare Variables
Ave = 75, is it failed or passed?

Average as Ave
Do you want to continue? Yes or
English as Eng
No? if yes then go back to step 2
Filipino as Fil
if no then continue.
Math as Math
Science as Sci
Stop
Aral. Pan as AP
TLE as TLE
MAPEH as MAPEH
Values as Values

Enter Score
Eng, Fil, Math, Sci, AP,
TLE,MAPEH, VALUES

Read Score
Eng, Fil, Math, Sci, AP,
TLE,MAPEH, VALUES

Find the Ave of 8 given


variables.
Ave= (Eng + Fil + Math + Sci +
AP + TLE + MAPEH + VALUES)/8
Com p il a tio n
of P T in T LE

You might also like