SlideShare uma empresa Scribd logo
1 de 24
Chapter : Basic Programming Concepts   Is a series of organized instructions that directs a computer  to perform tasks. Without programs, computer are useless  PROGRAM  Is a creation of a set of commands or instruction which directs a computer in carrying out a task. A set of words, symbols and codes that enables humans to  Communication with computers. Someone who writes computer programs.  PROGRAMMING  PROGRAMMING LANGUAGE PROGRAMMER
GENERATIONS OF PROGRAMMING LANGUAGE  Provides little or no abstraction from  Computer’s microprocessor. More abstract, easier to use, &  more portable across platforms. Low level PL High Level PL   1 GL Machine  Language Eg: Binary code  2 GL Assembly  Language 5 GL Visual programming Language / natural  language  Eg: Prolog,  Mercury 4 GL Non-procedural  Language  Eg: SQL, NOMAD, FOCUS  3 GL Procedural  Language  Eg: PASCAL, FORTRAN, BASIC, COBOL, C++..
Open programming language (OPL) Is an embedded programming language found in portable devices  that run the Symbian Operating system. Eg: mobile telephones and PDAs.
Programming Approaches   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Ada,  Pascal, Fortran Smalltalk, Java, Visual Basic, C++ Structured Programming  Examples:  Examples:
Translator  Computer program for  Translating assembly language  Into machine  Language   Used to interpret & execute Program direct  from its source  Without compiling  it first.  Source code will be Converted into  Machine Code which is a file consisting Of binary machine code that is executed On a computer.  If any errors, it record  them in the  program listing file. BASIC,  LOGO,  SMALLTALK MACRO-80, Microsoft MASM C++, PASCAL, COBOL  Examples  Examples  Examples  Assembler  interpreter  Compiler
5 Basic Element in programming  Data type  Variables Constants Operators Control  structure
Constant & Variables  Const  Margin = 10   Differences between constant and variables   Constant  variables   Margin = 10   Variable  ‘ Definition  Characteristics  Usage  Examples Elements  Is a virtual data container that  Stores information. Is a virtual data container that  Stores information. Value is not changeable during the Course of the program Value can be changed anytime during the Course of the program When you want to declare something that won’t change  midway in your program  execution.  Use variable to store data that  May or will change during the  Running of the program.
Data Types  Definition: determines the type of data a variable can store. Data types  Definition  Examples  Sample usage  Integer   Number value does not have fractional part  0, 1, 25, 99 …. Dim  Double  Contain a fractional part 41.5, 31.4   String  Sequence of characters  Kok Leong, Amira String   Boolean  Consists either True or False  TRUE, FALSE
Operators  Operators  Definition  Examples/ symbols  Mathematical  operators Are notations that tell the computer  To perform mathematic operations  +, -, *, / , Relational  Operators Logical Operators  Performs comparison between  Two elements  Performs logical operations , Checking the condition of two  Boolean values.  =, >,<, <=, >= AND, OR, NOT
Examples A = B A = B A = B A >= B A <= B Equal to Greater than Less than Greater than or equal to Less than or equal to
 
 
Logical operator  AND  OR  NOT “ NOT” OPERATORS  “ AND” OPERATORS  “ OR” OPERATORS  1 REPRESENT “TRUE”, 0 REPRESENT “FALSE” VALUE  TRUTH  VALUE  X  Y X AND Y 0  0  0 0  1 0 1  0 0 1  1 1 VALUE  TRUTH  VALUE  X  Y X OR Y 0  0  0 0  1 1 1  0 1 1  1 1 VALUE  TRUTH  VALUE  X  NOT X 0  1 1  0
PSEUDO CODES  ,[object Object],[object Object],[object Object],[object Object]
 
 
Flow chart   Begin  End  READ Length, Width, Height  DISPLAY Volume of Cuboid  Volume of cuboid= Length* Width* Height
ELEMENTS IN FLOWCHART Elements  Description Terminator Shows the beginning or end of a program Flowline and arrowhead Connect symbols and indicate the sequences of operation Input or Output Shows either an input operation (an INPUT from the user) or an output operation (PRINT some message) Process Process to be carried out (e.g calculation) Decision Shows a decision (or choice) to be made. The program should continue along one of two routes (e.g if…else)
Control structures Definition: is a structure of statement in programming that allows the programmer to control  the flow of a program.   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Sequence  Control   Draw flow chart  For sequence control  True and false  Repeat while some  Condition remains true
Differentiate between selection control and sequence control  Types of  control structure  Execution flow  Usage  Flow chart  Sequence control  Selection control  m/s 33 chapter programming  Linear execution  Execute line by line  Execute different  Statement for  Different conditions To implement decision  Making.
DEVELOP A PROGRAM ,[object Object]
PROGRAM DEVELOPMENT   5 MAIN PHASES Of PROGRAM DEVELOPMENT  PROBLEM ANALYSIS PHASE ,[object Object],PROGRAM DESIGN PHASE ,[object Object],Coding phase ,[object Object],[object Object],Testing and debugging phase Documentation phase ,[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Errors
The latest type of programming languages  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Mais conteúdo relacionado

Mais procurados

Pluraliti dan masyarakat pluralistik di malaysia (terkini)
Pluraliti dan masyarakat pluralistik di malaysia (terkini)Pluraliti dan masyarakat pluralistik di malaysia (terkini)
Pluraliti dan masyarakat pluralistik di malaysia (terkini)
Norisuwanah Jaffar
 
Perlembagaan negara
Perlembagaan negaraPerlembagaan negara
Perlembagaan negara
jpenmalaysia
 
Implikasi falsafah pendidikan kebangsaan & falsafah pendidikan guru
Implikasi falsafah pendidikan kebangsaan & falsafah pendidikan guruImplikasi falsafah pendidikan kebangsaan & falsafah pendidikan guru
Implikasi falsafah pendidikan kebangsaan & falsafah pendidikan guru
Megala Silva Raju
 
Penggunaan bahasa slanga dalam kalangan remaja
Penggunaan bahasa slanga dalam kalangan remajaPenggunaan bahasa slanga dalam kalangan remaja
Penggunaan bahasa slanga dalam kalangan remaja
Kota Bharu
 

Mais procurados (12)

Bahasa Melayu Kuno pada Batu Bersurat
Bahasa Melayu Kuno pada Batu BersuratBahasa Melayu Kuno pada Batu Bersurat
Bahasa Melayu Kuno pada Batu Bersurat
 
Ferdinand de Saussure nota ujian
Ferdinand de Saussure nota ujianFerdinand de Saussure nota ujian
Ferdinand de Saussure nota ujian
 
Variasi bahasa
Variasi bahasaVariasi bahasa
Variasi bahasa
 
Pluraliti dan masyarakat pluralistik di malaysia (terkini)
Pluraliti dan masyarakat pluralistik di malaysia (terkini)Pluraliti dan masyarakat pluralistik di malaysia (terkini)
Pluraliti dan masyarakat pluralistik di malaysia (terkini)
 
Perlembagaan negara
Perlembagaan negaraPerlembagaan negara
Perlembagaan negara
 
Bab 4
Bab 4Bab 4
Bab 4
 
Pantun
PantunPantun
Pantun
 
Huruf-huruf dalm bahasa melayu
Huruf-huruf dalm bahasa melayuHuruf-huruf dalm bahasa melayu
Huruf-huruf dalm bahasa melayu
 
BAB 2: HUKUM ADAT DAN UNDANG2.
BAB 2: HUKUM ADAT DAN UNDANG2.BAB 2: HUKUM ADAT DAN UNDANG2.
BAB 2: HUKUM ADAT DAN UNDANG2.
 
Konsep variasi bahasa
Konsep variasi bahasaKonsep variasi bahasa
Konsep variasi bahasa
 
Implikasi falsafah pendidikan kebangsaan & falsafah pendidikan guru
Implikasi falsafah pendidikan kebangsaan & falsafah pendidikan guruImplikasi falsafah pendidikan kebangsaan & falsafah pendidikan guru
Implikasi falsafah pendidikan kebangsaan & falsafah pendidikan guru
 
Penggunaan bahasa slanga dalam kalangan remaja
Penggunaan bahasa slanga dalam kalangan remajaPenggunaan bahasa slanga dalam kalangan remaja
Penggunaan bahasa slanga dalam kalangan remaja
 

Destaque

Bidang pembelajaran 4.3 Tingkatan 5
Bidang pembelajaran  4.3 Tingkatan 5Bidang pembelajaran  4.3 Tingkatan 5
Bidang pembelajaran 4.3 Tingkatan 5
MOE
 
Bidang pembelajaran 4.1 Tingkatan 5
Bidang pembelajaran 4.1 Tingkatan 5Bidang pembelajaran 4.1 Tingkatan 5
Bidang pembelajaran 4.1 Tingkatan 5
MOE
 
Bidang pembelajaran 4.2 Tingkatan 5
Bidang pembelajaran 4.2 Tingkatan 5Bidang pembelajaran 4.2 Tingkatan 5
Bidang pembelajaran 4.2 Tingkatan 5
MOE
 
Ict form 4 chapter 1(answer)
Ict form 4 chapter 1(answer)Ict form 4 chapter 1(answer)
Ict form 4 chapter 1(answer)
smkengkilili2011
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
Kak Yong
 
ICT Form 4 MAY 2015 test paper
ICT Form 4 MAY 2015 test paperICT Form 4 MAY 2015 test paper
ICT Form 4 MAY 2015 test paper
kwongliik
 
Daily lesson plan ict form 5
Daily lesson plan ict form 5Daily lesson plan ict form 5
Daily lesson plan ict form 5
suefee
 
Chapter 2 computer system
Chapter 2 computer systemChapter 2 computer system
Chapter 2 computer system
Aten Kecik
 
Nota Padat ICT SPM - Form 4
Nota Padat ICT SPM - Form 4Nota Padat ICT SPM - Form 4
Nota Padat ICT SPM - Form 4
D.J Md Thani
 
Python Tools for Visual Studio: Python na Microsoftovom .NET-u
Python Tools for Visual Studio: Python na Microsoftovom .NET-uPython Tools for Visual Studio: Python na Microsoftovom .NET-u
Python Tools for Visual Studio: Python na Microsoftovom .NET-u
Nikola Plejic
 

Destaque (20)

La5 programming
La5  programmingLa5  programming
La5 programming
 
La4b multimedia notacd09
La4b multimedia notacd09La4b multimedia notacd09
La4b multimedia notacd09
 
Bidang pembelajaran 4.3 Tingkatan 5
Bidang pembelajaran  4.3 Tingkatan 5Bidang pembelajaran  4.3 Tingkatan 5
Bidang pembelajaran 4.3 Tingkatan 5
 
Bidang pembelajaran 4.1 Tingkatan 5
Bidang pembelajaran 4.1 Tingkatan 5Bidang pembelajaran 4.1 Tingkatan 5
Bidang pembelajaran 4.1 Tingkatan 5
 
Bidang pembelajaran 4.2 Tingkatan 5
Bidang pembelajaran 4.2 Tingkatan 5Bidang pembelajaran 4.2 Tingkatan 5
Bidang pembelajaran 4.2 Tingkatan 5
 
Ict form 4 chapter 1(answer)
Ict form 4 chapter 1(answer)Ict form 4 chapter 1(answer)
Ict form 4 chapter 1(answer)
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
ICT Form 4 MAY 2015 test paper
ICT Form 4 MAY 2015 test paperICT Form 4 MAY 2015 test paper
ICT Form 4 MAY 2015 test paper
 
Daily lesson plan ict form 5
Daily lesson plan ict form 5Daily lesson plan ict form 5
Daily lesson plan ict form 5
 
Nota ict form 5
Nota ict form 5Nota ict form 5
Nota ict form 5
 
Ict topic 4
Ict topic 4Ict topic 4
Ict topic 4
 
Chapter 2 computer system
Chapter 2 computer systemChapter 2 computer system
Chapter 2 computer system
 
Nota multimedia
Nota multimediaNota multimedia
Nota multimedia
 
Nota Padat ICT SPM - Form 4
Nota Padat ICT SPM - Form 4Nota Padat ICT SPM - Form 4
Nota Padat ICT SPM - Form 4
 
Part2 database connection service based using vb.net
Part2 database connection service based using vb.netPart2 database connection service based using vb.net
Part2 database connection service based using vb.net
 
What&rsquo;s new in Visual C++
What&rsquo;s new in Visual C++What&rsquo;s new in Visual C++
What&rsquo;s new in Visual C++
 
Debugging in visual studio (basic level)
Debugging in visual studio (basic level)Debugging in visual studio (basic level)
Debugging in visual studio (basic level)
 
Python Tools for Visual Studio: Python na Microsoftovom .NET-u
Python Tools for Visual Studio: Python na Microsoftovom .NET-uPython Tools for Visual Studio: Python na Microsoftovom .NET-u
Python Tools for Visual Studio: Python na Microsoftovom .NET-u
 
Logical Programming With ruby-prolog
Logical Programming With ruby-prologLogical Programming With ruby-prolog
Logical Programming With ruby-prolog
 
Part 5 create sequence increment value using negative value
Part 5 create sequence increment value using negative valuePart 5 create sequence increment value using negative value
Part 5 create sequence increment value using negative value
 

Semelhante a Chapter 5( programming) answer

Programming content
Programming contentProgramming content
Programming content
Bazlin Ahmad
 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
La5 Basicelement
La5 BasicelementLa5 Basicelement
La5 Basicelement
Cma Mohd
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
Hattori Sidek
 
Program logic and design
Program logic and designProgram logic and design
Program logic and design
Chaffey College
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
Ashesh R
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
Chaffey College
 
Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
hermiraguilar
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
vithyanila
 

Semelhante a Chapter 5( programming) answer (20)

Programming content
Programming contentProgramming content
Programming content
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
La5 Basicelement
La5 BasicelementLa5 Basicelement
La5 Basicelement
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
Program logic and design
Program logic and designProgram logic and design
Program logic and design
 
UNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptxUNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptx
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
 
Chapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdfChapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdf
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
C Programming Unit-1
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
 
Training 8051Report
Training 8051ReportTraining 8051Report
Training 8051Report
 
Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
 
Programming concepts By ZAK
Programming concepts By ZAKProgramming concepts By ZAK
Programming concepts By ZAK
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 

Mais de smkengkilili2011 (20)

Chapter 6 (information system) answer
Chapter 6 (information system) answerChapter 6 (information system) answer
Chapter 6 (information system) answer
 
Computer network & communication answer
Computer network & communication answerComputer network & communication answer
Computer network & communication answer
 
Chapter 2(answer)2
Chapter 2(answer)2Chapter 2(answer)2
Chapter 2(answer)2
 
Acf.cw.la6.s13.1
Acf.cw.la6.s13.1Acf.cw.la6.s13.1
Acf.cw.la6.s13.1
 
Acf.cw.la6.s12.1
Acf.cw.la6.s12.1Acf.cw.la6.s12.1
Acf.cw.la6.s12.1
 
Acf cw la5 s11 1
Acf cw la5 s11 1Acf cw la5 s11 1
Acf cw la5 s11 1
 
Acf cw la5 s10 1
Acf cw la5 s10 1Acf cw la5 s10 1
Acf cw la5 s10 1
 
Acf cw la4 s09 1
Acf cw la4 s09 1Acf cw la4 s09 1
Acf cw la4 s09 1
 
Acf cw la4 s08 1
Acf cw la4 s08 1Acf cw la4 s08 1
Acf cw la4 s08 1
 
Acf.cw.la3.s07.1
Acf.cw.la3.s07.1Acf.cw.la3.s07.1
Acf.cw.la3.s07.1
 
Acf.cw.la3.s06.2
Acf.cw.la3.s06.2Acf.cw.la3.s06.2
Acf.cw.la3.s06.2
 
Acf cw la2 s05 1
Acf cw la2 s05 1Acf cw la2 s05 1
Acf cw la2 s05 1
 
Acf cw la2 s05 1
Acf cw la2 s05 1Acf cw la2 s05 1
Acf cw la2 s05 1
 
Acf cw la2 s04 1
Acf cw la2 s04 1Acf cw la2 s04 1
Acf cw la2 s04 1
 
Acf cw la2 s03 1
Acf cw la2 s03 1Acf cw la2 s03 1
Acf cw la2 s03 1
 
La2 computer systems
La2 computer systemsLa2 computer systems
La2 computer systems
 
Acf.cw.la1.s02.1
Acf.cw.la1.s02.1Acf.cw.la1.s02.1
Acf.cw.la1.s02.1
 
Acf.cw.la1.s02.1
Acf.cw.la1.s02.1Acf.cw.la1.s02.1
Acf.cw.la1.s02.1
 
Acf.cw.la1.s01.2
Acf.cw.la1.s01.2Acf.cw.la1.s01.2
Acf.cw.la1.s01.2
 
La4a multimedia notacd10
La4a multimedia  notacd10La4a multimedia  notacd10
La4a multimedia notacd10
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 

Chapter 5( programming) answer

  • 1. Chapter : Basic Programming Concepts Is a series of organized instructions that directs a computer to perform tasks. Without programs, computer are useless PROGRAM Is a creation of a set of commands or instruction which directs a computer in carrying out a task. A set of words, symbols and codes that enables humans to Communication with computers. Someone who writes computer programs. PROGRAMMING PROGRAMMING LANGUAGE PROGRAMMER
  • 2. GENERATIONS OF PROGRAMMING LANGUAGE Provides little or no abstraction from Computer’s microprocessor. More abstract, easier to use, & more portable across platforms. Low level PL High Level PL 1 GL Machine Language Eg: Binary code 2 GL Assembly Language 5 GL Visual programming Language / natural language Eg: Prolog, Mercury 4 GL Non-procedural Language Eg: SQL, NOMAD, FOCUS 3 GL Procedural Language Eg: PASCAL, FORTRAN, BASIC, COBOL, C++..
  • 3. Open programming language (OPL) Is an embedded programming language found in portable devices that run the Symbian Operating system. Eg: mobile telephones and PDAs.
  • 4.
  • 5. Translator Computer program for Translating assembly language Into machine Language Used to interpret & execute Program direct from its source Without compiling it first. Source code will be Converted into Machine Code which is a file consisting Of binary machine code that is executed On a computer. If any errors, it record them in the program listing file. BASIC, LOGO, SMALLTALK MACRO-80, Microsoft MASM C++, PASCAL, COBOL Examples Examples Examples Assembler interpreter Compiler
  • 6. 5 Basic Element in programming Data type Variables Constants Operators Control structure
  • 7. Constant & Variables Const Margin = 10 Differences between constant and variables Constant variables Margin = 10 Variable ‘ Definition Characteristics Usage Examples Elements Is a virtual data container that Stores information. Is a virtual data container that Stores information. Value is not changeable during the Course of the program Value can be changed anytime during the Course of the program When you want to declare something that won’t change midway in your program execution. Use variable to store data that May or will change during the Running of the program.
  • 8. Data Types Definition: determines the type of data a variable can store. Data types Definition Examples Sample usage Integer Number value does not have fractional part 0, 1, 25, 99 …. Dim Double Contain a fractional part 41.5, 31.4 String Sequence of characters Kok Leong, Amira String Boolean Consists either True or False TRUE, FALSE
  • 9. Operators Operators Definition Examples/ symbols Mathematical operators Are notations that tell the computer To perform mathematic operations +, -, *, / , Relational Operators Logical Operators Performs comparison between Two elements Performs logical operations , Checking the condition of two Boolean values. =, >,<, <=, >= AND, OR, NOT
  • 10. Examples A = B A = B A = B A >= B A <= B Equal to Greater than Less than Greater than or equal to Less than or equal to
  • 11.  
  • 12.  
  • 13. Logical operator AND OR NOT “ NOT” OPERATORS “ AND” OPERATORS “ OR” OPERATORS 1 REPRESENT “TRUE”, 0 REPRESENT “FALSE” VALUE TRUTH VALUE X Y X AND Y 0 0 0 0 1 0 1 0 0 1 1 1 VALUE TRUTH VALUE X Y X OR Y 0 0 0 0 1 1 1 0 1 1 1 1 VALUE TRUTH VALUE X NOT X 0 1 1 0
  • 14.
  • 15.  
  • 16.  
  • 17. Flow chart Begin End READ Length, Width, Height DISPLAY Volume of Cuboid Volume of cuboid= Length* Width* Height
  • 18. ELEMENTS IN FLOWCHART Elements Description Terminator Shows the beginning or end of a program Flowline and arrowhead Connect symbols and indicate the sequences of operation Input or Output Shows either an input operation (an INPUT from the user) or an output operation (PRINT some message) Process Process to be carried out (e.g calculation) Decision Shows a decision (or choice) to be made. The program should continue along one of two routes (e.g if…else)
  • 19.
  • 20. Differentiate between selection control and sequence control Types of control structure Execution flow Usage Flow chart Sequence control Selection control m/s 33 chapter programming Linear execution Execute line by line Execute different Statement for Different conditions To implement decision Making.
  • 21.
  • 22.
  • 23.
  • 24.