NAME: Reneil James D.
Gutierrez Section: BSIT-1C
NAME: Al Francis Cortez
Bake a bread
Algorithm
1. Start
2. Prepare all the ingredient
3. Mix the ingredient to make a dough
4. Kneading the dough
5. Rest and ferment the dough
6. Make a bread dough shaped
7. Bake the dough
8. End
Pseudocode
1. Start
2. Prepare ingredient
3. Dough = Ingredient + Mix
4. Dough = Kneading
5. Dough = Rest + Ferment
6. Dough = shaped it
7. Bake
8. End
Borrow a book in the library
Algorithm
1. Start
2. Go to library
3. Select the book that you want to borrow
4. Use the library card to borrow the book
5. You can now borrow the book from the library
6. End
Pseudocode
1. Start
2. Go to “Library”
3. While (finding book) Select the book
4. Book = Library Card
5. Can now use the “Book”
6. End
Compute the average of three numbers
Algorithm
1. Start
2. Input the num1, num2, num3
3. Sum the num1, num2, num3
4. The total of the Sum divided by 3
5. Total of the average
6. Stop
Pseudocode
1. Start
2. Input the A+B+C
3. Sum = A+B+C
4. Average = Sum/3
5. Average = total of Average
6. Stop
Calculate and output the volume of a box with a length of 73 cm, width is 47 cm, and height is
29 cm.
Algorithm
1. Start
2. Input the length, width and the height
3. Times the length, width, and the height
4. The total of the output
5. Stop
Pseudocode
1. Start
2. Input the L+W+H
3. Multi = L+W+H
4. Multi = The total of the outcome
5. Stop
Write an algorithm to print the tree below:
***
*****
*******
Algorithm
1. Start
2. Read number of rows
3. Set i=1, space=1
4. If i<=rows continue else go to step 13
5. Set k=0
6. If space<=rows-I is true continue else go to step 9
7. Print space ( means” “)
8. Space =space +1 go to step 6
9. If k != 2*I is true continue else go to 13
10. Print *
11. K=k+1 go to step 9
12. Print next line
13. I=i+1 go to step4
14. Stop
Pseudocode
1. Start
2. Read number of rows
3. Set i=1, space=1
4. i<=rows (continue else go to step 13)
5. Set k=0
6. If space<=rows-I (is true continue else go to step 9)
7. Print space ( means” “)
8. Space =space +1 (go to step 6)
9. k != 2*I (is true continue else go to 13)
10. Print *
11. K=k+1 (go to step 9)
12. Print next line
13. I=i+1 (go to step4)
14. Stop
Write an algorithm to read two numbers that represent the length of two sides of a right triangle;
compute and print the length of its hypotenuse.
Algorithm
1. Start
2. Read to two side of the right triangle
3. Input the two side of the triangle x^2= a^2 + b^2
4. Times the squared to the two side of the triangle (a)^2 + (b)^2
5. Sum the total of a + b
6. Square root the total of the Sum
7. The outcome is the length of the hypotenuse
8. Stop
Pseudocode
1. Start
2. Read the two side of the right tringle
3. Input the x^2= a^2 + b^2
4. Then (a)^2 + (b)^2
5. Then x^2 = a+b
6. X= (the total)^2
7. X= the total of the hypotenuse
8. Stop
Write an algorithm (and draw a flowchart) that reads three numbers, calculate and print the sum and
average.
Algorithm
1. Start
2. Read the three number
3. Compute the sum of the num1, num2, num3
4. Compute the average using the total of the sum divided by 3
5. The total of the sum and the average
6. Stop
Pseudocode
1. Start
2. Read the three number
3. Sum= a+b+c
4. Average = Sum/3
5. Display the = sum and average
6. Stop
Write an algorithm (and draw a flowchart) of the enrollment process in Gordon College.
Algorithm
1. Start
2. Go to the Gordon College Facebook page
3. Find the enrollment application form
4. Fill up the application form
5. Prepare all the requirement that needed to submit
6. Go to the Gordon college registrar to submit all the requirement
7. Wait for their respond if they your enrollment is successful
8. Stop
Pseudocode
1. Start
2. Go to = Gordon college Facebook page
3. Find = Application form
4. Fill up = Application Form
5. Prepare = all requirement
6. Submit = Application Form
7. Wait for their respond
8. End
Write an algorithm for taking a bath.
Algorithm
1. Start
2. Get undressed
3. Rinse your body and hair
4. Use your Shampoo for your hair
5. Use a soap to scrub your body
6. Rinse your body and hair
7. Dry yourself using a towel
8. End
Pseudocode
1. Start
2. “undressed”
3. Rinse = body and hair
4. Use = Shampoo for your hair
5. Use = soap + scrub the body
6. Rinse = body and hair
7. Dry = towel
8. End
Write an algorithm for cooking your favorite dish.
Algorithm
1. Start
2. In a saucepan, put pork, vinegar, 1 tbsp. garlic, bay leaf, soy sauce, salt and pepper.
3. Bring to a boil then simmer uncovered until pork is tender. If it dries up then add water.
4. Remove meat from sauce.
5. In a skillet, heat oil then sauté remaining garlic.
6. Add meat and fry until light brown. Add back the sauce.
7. Remove from heat and serve.
8. End
Pseudocode
1. Start
2. Saucepan = all ingredient
3. Simmer the pork = tender, dries + water
4. Remove the pork (to sauce)
5. Skillet = heat oil , sauté remaining garlic
6. Adobo = meat + fry (until light brown) + back the sauce
7. Remove from heat = serve
8. End
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FLOWCHART (BAKE A BREAD)
START
Kneading the
PREPARE ALL THE dough
INGREDIENTS
Rest and ferment
the dough
Mix the ingredient
to make a dough
END Make a bread
START dough shaped
Bake the dough
FLOWCHART (BORROW A BOOK IN THE LIBRARY
Use the library card
GO TO Select the book
to borrow the book
that you want
LIBRARY to borrow
You can now
borrow the book
from the library
END
FLOWCHART (Compute the average of three numbers)
Input the num1, Sum the num1,
START
num2, num3 num2, num3
The total of the
END Total of the Sum divided
average by 3
FLOWCHART
(Calculate and output the volume of a box with a length of 73 cm, width is 47 cm, and height is 29 cm.)
START
Input the length,
width and the
height
Times the length,
width, and the
height
The total of
the output
END
FLOWCHART (ALGORITHM)
START If i<=rows Space If k != 2*I is
continue else
Set =space +1 go true continue
go to step 13 k=0 to step 6 else go to 13
Read Set i=1, If space<=rows-I Print space
number of space=1
is true continue
else go to step 9
(means” “) Print *
rows
END I=i+1 go Print next K=k+1 go to
step 9
to step4 line
FLOWCHART (algorithm to read two numbers that represent the length of two sides of a right triangle;
compute and print the length of its hypotenuse.)
START
Read to two Input the two side
side of the of the triangle
right triangle x^2= a^2 + b^2
Sum the total Square root The outcome
of a + b the total of the is the length of
Sum the
hypotenuse
END
FLOWCHART
(algorithm (and draw a flowchart) that reads three numbers, calculate and print the sum and average.)
START
Read the Compute the Compute the
sum of the num1, average using the
three number total of the sum
num2, num3
divided by 3
END The total of the
sum and the
average
FLOWCHART
(algorithm of the enrollment process in Gordon College.)
Go to the Gordon
College Facebook Find the enrollment
START
page application form
Go to the Gordon Prepare all the
college registrar to
requirement that Fill up the
submit all the application form
requirement
needed to submit
Wait for their respond if
they your enrollment is
successful END
FLOWCHART (algorithm for taking a bath.)
START
Get undressed
Rinse your body
and hair
Use your
Shampoo for your
hair
Use a soap to
scrub your body
Rinse your body
and hair
Dry yourself
using a towel
END
FLOWCHART (algorithm for cooking your favorite dish.)
START
In a saucepan, put pork,
vinegar, 1 tbsp. garlic,
bay leaf, soy sauce, salt
and pepper.
Bring to a boil then
simmer uncovered until
pork is tender. If it dries
up then add water.
Remove meat
from sauce.
In a skillet, heat oil
then sauté
remaining garlic.
Add meat and fry
until light brown. Add
back the sauce.
Remove from
heat and serve.
END