Professional Documents
Culture Documents
CH 12 PDF
CH 12 PDF
1
Mr.Mind 01021476983
Keywords and parameters are combined with punctuation according to a series of
rules called Syntax.
Programming Languages Classes:التصنيفات
1-Low-level Languages
It includes commands specific to a particular CPU or microprocessor.
Ex: machine language and assembly language
2- High-level Languages
It uses command words and grammar based on human languages to provide what
computer scientists.
Ex: BASIC, Java, Ada, and C++
A single high-level command does the work of multiple low level commands.
Programming Languages Generations:
1st Generation
Machine languages were the first languages available for programming
computers.
A machine language is specific to a particular CPU or microprocessor family.
2nd Generation
An assembly language allows programmers to use abbreviated command words,
called op codes, such as LDA for load, rather than the 1s and 0s used in machine
languages.
It is machine specific
3rd Generation
It used easy-to-remember command words, such as PRINT and INPUT, to take the
place of several lines of assembly language op codes or lengthy strings of machine
language 0s and 1s.
Ex: COBOL, Fortran, Pascal ,BASIC, C and C++, Objective-C, java.
2
Mr.Mind 01021476983
4th Generation
It used more closely resemble human languages, or natural languages, than do
third-generation languages.
It eliminates many of the strict punctuation and grammar rules that complicate
third-generation languages.
Ex: SQL and RPG.
A single command written in a fourth-generation language can replace many lines
of third generation code.
5th Generation
It allow programmers to use graphical or visual tools to construct programs
instead of typing lines of code.
Programming paradigm refers to a way of conceptualizing and structuring the
tasks a computer performs.الطريقه التي يبدأ بها المبرمج هيكله و بناء التاسك للكمبيوتر
Is a style of programming التعريف بشكل مختصر
Some programming languages support a single paradigm. Other programming
languages-referred to as multi-paradigm languages-support more than one
paradigm.
Paradigm Languages
Event-driven Visual Basic, C#
Procedural C, BASIC, Pascal, COBOL, Fortran, Ada
Object oriented Smalltalk, C++, Java, Scratch
Declarative Prolog
3
Mr.Mind 01021476983
Step 2: Design the program
Develop a detailed logic plan using a tool such as pseudocode, flowcharts, object
structure diagrams.
Step 3: Code the program
Translate the design into an application using a programming language or
application development tool by creating the user interface and writing code;
include internal documentation – comments and remarks within the code that
explain the purpose of code statements.
Step 4: Test and debug the program
Test the program, finding and correcting errors (debugging) until it is error free.
Step 5: Formalize the solution
Review and revise internal documentation; formalize and complete end-user
(external) documentation.
Step 6: Maintain the program
Provide training and support to end users; correct any unanticipated errors that
emerge and identify user-requested modifications.
an algorithm is a set of steps for carrying out a task that can be written down and
implemented.
algorithm for a computer program is a set of steps that explains how to begin
with known information specified in a problem statement and how to manipulate
that information to arrive at a solution.
Algorithms are usually written in a format that is not specific to a particular
programming language.
The most well-known methods used to write an algorithm are: structured English,
pseudocode, and flowcharts.
Structured English is a subset of the English language with a limited selection of
sentence structures that reflect processing activities.
4
Mr.Mind 01021476983
Pseudocode is a notational system for algorithms that has been described as a
mixture of English and your favorite programming language.
Flowchart is a graphical representation of the way a computer should progress
from one instruction to the next when it performs a task.
Programmers can use a text editor, program editor, or VDE to code computer
programs.
A text editor is any word processor that can be used for basic text editing tasks.
A program editor is a type of text editor specially designed for entering code for
computer programs.
A VDE (visual development environment) provides programmers with tools to
build substantial sections of a program by pointing and clicking rather than typing
lines of code.
Testing often consists of running the program and entering test data to see
whether the program produces correct results.
If testing does not produce the expected results, the program contains an error,
sometimes called a bug.
5
Mr.Mind 01021476983
Syntax errors occurs when an instruction does not
follow the syntax rules, or grammar
6
Mr.Mind 01021476983