Professional Documents
Culture Documents
PLATE #1
Submitted to
Submitted by
Johnrell A. Evangelista
March 3, 2019
Table of Content
Introduction/Description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Flowchart- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --
Pseudocode- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Algorithm- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source code- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Example Output- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Observation- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Conclusion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Introduction
In this plate, it show the Algorithm, Pseudocode, Flowchart, and Source Code of
Half-Pyramid using c program that implementing logic to print half pyramid and get
the area of it.
Flowchart
Start
If base
=?
Print area
half=base/2;
area=(half*y)/2;
If height
End
=?
Default if
Base & height
!=number
Pseudocode
Pseudocode is an informal program description that does not contain code syntax or
underlying technology considerations. It summarizes the program flow but excludes
underlying programming details.
Begin
Input the value of base; (x)
Input the value of height; (y)
half=x/2;
area=half*y;
for (i=1; i<=y; ++i) {
for (j=1; j<=i; ++j){
cout<<" *";}
cout<<"\n";}
print Half-Pyramid
print area
end
Algorithm
The algorithm is a step by step method of solving a problem. It is commonly used for
data processing, calculation, and other related computer and mathematical
operations. An algorithm is also used to manipulate data in various ways, such as
inserting a new data item, searching for a particular item or sorting an item.
Example: the algorithm in finding the area and show the half-pyramid.
Example Output
Observation