SlideShare a Scribd company logo
About the Presentations 
• The presentations cover the objectives found in the 
opening of each chapter. 
• All chapter objectives are listed in the beginning of 
each presentation. 
• You may customize the presentations to fit your 
class needs. 
• Some figures from the chapters are included. A 
complete set of images from the book can be found 
on the Instructor Resources disc. 
1
A Beginner’s Guide to 
Programming Logic, 
Introductory 
Chapter 1 
An Overview of Computers and 
Programming
Objectives 
In this chapter, you will learn about: 
• Computer systems 
• Simple program logic 
• The steps involved in the program development 
cycle 
• Pseudocode statements and flowchart symbols 
• Using a sentinel value to end a program 
• Programming and user environments 
• The evolution of programming models 
A Beginner's Guide to Programming Logic, Introductory 3
Understanding Computer Systems 
• Computer system 
– Combination of all the components required to 
process and store data using a computer 
• Hardware 
– Equipment associated with a computer 
• Software 
– Computer instructions 
– Tell the hardware what to do 
– Programs 
• Instructions written by programmers 
A Beginner's Guide to Programming Logic, Introductory 4
Understanding Computer Systems 
(continued) 
• Programming 
– Writing software instructions 
• Computer hardware and software accomplish three 
major operations 
– Input 
• Data items enter computer 
– Processing 
• By central processing unit (CPU) 
– Output 
A Beginner's Guide to Programming Logic, Introductory 5
Understanding Computer Systems 
(continued) 
• Programming language 
– Use to write computer instructions 
– Examples 
• Visual Basic, C#, C++, or Java 
• Syntax 
– Rules governing its word usage and punctuation 
• Computer memory 
– Computer’s temporary, internal storage 
– Volatile 
A Beginner's Guide to Programming Logic, Introductory 6
Understanding Computer Systems 
(continued) 
• Permanent storage devices 
– Nonvolatile 
• Compiler or an interpreter 
– Translates program code into machine language 
(binary language) 
– Checks for syntax errors 
• Program executes or runs 
– Input will be accepted, some processing will occur, 
and results will be output 
A Beginner's Guide to Programming Logic, Introductory 7
Understanding Simple Program Logic 
• Program with syntax errors cannot execute 
• Logical errors 
– Errors in program logic 
– Produce incorrect output as a result 
• Logic of the computer program 
– Sequence of specific instructions in specific order 
• Variable 
– Named memory location whose value can vary 
A Beginner's Guide to Programming Logic, Introductory 8
Understanding the Program 
Development Cycle 
• Program development cycle 
– Understand the problem 
– Plan the logic 
– Code the program 
– Use software (a compiler or interpreter) to translate 
the program into machine language 
– Test the program 
– Put the program into production 
– Maintain the program 
A Beginner's Guide to Programming Logic, Introductory 9
Understanding the Program 
Development Cycle (continued) 
Figure 1-1 The program development cycle 
A Beginner's Guide to Programming Logic, Introductory 10
Understanding the Problem 
• One of the most difficult aspects of programming 
• Users or end users 
– People for whom program is written 
• Documentation 
– Supporting paperwork for a program 
A Beginner's Guide to Programming Logic, Introductory 11
Planning the Logic 
• Heart of the programming process 
• Most common planning tools 
– Flowcharts 
– Pseudocode 
• Desk-checking 
– Walking through a program’s logic on paper before 
you actually write the program 
A Beginner's Guide to Programming Logic, Introductory 12
Coding the Program 
• Hundreds of programming languages are available 
– Choose based on features 
– Alike in their basic capabilities 
• Easier than planning step 
A Beginner's Guide to Programming Logic, Introductory 13
Using Software to Translate the 
Program into Machine Language 
• Translator program 
– Compiler or interpreter 
– Changes the programmer’s English-like high-level 
programming language into the low-level 
machine language 
• Syntax error 
– Misuse of a language’s grammar rules 
– Programmer corrects listed syntax errors 
– Might need to recompile the code several times 
A Beginner's Guide to Programming Logic, Introductory 14
Using Software to Translate the 
Program into Machine Language 
(continued) 
Figure 1-2 Creating an executable program 
A Beginner's Guide to Programming Logic, Introductory 15
Testing the Program 
• Logical error 
– Use a syntactically correct statement but use the 
wrong one for the current context 
• Test 
– Execute the program with some sample data to see 
whether the results are logically correct 
• Programs should be tested with many sets of data 
A Beginner's Guide to Programming Logic, Introductory 16
Putting the Program into Production 
• Process depends on program’s purpose 
– May take several months 
• Conversion 
– Entire set of actions an organization must take to 
switch over to using a new program or set of 
programs 
A Beginner's Guide to Programming Logic, Introductory 17
Maintaining the Program 
• Maintenance 
– Making changes after program is put into production 
• Common first programming job 
– Maintaining previously written programs 
• Make changes to existing programs 
– Repeat the development cycle 
A Beginner's Guide to Programming Logic, Introductory 18
Using Pseudocode Statements 
and Flowchart Symbols 
• Pseudocode 
– English-like representation of the logical steps it 
takes to solve a problem 
• Flowchart 
– Pictorial representation of the logical steps it takes to 
solve a problem 
A Beginner's Guide to Programming Logic, Introductory 19
Writing Pseudocode 
• Pseudocode representation of a number-doubling 
problem 
start 
input myNumber 
set myAnswer = myNumber * 2 
output myAnswer 
stop 
A Beginner's Guide to Programming Logic, Introductory 20
Writing Pseudocode (continued) 
• Programmers preface their pseudocode with a 
beginning statement like start and end it with a 
terminating statement like stop 
• Flexible because it is a planning tool 
A Beginner's Guide to Programming Logic, Introductory 21
Drawing Flowcharts 
• Create a flowchart 
– Draw geometric shapes that contain the individual 
statements 
– Connect shapes with arrows 
• Input symbol 
– Indicates input operation 
– Parallelogram 
• Processing symbol 
– Processing statements such as arithmetic 
– Rectangle 
A Beginner's Guide to Programming Logic, Introductory 22
Drawing Flowcharts (continued) 
• Output symbol 
– Represents output statements 
– Parallelogram 
• Flowlines 
– Arrows that connect steps 
• Terminal symbols 
– Start/stop symbols 
– Shaped like a racetrack 
– Also called lozenge 
A Beginner's Guide to Programming Logic, Introductory 23
Drawing Flowcharts (continued) 
Figure 1-6 Flowchart and pseudocode of program that doubles a number 
A Beginner's Guide to Programming Logic, Introductory 24
Repeating Instructions 
• After the flowchart or pseudocode has been 
developed, the programmer only needs to: 
– Buy a computer 
– Buy a language compiler 
– Learn a programming language 
– Code the program 
– Attempt to compile it 
– Fix the syntax errors 
– Compile it again 
– Test it with several sets of data 
– Put it into production 
A Beginner's Guide to Programming Logic, Introductory 25
Repeating Instructions (continued) 
• Loop 
– Repetition of a series of steps 
• Infinite loop 
– Repeating flow of logic with no end 
A Beginner's Guide to Programming Logic, Introductory 26
Repeating Instructions (continued) 
Figure 1-8 Flowchart of infinite number-doubling program 
A Beginner's Guide to Programming Logic, Introductory 27
Using a Sentinel Value to End 
a Program 
• Making a decision 
– Testing a value 
– Decision symbol 
• Diamond shape 
• Dummy value 
– Data-entry value that the user will never need 
– Sentinel value 
• eof (“end of file”) 
– Marker at the end of a file that automatically acts as 
a sentinel 
A Beginner's Guide to Programming Logic, Introductory 28
Using a Sentinel Value to End 
a Program (continued) 
Figure 1-9 Flowchart of number-doubling program with sentinel value of 0 
A Beginner's Guide to Programming Logic, Introductory 29
Using a Sentinel Value to End 
a Program (continued) 
Figure 1-10 Flowchart using eof 
A Beginner's Guide to Programming Logic, Introductory 30
Understanding Programming 
and User Environments 
• Many options for programming and user 
environments 
A Beginner's Guide to Programming Logic, Introductory 31
Understanding Programming 
Environments 
• Use a keyboard to type program statements into an 
editor 
– Plain text editor 
• Similar to a word processor but without as many 
features 
– Text editor that is part of an integrated 
development environment (IDE) 
• Software package that provides an editor, compiler, 
and other programming tools 
A Beginner's Guide to Programming Logic, Introductory 32
Understanding Programming 
Environments (continued) 
Figure 1-12 A C# number-doubling program in Visual Studio 
A Beginner's Guide to Programming Logic, Introductory 33
Understanding User Environments 
• Command line 
– Location on your computer screen at which you type 
text entries to communicate with the computer’s 
operating system 
• Graphical user interface (GUI) 
– Allows users to interact with a program in a graphical 
environment 
A Beginner's Guide to Programming Logic, Introductory 34
Understanding User Environments 
(continued) 
Figure 1-13 Executing a number-doubling program 
in a command-line environment 
A Beginner's Guide to Programming Logic, Introductory 35
Understanding User Environments 
(continued) 
Figure 1-14 Executing a number-doubling program in a GUI environment 
A Beginner's Guide to Programming Logic, Introductory 36
Understanding the Evolution 
of Programming Models 
• People have been writing modern computer 
programs since the 1940s 
• Newer programming languages 
– Look much more like natural language 
– Easier to use 
– Create self-contained modules or program segments 
that can be pieced together in a variety of ways 
A Beginner's Guide to Programming Logic, Introductory 37
Understanding the Evolution 
of Programming Models (continued) 
• Major models or paradigms used by programmers 
– Procedural programming 
• Focuses on the procedures that programmers create 
– Object-oriented programming 
• Focuses on objects, or “things,” and describes their 
features (or attributes) and their behaviors 
– Major difference 
• Focus the programmer takes during the earliest 
planning stages of a project 
A Beginner's Guide to Programming Logic, Introductory 38
Summary 
• Computer programming 
– Requires specific syntax 
– Must develop correct logic 
• Programmer’s job 
– Understanding the problem, planning the logic, 
coding the program, translating the program into 
machine language, testing the program, putting the 
program into production, and maintaining it 
• Procedural and object-oriented programmers 
approach problems differently 
A Beginner's Guide to Programming Logic, Introductory 39

