Components of program

By aathishankaran Viewed: 31770 times Emailed: 2789 times Printed: 227 times Bookmark and Share



Components of program

 

The components of a program are:

 

  1. 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.

 

  1. Program name: PROGRAM_ONE indicates name of the program.

 

  1. 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).

 

  1. Sentences: Each line of a program is a sentence.

 

  1. Sentence terminator: Each sentence is to be terminated with a ; (semi-colon ) which is called the sentence terminator.

 

  1. 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

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:


Enter Code:
The Captcha image

Latest Tutorials

[2010-09-02]Steps in using verisign certificate with Glassfish appserver
[2010-08-02]emulator 0 terminated while waiting for it to register!
[2010-08-02]Cannot run program "C:\Program Files\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
[2010-08-01]Step by Step guide to setup freetts for Java
[2010-07-31]Speech Packages available for Java API
[2010-07-31]Tutorial on setting up freetts with maven
[2010-07-31]package com.sun.speech.freetts does not exist.
[2010-07-31]Text to Speech conversion program in Java
[2010-07-31]How to create wav file using freetts
[2010-07-31]How to set the width of a Text element in JavaFX?
[2010-07-31]Major components of FxObjects in JavaFX
[2010-07-03]Using the AWS SDK for Java in Eclipse
[2010-07-03]Using the AWS SDK for Java
[2010-01-01]Converting properties using PropertyEditors and Other Spring features worth mentioning
[2010-01-01]How to create an array and method in JSP

More Latest News

Most Viewed Articles (in last 30 days)
How to use ArrayList in Java
XML and Java - Parsing XML using Java Tutorial
How to use Iterator in Java
Using substring( ) in Java
How to Send SMS using Java Program (full code sample included)
FileReader and FileWriter example program in Java
indexOf( ) and lastIndexOf( ) in Java
Using StringTokenizer in Java
HashMap example in Java
wait(), notify() and notifyAll() in Java - A tutorial
Abstract classes in Java
Method Overriding in Java
compareTo( ) in Java
Method Overloading (function overloading) in Java
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Most Emailed Articles (in last 30 days)
Components of program
How to Send SMS using Java Program (full code sample included)
XML and Java - Parsing XML using Java Tutorial
Why java is important to the Internet
How to use ArrayList in Java
Execute system commands in a Java Program
FileReader and FileWriter example program in Java
Recursion in java
indexOf( ) and lastIndexOf( ) in Java
Method Overloading (function overloading) in Java
What is Java?
compareTo( ) in Java
History of Object
Sample Java Script that displays a movable clock
How to use Iterator in Java