Please enable JavaScript.
Coggle requires JavaScript to display documents.
INTRODUCTION TO PROGRAMMING - Coggle Diagram
INTRODUCTION TO PROGRAMMING
What is a Translator
A program that translates one programming language ( source code ) into machine code ( object code )
Definition
of programming language
A set of words, abbreviations, and symbol that enables a programmer to communicate instructions to a computer
What is programming paradigm
An approach to solving programming problems or a way which a computer language looks at the problem to be solved
Types of programming paradigm
Procedural Programming
Object-oriented Programming
Logic Programming
Procedural Programming
represented as logical structure
Using top-down approach
Flow of execution of the programming is dependent on the structure of the program
Software developer writes instructions using English-like words that tell the computer what to accomplish and how to do it
Object-oriented programming
Using bottom-up approach
The basic entry is object. Each computation is performed using object only
The program is written as a collection of objects which communicate with each other
Logic Programming
Written in a set of sentences in logical form , expressing facts and rules about some problem domain
Program that are based on facts and that based on true assumptions , the program returns a true value to us
2 Types of Programming language
High-level language
Low-level language
Low level language
Machine language consists of 0s and 1s
machine dependent
machine language is the only language that computer is capable of understanding
does not need translator or interpreter
example : Machine language , Assembly language
High-level language
Machine independent
must be converted to machine language before executed
easier to read and understand ( English-like )
Need translator or interpreter
example : C++ , Cobol , Fortran
What is compiler
A program that translates the entire source program (high level programming language ) to machine language
example : C++ , Java
What is Interpreter
A program that translates source code one line at a time into Machine Language as the program is running
What is assembly
A program that translates Assembly Language into Machine Language