More Related Content

What's hot

Programming Design Tools
Programming Design ToolsProgramming Design Tools
Programming Design Tools
Dr. Rosemarie Sibbaluca-Guirre
 
Pseudocode & flowchart examples
Pseudocode & flowchart examplesPseudocode & flowchart examples
Pseudocode & flowchart examples
hayrikk
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
NaqashAhmad14
 
Problem solving using Computer
Problem solving using ComputerProblem solving using Computer
Problem solving using Computer
David Livingston J
 
History of Programming Language
History of Programming LanguageHistory of Programming Language
History of Programming Language
tahria123
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming conceptshermiraguilar
 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
Dr Piyush Charan
 
Word Lesson 1: Word Basics
Word Lesson 1: Word BasicsWord Lesson 1: Word Basics
Word Lesson 1: Word Basics
Novus Business and IT Training Program
 
Chapter 2A Peter Norton
Chapter 2A Peter NortonChapter 2A Peter Norton
Chapter 2A Peter Norton
রেদওয়ান হৃদয়
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to ProgrammingChaffey College
 
Computer Programming Overview
Computer Programming OverviewComputer Programming Overview
Computer Programming Overview
agorolabs
 
Social & professional issues in IT
Social & professional issues in ITSocial & professional issues in IT
Social & professional issues in IT
Rohana K Amarakoon
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
REHAN IJAZ
 
