You are on page 1of 5

Leohyray N.

Belleza
BSIT – 1B

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 water.
3. Bring to a boil then put the egg inside the boiling saaucepan
4. Remove the egg after 8 minutes
5. peel of the egg shell
6. End

Pseudocode
1. Start
2. Saucepan = boil
3. Saucepan= put egg
4. saucepan = wait 8minutes
5. egg= remove after 8 minutes
6. egg= peel
7. End

You might also like