b_book1.gif (162 bytes) Development Software
Examples | Characteristics | Users | Compiled | Interpreted | Procedural structure | Samples | Selecting
MS Visual Basic | Java | Basic

Third generation software languages

Late 1950's - High Level Languages

Sample

/* HELLO.C -- Hello, world in C*/
#include <stdio.h>
main()
{
printf("Hello, world\n");
}

[Cartoon: lapdog]

Examples


Characteristics

Late 1950's

Translated by;


Users


Compiled Code

Code is typed into a text file

This code is then "Compiled" and "Linked" to produce a "Machine code" program.

This machine code program is then executed by the computer.

May be likened to a speech being typed out, then given to a translator to convert to another language. The text of the converted speech is then distributed.

Mush faster than interpreted code.


Interpreted Code

A program is used to enter the "code".

Each line of code is then "interpreted" before execution by the computer.

May be likened to a speech being delivered with the aid of an interpreter. As each sentence is completed the interpreter converts it and relays it to the audience.

Much slower than compiled code.

Commonly used in "BASIC", though with the advent of faster computers, a program is now usually compiled.


Procedural structure

HOW the task needs to be accomplished

Programming Languages


Samples

Hello World in Pascal, Basic and COBOL

Pascal

{ HELLO.PAS -- Hello, world }
program HelloWorld;
begin

writeln('Hello, world');

end.

BASIC

BASIC (Beginners All-purpose Symbolic Code)

REM HELLO.BAS - Hello World
PRINT "Hello, World"
END

 

The following instructions are entered into the BASIC development software

INPUT "Enter Your Name, and Press [Enter] ", A$
PRINT "Hello "+A$

When interpreted by the computer ( You type in the bit in red, [Enter] is the [Enter] key )

Enter Your Name, and Press [Enter] ? Michael[Enter]
Hello Michael

C

/* HELLO.C -- Hello, world in C*/
#include <stdio.h>
main()
{
printf("Hello, world\n");
}

 

The world's last C bug

while (1) { status = GetRadarInfo(); if status = 1) LaunchMissiles(); }

 

[Ref] (Keall 1995, Nov)

COBOL

COBOL (Common Business Oriented Language)

IDENTIFICATION DIVISION.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
A0000-PRINT-PARAGRAPH.

DISPLAY "Hello, World".
STOP RUN.


Selecting a language

Selecting a Programming Language Made Easy

==========================================

Daniel Solomon & David Rosenblueth
Department of Computer Science, University of Waterloo
Waterloo, Ontario, Canada N2L 3G1

With such a large selection of programming languages, it can be difficult to choose one for a particular project. Reading the manuals to evaluate the languages is a time-consuming process. On the other hand, most people already have a fairly good idea of how various automobiles compare. So in order to assist those trying to choose a language, we have prepared a chart that matches programming languages with comparable automobiles:

[Rev 26/02/99] 25/6/97 © 1997-99 V/2-Com (Verhaart), P O Box 8415, Havelock North, New Zealand.