SlideShare une entreprise Scribd logo
1  sur  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]

Contenu connexe

Tendances

File sharing technlogies
File sharing technlogiesFile sharing technlogies
File sharing technlogiesMary May Porto
 
Application Software
Application SoftwareApplication Software
Application SoftwareDasun Hegoda
 
Evolution of web browsers ppt
Evolution of web browsers pptEvolution of web browsers ppt
Evolution of web browsers pptJyothi Reddy
 
Introduction to Internet
Introduction to InternetIntroduction to Internet
Introduction to InternetAmber Bhaumik
 
Assignment of History of Computer(F21-1872).pdf
Assignment of History of Computer(F21-1872).pdfAssignment of History of Computer(F21-1872).pdf
Assignment of History of Computer(F21-1872).pdfAtifmalik70
 
1.7 selection and use of appropriate software
1.7 selection and use of appropriate software1.7 selection and use of appropriate software
1.7 selection and use of appropriate softwaremrmwood
 
Module 1 intro evolution computer
Module 1 intro  evolution computerModule 1 intro  evolution computer
Module 1 intro evolution computerMusa Muhamad
 
Mac OS(Operating System)
Mac OS(Operating System)Mac OS(Operating System)
Mac OS(Operating System)Faizan Shaikh
 
Chapter 05
Chapter 05Chapter 05
Chapter 05llmeade
 
Bank soal tik Untuk tingkat SMP
Bank soal tik Untuk tingkat SMPBank soal tik Untuk tingkat SMP
Bank soal tik Untuk tingkat SMPasmayudin
 
WEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdf
WEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdfWEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdf
WEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdfrominiccheng
 
SYSTEM SOFTWARE
SYSTEM SOFTWARESYSTEM SOFTWARE
SYSTEM SOFTWAREKak Yong
 
Presentation on web browser
Presentation on web browserPresentation on web browser
Presentation on web browserSwasat Dutta
 

Tendances (19)

File sharing technlogies
File sharing technlogiesFile sharing technlogies
File sharing technlogies
 
Application Software
Application SoftwareApplication Software
Application Software
 
Evolution of web browsers ppt
Evolution of web browsers pptEvolution of web browsers ppt
Evolution of web browsers ppt
 
Introduction to Internet
Introduction to InternetIntroduction to Internet
Introduction to Internet
 
Assignment of History of Computer(F21-1872).pdf
Assignment of History of Computer(F21-1872).pdfAssignment of History of Computer(F21-1872).pdf
Assignment of History of Computer(F21-1872).pdf
 
1.7 selection and use of appropriate software
1.7 selection and use of appropriate software1.7 selection and use of appropriate software
1.7 selection and use of appropriate software
 
Module 1 intro evolution computer
Module 1 intro  evolution computerModule 1 intro  evolution computer
Module 1 intro evolution computer
 
Application Software
Application SoftwareApplication Software
Application Software
 
Mac OS(Operating System)
Mac OS(Operating System)Mac OS(Operating System)
Mac OS(Operating System)
 
Services provided by the internet
Services provided by the internetServices provided by the internet
Services provided by the internet
 
Generations of Computers
Generations of ComputersGenerations of Computers
Generations of Computers
 
Fitts' Law Basics
Fitts' Law BasicsFitts' Law Basics
Fitts' Law Basics
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Bank soal tik Untuk tingkat SMP
Bank soal tik Untuk tingkat SMPBank soal tik Untuk tingkat SMP
Bank soal tik Untuk tingkat SMP
 
Chapter 01.PPT
Chapter 01.PPTChapter 01.PPT
Chapter 01.PPT
 
Short History of Computer
Short History of ComputerShort History of Computer
Short History of Computer
 
WEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdf
WEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdfWEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdf
WEEK1-STE-COMPSCI-G7-1Q-ROMINICCHENG.docx.pdf
 
SYSTEM SOFTWARE
SYSTEM SOFTWARESYSTEM SOFTWARE
SYSTEM SOFTWARE
 
Presentation on web browser
Presentation on web browserPresentation on web browser
Presentation on web browser
 

En vedette

Bidang pembelajaran 4.3 Tingkatan 5
Bidang pembelajaran  4.3 Tingkatan 5Bidang pembelajaran  4.3 Tingkatan 5
Bidang pembelajaran 4.3 Tingkatan 5MOE
 
Bidang pembelajaran 4.1 Tingkatan 5
Bidang pembelajaran 4.1 Tingkatan 5Bidang pembelajaran 4.1 Tingkatan 5
Bidang pembelajaran 4.1 Tingkatan 5MOE
 
Bidang pembelajaran 4.2 Tingkatan 5
Bidang pembelajaran 4.2 Tingkatan 5Bidang pembelajaran 4.2 Tingkatan 5
Bidang pembelajaran 4.2 Tingkatan 5MOE
 
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-programmingKak 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 paperkwongliik
 
Daily lesson plan ict form 5
Daily lesson plan ict form 5Daily lesson plan ict form 5
Daily lesson plan ict form 5suefee
 
Chapter 2 computer system
Chapter 2 computer systemChapter 2 computer system
Chapter 2 computer systemAten Kecik
 
Nota Padat ICT SPM - Form 4
Nota Padat ICT SPM - Form 4Nota Padat ICT SPM - Form 4
Nota Padat ICT SPM - Form 4D.J Md Thani
 
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.netGirija Muscut
 
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++Microsoft
 
Debugging in visual studio (basic level)
Debugging in visual studio (basic level)Debugging in visual studio (basic level)
Debugging in visual studio (basic level)Larry Nung
 
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-uNikola Plejic
 
Logical Programming With ruby-prolog
Logical Programming With ruby-prologLogical Programming With ruby-prolog
Logical Programming With ruby-prologPreston Lee
 
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 valueGirija Muscut
 

En vedette (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
 

Similaire à Chapter 5( programming) answer

Programming content
Programming contentProgramming content
Programming contentBazlin Ahmad
 
Software development slides
Software development slidesSoftware development slides
Software development slidesiarthur
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptxDivyaKS12
 
La5 Basicelement
La5 BasicelementLa5 Basicelement
La5 BasicelementCma Mohd
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software developmentHattori Sidek
 
Program logic and design
Program logic and designProgram logic and design
Program logic and designChaffey College
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving TechniquesAshesh R
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigmskasenerd
 
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.pdfKirubelWondwoson1
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to ProgrammingChaffey College
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 
Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowcharthermiraguilar
 
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 answersvithyanila
 
Programming concepts By ZAK
Programming concepts By ZAKProgramming concepts By ZAK
Programming concepts By ZAKTabsheer Hasan
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)nharsh2308
 

Similaire à 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)
 

Plus 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
 

Dernier

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
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...Martijn de Jong
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Dernier (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
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...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

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.