Program design and problem solving techniques
Program design and problem solving techniquesProgram design and problem solving techniques
Program design and problem solving techniques
Dokka Srinivasu
 
Software Engineering - Ch1
Software Engineering - Ch1Software Engineering - Ch1
Software Engineering - Ch1Siddharth Ayer
 
Computer capabilities limitations
Computer capabilities limitationsComputer capabilities limitations
Computer capabilities limitations
Jesus Obenita Jr.
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
Noel Malle
 
Programming languages
Programming languagesProgramming languages
Programming languages
Simon Mui
 
software development and programming languages
software development and programming languages software development and programming languages
software development and programming languages
PraShant Kumar
 

What's hot (20)

Programming Design Tools
Programming Design ToolsProgramming Design Tools
Programming Design Tools
 
Pseudocode & flowchart examples
Pseudocode & flowchart examplesPseudocode & flowchart examples
Pseudocode & flowchart examples
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Problem solving using Computer
Problem solving using ComputerProblem solving using Computer
Problem solving using Computer
 
History of Programming Language
History of Programming LanguageHistory of Programming Language
History of Programming Language
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming concepts
 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
 
Word Lesson 1: Word Basics
Word Lesson 1: Word BasicsWord Lesson 1: Word Basics
Word Lesson 1: Word Basics
 
