Components of program
By aathishankaran Viewed: 31770 times Emailed: 2789 times Printed: 227 times
Components of program
The components of a program are:
- Comment entry: An entry following the symbols
It indicates a comment entry, and is used to specify a comment. It increases readability and clarity of a program for documentation purposes.
- Program name: PROGRAM_ONE indicates name of the program.
- Delimiters: { and } indicate beginning and end markers of the program. It is also required for statement blocks (set pf sentences which are closely related and form part of a construct).
- Sentences: Each line of a program is a sentence.
- Sentence terminator: Each sentence is to be terminated with a ; (semi-colon ) which is called the sentence terminator.
- Keywords: Sentences can contain certain words, which are used for specific purposes. These words are called keywords/ for example, to show a message, the keyword is display. Keywords appearing in all the examples in this courseware are in lowercase and have been italicized.
The program sequence displays a name:
DISPLAY_NAME
{
display “My name is:”;
display “Veronica.”;
}
Comments(0)
Be the first one to add a comment
Latest Tutorials
More Latest News
Most Viewed Articles (in last 30 days)

