Sunday, October 9, 2016
Programming and Algorithm
Programming and Algorithm
Today I want share an articel about programming and algorithm, ecxactly used for newbie.
Learning outcomes :
Learning outcomes :
In the end of this article, I hope reader can explain about basic consepprogramming, algorithm, and structured programming.
What is algorithm.
Algorithm islimited steps to solve any problem. In programming, algorithm is defined as a method that contains structured steps to solve any problem with computers help.
![]() |
Programming |
![]() |
Algorithm |
Define the problem :
Problem : calculate the volume of cube ?
Define : volume = side * side * side;
Data will needed : side, type : real.
Make type to solve :
Type to solve : volume = side * side * side;
Build algorithm :

write the program :
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
float side, volume;
cout<<"Input side : ";
cin>>side;
volume = side * side * side;
cout<<"Volume is : "<<volume<<endl;
getch();
}
Then compile the program.

Syntax error :

If syntax error, you must correct it.
Then execute :

Then, if there no error, make a documentation.
Documentation contains :
- Define the problem.
- Calculate model/Math
- Flowcart/design of algorithm
- Source code.
Available link for download
Labels:
algorithm,
and,
programming