ICT--.Design by : Mrs.Siti 2009
5.0 PROGRAMMING
Basic Programming Concepts
Program Development
Definition of program & program language
A computer program is a series of organized instructions that directs a
computer to perform task.
Programming language is a set of words, symbols and codes that enables
human to communicate with computers.
Programming is a creation of a set of commands or instructions which directs a
computer in carrying out a task.
Level & generation of Programming Language
Low-level Languages High-level Languages
First Generation
Ex: Machine Language
Third Generation
Ex: COBOL, BASIC, C , ADA, C++
Second Generation
Ex: Assembly Language
Fourth Generation
Ex: Report Generators, Query Language,SQL,
NOMAD,FOCUS
Fifth Generation
Ex: Natural Language,Prolog, Mercury
Programming Language Approaches
Structured Object-oriented
Use top-down model – the whole
program is broken down into smaller
sections that are known as modules
Use object- combines data with functions
to create objects.
Translation method : assembler, interpreter & compiler
Assembler Interpreter Compiler
A computer program for
translating assembly
language
Ex: MACRO-80
Assembler, Microsoft
MASM
Is used to interpret and
execute program directly
from its source without
compiling it first.
Ex: BASIC, Logo,
Smalltalk
The source code (in text
format) will be converted
into machine code which
is a file consisting of
binary machine code that
can be executed on a
computer.
Control Structures
Selection Control Sequence Control
Execution Flow Executes statement one
by one in linear or
consecutive order
Executes different
statements for different
conditions
Usage Use when want to
execute code line by
line
Do not use the
decision symbols
Use when want to
implement decision
making process in a
program
Use the decision
symbols
Program Development Phases:
i. Problem Analysis
ii. Program Design
iii. Coding
iv. Testing & debugging
v. Documentation
Basic elements in programming :
Constants Variables Data Types Operators
Value is not
changeable
during the
course of the
program
Values can
be changed
anytime
during the
course of the
program
Integer
Ex: 18,79,21
Double
Ex: 41.5, 31.4
String
Ex: Amira, Alex
Boolean
Ex: TRUE,FALSE
Mathematical Operator:
Plus (+)
Minus (-)
Equal (=)
Divide ( / )
Multiply (*)
Use constant
when you
want to
declare
something
that won’t be
changed
midway in
your program
execution
Use variable
to store data
that may or
will change
during the
running of
the program
Relational Operator:
Ex : >, <, =, <=, >=
Logical Operators:
AND, OR and NOT

More Related Content

PPTX
C programming
PDF
The Programming Process
PPTX
Computer programming
PPTX
Translators(Compiler, Assembler) and interpreter
DOC
Notacd07
PPTX
PPT
Chapter 5( programming) answer
PPTX
Introduction to computer programming
C programming
The Programming Process
Computer programming
Translators(Compiler, Assembler) and interpreter
Notacd07
Chapter 5( programming) answer
Introduction to computer programming

What's hot (20)

PPT
Lec 1 intro
PPT
Intro To Programming Concepts
PPTX
Types of system software
PDF
Introduction to Computer Programming
DOCX
ICT, Importance of programming and programming languages
PPT
The Programmer Life Cycle
PPTX
Compiler vs interpreter
PPTX
Principles of programming
DOC
Assembler
PPTX
Chapter 5
PPT
Basic Programming Concept
PPTX
Presentation1 (1)
PPT
270 1 c_intro_up_to_functions
PPTX
Planning to computer program(southeast university)
PPTX
Programming languages,compiler,interpreter,softwares
PPTX
Introduction to programming
PPTX
Compiler vs Interpreter-Compiler design ppt.
PPT
Programming
PPTX
Programming in c
Lec 1 intro
Intro To Programming Concepts
Types of system software
Introduction to Computer Programming
ICT, Importance of programming and programming languages
The Programmer Life Cycle
Compiler vs interpreter
Principles of programming
Assembler
Chapter 5
Basic Programming Concept
Presentation1 (1)
270 1 c_intro_up_to_functions
Planning to computer program(southeast university)
Programming languages,compiler,interpreter,softwares
Introduction to programming
Compiler vs Interpreter-Compiler design ppt.
Programming
Programming in c
Ad

Similar to Programming content (20)

DOCX
WEBSITE DEVELOPMENT
PPT
Intro1
PPTX
Software programming and development
PPTX
Programming C ppt for learning foundations
PPTX
Computer Hardware Technology PowerPoint Templates (1).pptx
PPT
Compiler Construction introduction
PPTX
UNIT 2 ECSE-2.pptx
PPTX
Introduction to computers, input and output devices
PPTX
Chapter 1.pptx compiler design lecture note
PDF
Foundry Analysis and sec lectire 01 .pdf
PPTX
Trend of Visual Programming Language
PPT
Introduction to Compiler design
PPTX
Unit 1_Evaluation Criteria_session 3.pptx
PPTX
1. C_Introductionnnnnnnnnnnnnnnnnnnnn.pptx
PPTX
PRESENTATION OF students learning outcomes.pptx
PPTX
Unit1 principle of programming language
PPTX
Introduction of C Programming
PDF
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
PPTX
Insight into progam execution ppt
PPTX
Chapter 5-programming
WEBSITE DEVELOPMENT
Intro1
Software programming and development
Programming C ppt for learning foundations
Computer Hardware Technology PowerPoint Templates (1).pptx
Compiler Construction introduction
UNIT 2 ECSE-2.pptx
Introduction to computers, input and output devices
Chapter 1.pptx compiler design lecture note
Foundry Analysis and sec lectire 01 .pdf
Trend of Visual Programming Language
Introduction to Compiler design
Unit 1_Evaluation Criteria_session 3.pptx
1. C_Introductionnnnnnnnnnnnnnnnnnnnn.pptx
PRESENTATION OF students learning outcomes.pptx
Unit1 principle of programming language
Introduction of C Programming
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
Insight into progam execution ppt
Chapter 5-programming
Ad

