09/14/2021 Created by Omeed Mustafa Third and Fourth generation programming language 1st Stage M.Sc. (Computer Science)
A computer is a computational device which is used to process the data under the control of a computer program. Program is a sequence of instruction along with data. While executing the program, raw data is processed into a desired output format. These computer programs are written in a programming language which are high level languages. High level languages are nearly human languages which are more easy then Introduction
types of programming languages
A third-generation programming language (3GL) is a programming language that is machine-independent. Programs written in a 3GL can be compiled to run on many different devices. Compare this to a first-generation programming language (machine code), or a second-generation programming language (assembly language). In those languages, the program is written specifically for a certain type of CPU and instruction set. WHAT IS third-generation programming language ?
3GLs first appeared in the 1950s with the development of FORTRAN, ALGOL, and COBOL. These languages are considered "high-level," even though they are a much lower-level than modern high-level programming languages such as C++, Ruby, and JavaScript. First appearance of 3GL
High level languages are grouped in two categories based on execution model – compiled or interpreted languages.
Step-by-step statements Refraining programmers from high-level Abstraction of problems Burdening the productivity of programmers Cannot communicate directly with the hardware. It is easy to develop, learn and understand the program. As the program written in these languages is less prone to errors they are easy to maintain. The program written in these languages can be developed in very less time as compared to the first and second generation language. The advantages and disadvantages advantages Drawbacks
Examples of High-level Language ADA C C++ JAVA BASIC COBOL PASCAL PYTHON
The fourth-generation languages 4GL, are languages that consist of statements similar to statements in a human language. Fourth generation languages are commonly used in database programming and scripts examples include Perl, PHP, Python, Ruby, and SQL. A non-procedural programming language that requires less coding than lower-level languages. Command-line languages that come with operating systems and database management systems (DBMSs) are fourth-generation languages (4GLs), as are query languages and report writers. Any language with English-like commands that does not require traditional input-process-output logic falls into this category.
Features of Fourth Generation Computers Features of fourth generation computer areas follows: This generation of computer used Large Scale Integration(L.S.I.) and Very Large Scale Integration(V.L.S.I.). The storage capacity was very much increased. This generation computers were very user friendly. Input-Output devices were versatile. Processing speed was 1 billion instruction per second. Comparatively smaller in size and greater reliability.
WHY 4GL? They can be easily learnt since there are relatively few commands Function and structures . The cost of software development Alter and maintain Ease of use Simplicity of design and implement
The fourth-generation languages 3GL 4GL The stepwise instructions are written. Requirement oriented instruction is written. Difficult to learn. Easy to learn. Difficult to debugging. Easy to be debugging. Typically file oriented. Typically, database oriented. Requires specification of how to perform the task. Requires specification of what task is to be performed.
The programs developed in the 4GLs are executed at a slower speed by the CPU. The programs developed in these programming languages need more space in the memory of the computer system. System development is faster. Program maintenance is easier. End user can often develop their own applications. Programming productivity is increased. The advantages and disadvantages Advantages Drawbacks