Chapter 2A Peter Norton
Chapter 2A Peter NortonChapter 2A Peter Norton
Chapter 2A Peter Norton
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
 
Computer Programming Overview
Computer Programming OverviewComputer Programming Overview
Computer Programming Overview
 
Social & professional issues in IT
Social & professional issues in ITSocial & professional issues in IT
Social & professional issues in IT
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
 
Program design and problem solving techniques
Program design and problem solving techniquesProgram design and problem solving techniques
Program design and problem solving techniques
 
Software Engineering - Ch1
Software Engineering - Ch1Software Engineering - Ch1
Software Engineering - Ch1
 
Computer capabilities limitations
Computer capabilities limitationsComputer capabilities limitations
Computer capabilities limitations
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
software development and programming languages
software development and programming languages software development and programming languages
software development and programming languages
 

Viewers also liked

PROGRAM LOGIC AND FORMULATION
PROGRAM LOGIC AND FORMULATIONPROGRAM LOGIC AND FORMULATION
PROGRAM LOGIC AND FORMULATION
Joland Reambillo
 
Logic Formulation 3
Logic Formulation 3Logic Formulation 3
Logic Formulation 3
deathful
 
Komunikasyon
KomunikasyonKomunikasyon
Komunikasyon
deathful
 
The End of Job Descriptions
The End of Job DescriptionsThe End of Job Descriptions
The End of Job Descriptions
WINNERS-at-WORK Pty Ltd
 
Aralin sa Pakikinig
Aralin sa PakikinigAralin sa Pakikinig
Aralin sa Pakikinig
deathful
 
Mga Modelo ng Komunikasyon
Mga Modelo ng KomunikasyonMga Modelo ng Komunikasyon
Mga Modelo ng Komunikasyon
deathful
 
Real Numbers
Real NumbersReal Numbers
Real Numbers
deathful
 

Viewers also liked (7)

PROGRAM LOGIC AND FORMULATION
PROGRAM LOGIC AND FORMULATIONPROGRAM LOGIC AND FORMULATION
PROGRAM LOGIC AND FORMULATION
 
Logic Formulation 3
Logic Formulation 3Logic Formulation 3
Logic Formulation 3
 
Komunikasyon
KomunikasyonKomunikasyon
Komunikasyon
 
The End of Job Descriptions
The End of Job DescriptionsThe End of Job Descriptions
The End of Job Descriptions
 
Aralin sa Pakikinig
Aralin sa PakikinigAralin sa Pakikinig
Aralin sa Pakikinig
 
Mga Modelo ng Komunikasyon
Mga Modelo ng KomunikasyonMga Modelo ng Komunikasyon
Mga Modelo ng Komunikasyon
 
Real Numbers
Real NumbersReal Numbers
Real Numbers
 

Similar to Logic Formulation 1

chapter1-161229182113 (1).pdf
chapter1-161229182113 (1).pdfchapter1-161229182113 (1).pdf
chapter1-161229182113 (1).pdf
BernardVelasco1
 
CIS110 Computer Programming Design Chapter (1)
CIS110 Computer Programming Design Chapter  (1)CIS110 Computer Programming Design Chapter  (1)
CIS110 Computer Programming Design Chapter (1)
Dr. Ahmed Al Zaidy
 
ProgFund_Lecture_1_Introduction_to_Programming.pdf
ProgFund_Lecture_1_Introduction_to_Programming.pdfProgFund_Lecture_1_Introduction_to_Programming.pdf
ProgFund_Lecture_1_Introduction_to_Programming.pdf
lailoesakhan
 
Cs111 ch01 v4
Cs111 ch01 v4Cs111 ch01 v4
Cs111 ch01 v4
ArnoldNarte
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
MohammedMohammed578197
 