More from Bazlin Ahmad (20)

PDF
Class2
DOCX
Rf.cwla5 s11.1
DOCX
Template s07.1 [2015]
DOCX
Template s05.1
DOCX
Hsp nasa taip column i think
DOCX
Cover s07.1
DOCX
Cover s05.1
PDF
Bukulatihanict la1
DOCX
Bukulatihanict la1
PPT
PPT
Tugas tugas komputer
PPT
Tmk dan kemasyarakat
PPT
Perkakasan komputer
PPT
Etika & penyalahgunaan
PDF
Bidang pembelajaran-4-3
PDF
Bidang pembelajaran-4-2
PDF
Bidang pembelajaran-1-3-tingkatan-4
PDF
Bidang pembelajaran-1-2-tingkatan-4
PDF
Bidang pembelajaran-1-1-tingkatan-4
PPTX
Slot1tmk 140124182837-phpapp01
Class2
Rf.cwla5 s11.1
Template s07.1 [2015]
Template s05.1
Hsp nasa taip column i think
Cover s07.1
Cover s05.1
Bukulatihanict la1
Bukulatihanict la1
Tugas tugas komputer
Tmk dan kemasyarakat
Perkakasan komputer
Etika & penyalahgunaan
Bidang pembelajaran-4-3
Bidang pembelajaran-4-2
Bidang pembelajaran-1-3-tingkatan-4
Bidang pembelajaran-1-2-tingkatan-4
Bidang pembelajaran-1-1-tingkatan-4
Slot1tmk 140124182837-phpapp01

Recently uploaded (20)

PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Hazard Identification & Risk Assessment .pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PPTX
Education and Perspectives of Education.pptx
PDF
Race Reva University – Shaping Future Leaders in Artificial Intelligence
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
advance database management system book.pdf
What if we spent less time fighting change, and more time building what’s rig...
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Hazard Identification & Risk Assessment .pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
AI-driven educational solutions for real-life interventions in the Philippine...
FORM 1 BIOLOGY MIND MAPS and their schemes
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
Education and Perspectives of Education.pptx
Race Reva University – Shaping Future Leaders in Artificial Intelligence
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
HVAC Specification 2024 according to central public works department
advance database management system book.pdf

Programming content

  • 1. ICT--.Design by : Mrs.Siti 2009 5.0 PROGRAMMING Basic Programming Concepts Program Development Definition of program & program language A computer program is a series of organized instructions that directs a computer to perform task. Programming language is a set of words, symbols and codes that enables human to communicate with computers. Programming is a creation of a set of commands or instructions which directs a computer in carrying out a task. Level & generation of Programming Language Low-level Languages High-level Languages First Generation Ex: Machine Language Third Generation Ex: COBOL, BASIC, C , ADA, C++ Second Generation Ex: Assembly Language Fourth Generation Ex: Report Generators, Query Language,SQL, NOMAD,FOCUS Fifth Generation Ex: Natural Language,Prolog, Mercury Programming Language Approaches Structured Object-oriented Use top-down model – the whole program is broken down into smaller sections that are known as modules Use object- combines data with functions to create objects. Translation method : assembler, interpreter & compiler Assembler Interpreter Compiler A computer program for translating assembly language Ex: MACRO-80 Assembler, Microsoft MASM Is used to interpret and execute program directly from its source without compiling it first. Ex: BASIC, Logo, Smalltalk The source code (in text format) will be converted into machine code which is a file consisting of binary machine code that can be executed on a computer. Control Structures Selection Control Sequence Control Execution Flow Executes statement one by one in linear or consecutive order Executes different statements for different conditions Usage Use when want to execute code line by line Do not use the decision symbols Use when want to implement decision making process in a program Use the decision symbols Program Development Phases: i. Problem Analysis ii. Program Design iii. Coding iv. Testing & debugging v. Documentation Basic elements in programming : Constants Variables Data Types Operators Value is not changeable during the course of the program Values can be changed anytime during the course of the program Integer Ex: 18,79,21 Double Ex: 41.5, 31.4 String Ex: Amira, Alex Boolean Ex: TRUE,FALSE Mathematical Operator: Plus (+) Minus (-) Equal (=) Divide ( / ) Multiply (*) Use constant when you want to declare something that won’t be changed midway in your program execution Use variable to store data that may or will change during the running of the program Relational Operator: Ex : >, <, =, <=, >= Logical Operators: AND, OR and NOT