Uploaded by Jace Opal

LOMIBAO-GeometricFormulas CMPE

advertisement
START
SEL = 0
GEOMETRIC FORMULAS
1. CIRCLE
2. SQUARE
3. TRIANGLE
4. EXIT
SELECT
INPUT SEL
T
CIRCLE
SUBMENU
SEL = 1
F
T
SQUARE
SUBMENU
SEL = 2
F
V
T
0
TRIANGLE
SUBMENU
SEL = 3
F
F
SEL = 4
T
STOP
START
SEL = 0
CIRCLE
1. CIRCUMFERENCE
2. AREA
3. VOLUME (SPHERE)
4. EXIT
SELECT
INPUT SEL
T
Circumference
of a Circle
SEL = 1
F
T
Area of a
Circle
SEL = 2
F
V
T
0
Volume of
a Sphere
SEL = 3
F
F
SEL = 4
T
STOP
START
C = 0, r = 0
Pi = 3.1416
CIRCUMFERENCE OF
A CIRCLE
C = 2 x pi x r
Input r
C = 2 * pi * r
Display C
END
START
A = 0, r = 0
Pi = 3.1416
AREA OF A CIRCLE
A = pi x r^2
Input r
A = pi * r2
Display A
END
START
V = 0, r = 0
Pi = 3.1416
VOLUME OF A
SPHERE
V = 4/3 x pi x r^3
Input r
V = 4/3 * pi * r3
Display V
END
START
SEL = 0
SQUARE
1. PERIMETER
2. AREA
3. VOLUME (CUBE)
4. EXIT
SELECT
INPUT SEL
T
Perimeter
of a Square
SEL = 1
F
T
Area of a
Square
SEL = 2
F
V
T
0
Volume of
a Cube
SEL = 3
F
F
SEL = 4
T
STOP
START
P = 0, s = 0
PERIMETER OF A
SQUARE
P=4xs
Input s
P=4*s
Display P
END
START
A = 0, s = 0
AREA OF A SQUARE
A = s^2
Input s
A = s2
Display A
END
START
V = 0, s = 0
VOLUME OF A CUBE
V = s^3
Input s
V = s3
Display V
END
START
SEL = 0
TRIANGLE
1. PERIMETER
2. AREA
3. VOLUME (PYRAMID)
4. EXIT
SELECT
INPUT SEL
T
Perimeter
of a
Triangle
SEL = 1
F
T
Area of a
Triangle
SEL = 2
F
V
T
0
Volume of
a Pyramid
SEL = 3
F
F
SEL = 4
T
STOP
START
P = 0, a =0,
b = 0, c = 0
PERIMETER OF A
TRIANGLE
P=a+b+c
Input a, b, c
P=a+b+c
Display P
END
START
A = 0, h =0,
b=0
AREA OF A TRIANGLE
A = 1/2 x b x h
Input b, h
A = 1/2 * b * h
Display A
END
START
V = 0, l= 0,
w = 0, h= 0
VOLUME OF A
PYRAMID
V = 1/3 x l x w x h
Input l, w
V = 1/3 * l * w * h
Display V
END
Download