CHAPTER-1.ppt
CHAPTER-1.pptCHAPTER-1.ppt
CHAPTER-1.ppt
Tekle12
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
Azimjon Khamdamov
 
LESSON__1-15 C-PROGRAMMING.p algorithm df
LESSON__1-15 C-PROGRAMMING.p algorithm dfLESSON__1-15 C-PROGRAMMING.p algorithm df
LESSON__1-15 C-PROGRAMMING.p algorithm df
AparnaPriyadarsiniMe
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
Dr. C.V. Suresh Babu
 
DMA113 Chap1
DMA113 Chap1DMA113 Chap1
DMA113 Chap1
Bro Shola Ajayi
 
Nota (first)
Nota (first)Nota (first)
Nota (first)
Fariza Zahari
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
Appili Vamsi Krishna
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
Mani Kandan
 
Introduction to computer programming.pdf
Introduction to computer programming.pdfIntroduction to computer programming.pdf
Introduction to computer programming.pdf
HasankaNayanjith
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
Hossam Hassan
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
MMRF2
 
Week10 final
Week10 finalWeek10 final
Week10 final
Irfan Ali Memon
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
PmarkNorcio
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
Chinnu Edwin
 

Similar to Logic Formulation 1 (20)

Chap1
Chap1Chap1
Chap1
 
chapter1-161229182113 (1).pdf
chapter1-161229182113 (1).pdfchapter1-161229182113 (1).pdf
chapter1-161229182113 (1).pdf
 
CIS110 Computer Programming Design Chapter (1)
CIS110 Computer Programming Design Chapter  (1)CIS110 Computer Programming Design Chapter  (1)
CIS110 Computer Programming Design Chapter (1)
 
ProgFund_Lecture_1_Introduction_to_Programming.pdf
ProgFund_Lecture_1_Introduction_to_Programming.pdfProgFund_Lecture_1_Introduction_to_Programming.pdf
ProgFund_Lecture_1_Introduction_to_Programming.pdf
 
Cs111 ch01 v4
Cs111 ch01 v4Cs111 ch01 v4
Cs111 ch01 v4
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
CHAPTER-1.ppt
CHAPTER-1.pptCHAPTER-1.ppt
CHAPTER-1.ppt
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
LESSON__1-15 C-PROGRAMMING.p algorithm df
LESSON__1-15 C-PROGRAMMING.p algorithm dfLESSON__1-15 C-PROGRAMMING.p algorithm df
LESSON__1-15 C-PROGRAMMING.p algorithm df
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
DMA113 Chap1
DMA113 Chap1DMA113 Chap1
DMA113 Chap1
 
Nota (first)
Nota (first)Nota (first)
Nota (first)
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
 
Introduction to computer programming.pdf
Introduction to computer programming.pdfIntroduction to computer programming.pdf
Introduction to computer programming.pdf
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
Week10 final
Week10 finalWeek10 final
Week10 final
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
 

More from deathful

Wastong Gamit ng mga Salita
Wastong Gamit ng mga SalitaWastong Gamit ng mga Salita
Wastong Gamit ng mga Salita
deathful
 
UST ICS Freshmen Orientation
UST ICS Freshmen OrientationUST ICS Freshmen Orientation
UST ICS Freshmen Orientation
deathful
 
College Algebra
College AlgebraCollege Algebra
College Algebra
deathful
 
Special Products
Special ProductsSpecial Products
Special Products
deathful
 
Theories About Light
Theories About LightTheories About Light
Theories About Lightdeathful
 
Provision For Depreciation
Provision For DepreciationProvision For Depreciation
Provision For Depreciation
deathful
 
Acid-Base Titration & Calculations
Acid-Base Titration & CalculationsAcid-Base Titration & Calculations
Acid-Base Titration & Calculations
deathful
 
Microbiology Techniques
Microbiology TechniquesMicrobiology Techniques
Microbiology Techniquesdeathful
 
Streak Plating
Streak PlatingStreak Plating
Streak Platingdeathful
 
Egg Windowing
Egg WindowingEgg Windowing
Egg Windowing
deathful
 
Egg Injection
Egg InjectionEgg Injection
Egg Injection
deathful
 
