You are on page 1of 3

STI COLLEGE STA MESA

Bachelor in Science in Computer Science – BI/CS104


Computer Programming
01 Lab Exercise (Groupings)

Group Members:
Ma. Nathalia Yee
Raniel Edmark Son Tasani
Josh Emmanuel Velarde
John Lyn Villarin
Angelo Torregoza
Mark Tudoc

FLOWCHARTING (SEQUENCE)
INSTRUCTION: Create a program plan, an algorithm, and draw a flowchart that uses a sequence structure, that would
accept a radius of a circle and computes its area, circumference, and diameter. Use constant declaration.

area = pi * radius2
circumference = 2 * pi * radius
diameter = 2 * radius

PROGRAM PLAN
Required Output area
circumference
diameter

Available Input radius

Processing Requirements area = pi * radius2


circumference = 2 * pi * radius
diameter = 2 * radius

ALGORITHM
1. The value of pi is 3.14.
2. Get the radius of the circle.
3. Find the area of the circle using the formula: area = pi * radius2.
4. Find the circumference of the circle using the formula: circumference = 2 * pi * radius.
5. Find the diameter of the circle using the formula: diameter = 2 * radius.
6. Compute the area, circumference, and diameter of the circle.
FLOWCHART

START

READ pi

Input radius of the circle

Find the:
area = pi * radius2
circumference = 2 * pi * radius
diameter = 2 * radius

Output of the area, circumference, diameter

END
This is a watermark for trial version, register to get full one!
VIP Benefits:

1. Converts the whole document.


2. No trial watermark on the output documents.

Remove it Now

You might also like