Colony Counter Compatibility Mode
Colony Counter Compatibility ModeColony Counter Compatibility Mode
Colony Counter Compatibility Mode
deathful
 
Isolating Chromosomes
Isolating ChromosomesIsolating Chromosomes
Isolating Chromosomesdeathful
 
Autoclave
AutoclaveAutoclave
Autoclave
deathful
 
Aseptic Technique
Aseptic TechniqueAseptic Technique
Aseptic Technique
deathful
 
Agar Culture Medium
Agar Culture MediumAgar Culture Medium
Agar Culture Medium
deathful
 
Allium Cepa Genotoxicity Test
Allium Cepa Genotoxicity TestAllium Cepa Genotoxicity Test
Allium Cepa Genotoxicity Test
deathful
 
Tilapia Nilotica As A Biological Indicator
Tilapia Nilotica As A Biological IndicatorTilapia Nilotica As A Biological Indicator
Tilapia Nilotica As A Biological Indicator
deathful
 
Pagkonsumo
PagkonsumoPagkonsumo
Pagkonsumo
deathful
 

More from deathful (19)

Wastong Gamit ng mga Salita
Wastong Gamit ng mga SalitaWastong Gamit ng mga Salita
Wastong Gamit ng mga Salita
 
UST ICS Freshmen Orientation
UST ICS Freshmen OrientationUST ICS Freshmen Orientation
UST ICS Freshmen Orientation
 
College Algebra
College AlgebraCollege Algebra
College Algebra
 
Special Products
Special ProductsSpecial Products
Special Products
 
Theories About Light
Theories About LightTheories About Light
Theories About Light
 
Provision For Depreciation
Provision For DepreciationProvision For Depreciation
Provision For Depreciation
 
Acid-Base Titration & Calculations
Acid-Base Titration & CalculationsAcid-Base Titration & Calculations
Acid-Base Titration & Calculations
 
Microbiology Techniques
Microbiology TechniquesMicrobiology Techniques
Microbiology Techniques
 
Streak Plating
Streak PlatingStreak Plating
Streak Plating
 
Egg Windowing
Egg WindowingEgg Windowing
Egg Windowing
 
Egg Injection
Egg InjectionEgg Injection
Egg Injection
 
Colony Counter Compatibility Mode
Colony Counter Compatibility ModeColony Counter Compatibility Mode
Colony Counter Compatibility Mode
 
Isolating Chromosomes
Isolating ChromosomesIsolating Chromosomes
Isolating Chromosomes
 
Autoclave
AutoclaveAutoclave
Autoclave
 
Aseptic Technique
Aseptic TechniqueAseptic Technique
Aseptic Technique
 
Agar Culture Medium
Agar Culture MediumAgar Culture Medium
Agar Culture Medium
 
Allium Cepa Genotoxicity Test
Allium Cepa Genotoxicity TestAllium Cepa Genotoxicity Test
Allium Cepa Genotoxicity Test
 
Tilapia Nilotica As A Biological Indicator
Tilapia Nilotica As A Biological IndicatorTilapia Nilotica As A Biological Indicator
Tilapia Nilotica As A Biological Indicator
 
Pagkonsumo
PagkonsumoPagkonsumo
Pagkonsumo
 

Recently uploaded

Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 

Logic Formulation 1

  • 1. About the Presentations • The presentations cover the objectives found in the opening of each chapter. • All chapter objectives are listed in the beginning of each presentation. • You may customize the presentations to fit your class needs. • Some figures from the chapters are included. A complete set of images from the book can be found on the Instructor Resources disc. 1
  • 2. A Beginner’s Guide to Programming Logic, Introductory Chapter 1 An Overview of Computers and Programming
  • 3. Objectives In this chapter, you will learn about: • Computer systems • Simple program logic • The steps involved in the program development cycle • Pseudocode statements and flowchart symbols • Using a sentinel value to end a program • Programming and user environments • The evolution of programming models A Beginner's Guide to Programming Logic, Introductory 3
  • 4. Understanding Computer Systems • Computer system – Combination of all the components required to process and store data using a computer • Hardware – Equipment associated with a computer • Software – Computer instructions – Tell the hardware what to do – Programs • Instructions written by programmers A Beginner's Guide to Programming Logic, Introductory 4
  • 5. Understanding Computer Systems (continued) • Programming – Writing software instructions • Computer hardware and software accomplish three major operations – Input • Data items enter computer – Processing • By central processing unit (CPU) – Output A Beginner's Guide to Programming Logic, Introductory 5
  • 6. Understanding Computer Systems (continued) • Programming language – Use to write computer instructions – Examples • Visual Basic, C#, C++, or Java • Syntax – Rules governing its word usage and punctuation • Computer memory – Computer’s temporary, internal storage – Volatile A Beginner's Guide to Programming Logic, Introductory 6
  • 7. Understanding Computer Systems (continued) • Permanent storage devices – Nonvolatile • Compiler or an interpreter – Translates program code into machine language (binary language) – Checks for syntax errors • Program executes or runs – Input will be accepted, some processing will occur, and results will be output A Beginner's Guide to Programming Logic, Introductory 7
  • 8. Understanding Simple Program Logic • Program with syntax errors cannot execute • Logical errors – Errors in program logic – Produce incorrect output as a result • Logic of the computer program – Sequence of specific instructions in specific order • Variable – Named memory location whose value can vary A Beginner's Guide to Programming Logic, Introductory 8
  • 9. Understanding the Program Development Cycle • Program development cycle – Understand the problem – Plan the logic – Code the program – Use software (a compiler or interpreter) to translate the program into machine language – Test the program – Put the program into production – Maintain the program A Beginner's Guide to Programming Logic, Introductory 9
  • 10. Understanding the Program Development Cycle (continued) Figure 1-1 The program development cycle A Beginner's Guide to Programming Logic, Introductory 10
  • 11. Understanding the Problem • One of the most difficult aspects of programming • Users or end users – People for whom program is written • Documentation – Supporting paperwork for a program A Beginner's Guide to Programming Logic, Introductory 11
  • 12. Planning the Logic • Heart of the programming process • Most common planning tools – Flowcharts – Pseudocode • Desk-checking – Walking through a program’s logic on paper before you actually write the program A Beginner's Guide to Programming Logic, Introductory 12
  • 13. Coding the Program • Hundreds of programming languages are available – Choose based on features – Alike in their basic capabilities • Easier than planning step A Beginner's Guide to Programming Logic, Introductory 13
  • 14. Using Software to Translate the Program into Machine Language • Translator program – Compiler or interpreter – Changes the programmer’s English-like high-level programming language into the low-level machine language • Syntax error – Misuse of a language’s grammar rules – Programmer corrects listed syntax errors – Might need to recompile the code several times A Beginner's Guide to Programming Logic, Introductory 14
  • 15. Using Software to Translate the Program into Machine Language (continued) Figure 1-2 Creating an executable program A Beginner's Guide to Programming Logic, Introductory 15
  • 16. Testing the Program • Logical error – Use a syntactically correct statement but use the wrong one for the current context • Test – Execute the program with some sample data to see whether the results are logically correct • Programs should be tested with many sets of data A Beginner's Guide to Programming Logic, Introductory 16
  • 17. Putting the Program into Production • Process depends on program’s purpose – May take several months • Conversion – Entire set of actions an organization must take to switch over to using a new program or set of programs A Beginner's Guide to Programming Logic, Introductory 17
  • 18. Maintaining the Program • Maintenance – Making changes after program is put into production • Common first programming job – Maintaining previously written programs • Make changes to existing programs – Repeat the development cycle A Beginner's Guide to Programming Logic, Introductory 18
  • 19. Using Pseudocode Statements and Flowchart Symbols • Pseudocode – English-like representation of the logical steps it takes to solve a problem • Flowchart – Pictorial representation of the logical steps it takes to solve a problem A Beginner's Guide to Programming Logic, Introductory 19
  • 20. Writing Pseudocode • Pseudocode representation of a number-doubling problem start input myNumber set myAnswer = myNumber * 2 output myAnswer stop A Beginner's Guide to Programming Logic, Introductory 20
  • 21. Writing Pseudocode (continued) • Programmers preface their pseudocode with a beginning statement like start and end it with a terminating statement like stop • Flexible because it is a planning tool A Beginner's Guide to Programming Logic, Introductory 21
  • 22. Drawing Flowcharts • Create a flowchart – Draw geometric shapes that contain the individual statements – Connect shapes with arrows • Input symbol – Indicates input operation – Parallelogram • Processing symbol – Processing statements such as arithmetic – Rectangle A Beginner's Guide to Programming Logic, Introductory 22
  • 23. Drawing Flowcharts (continued) • Output symbol – Represents output statements – Parallelogram • Flowlines – Arrows that connect steps • Terminal symbols – Start/stop symbols – Shaped like a racetrack – Also called lozenge A Beginner's Guide to Programming Logic, Introductory 23
  • 24. Drawing Flowcharts (continued) Figure 1-6 Flowchart and pseudocode of program that doubles a number A Beginner's Guide to Programming Logic, Introductory 24
  • 25. Repeating Instructions • After the flowchart or pseudocode has been developed, the programmer only needs to: – Buy a computer – Buy a language compiler – Learn a programming language – Code the program – Attempt to compile it – Fix the syntax errors – Compile it again – Test it with several sets of data – Put it into production A Beginner's Guide to Programming Logic, Introductory 25
  • 26. Repeating Instructions (continued) • Loop – Repetition of a series of steps • Infinite loop – Repeating flow of logic with no end A Beginner's Guide to Programming Logic, Introductory 26
  • 27. Repeating Instructions (continued) Figure 1-8 Flowchart of infinite number-doubling program A Beginner's Guide to Programming Logic, Introductory 27
  • 28. Using a Sentinel Value to End a Program • Making a decision – Testing a value – Decision symbol • Diamond shape • Dummy value – Data-entry value that the user will never need – Sentinel value • eof (“end of file”) – Marker at the end of a file that automatically acts as a sentinel A Beginner's Guide to Programming Logic, Introductory 28
  • 29. Using a Sentinel Value to End a Program (continued) Figure 1-9 Flowchart of number-doubling program with sentinel value of 0 A Beginner's Guide to Programming Logic, Introductory 29
  • 30. Using a Sentinel Value to End a Program (continued) Figure 1-10 Flowchart using eof A Beginner's Guide to Programming Logic, Introductory 30
  • 31. Understanding Programming and User Environments • Many options for programming and user environments A Beginner's Guide to Programming Logic, Introductory 31
  • 32. Understanding Programming Environments • Use a keyboard to type program statements into an editor – Plain text editor • Similar to a word processor but without as many features – Text editor that is part of an integrated development environment (IDE) • Software package that provides an editor, compiler, and other programming tools A Beginner's Guide to Programming Logic, Introductory 32
  • 33. Understanding Programming Environments (continued) Figure 1-12 A C# number-doubling program in Visual Studio A Beginner's Guide to Programming Logic, Introductory 33
  • 34. Understanding User Environments • Command line – Location on your computer screen at which you type text entries to communicate with the computer’s operating system • Graphical user interface (GUI) – Allows users to interact with a program in a graphical environment A Beginner's Guide to Programming Logic, Introductory 34
  • 35. Understanding User Environments (continued) Figure 1-13 Executing a number-doubling program in a command-line environment A Beginner's Guide to Programming Logic, Introductory 35
  • 36. Understanding User Environments (continued) Figure 1-14 Executing a number-doubling program in a GUI environment A Beginner's Guide to Programming Logic, Introductory 36
  • 37. Understanding the Evolution of Programming Models • People have been writing modern computer programs since the 1940s • Newer programming languages – Look much more like natural language – Easier to use – Create self-contained modules or program segments that can be pieced together in a variety of ways A Beginner's Guide to Programming Logic, Introductory 37
  • 38. Understanding the Evolution of Programming Models (continued) • Major models or paradigms used by programmers – Procedural programming • Focuses on the procedures that programmers create – Object-oriented programming • Focuses on objects, or “things,” and describes their features (or attributes) and their behaviors – Major difference • Focus the programmer takes during the earliest planning stages of a project A Beginner's Guide to Programming Logic, Introductory 38
  • 39. Summary • Computer programming – Requires specific syntax – Must develop correct logic • Programmer’s job – Understanding the problem, planning the logic, coding the program, translating the program into machine language, testing the program, putting the program into production, and maintaining it • Procedural and object-oriented programmers approach problems differently A Beginner's Guide to Programming Logic, Introductory 39