SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
F2037
PROGRAMMING
FUNDAMENTALS WITH C++
Information Systems
System
 A collection of pieces working together to achieve a common
 goal


An information system includes
 Data, People, Procedure, Hardware/Software


System Development Life Cycle (SDLC)
 An organized process (or set of steps) used to develop systems
 in an orderly fashion
PROGRAM, PROGRAMMING & PROGRAMMER

• Program:
  A set of step-by-step instructions that directs a
  computer to perform a specific task and to produce the
  required results.

• Programming:
  Programming is a process of designing/ creating a
  program.

• Programmer:
  Programmer is a person who writes the program.
Problem Opportunity
     Identification




        Analysis




         Design



 Development &
 Documentation

  Testing & Installation




Maintenance & Evaluation
                           One step is completed before proceeding to the next
                                                                                 System Development Life Cycle
The Life Cycle of a Program
Programming is the process of translating a
 task into a series of commands a computer will
 use to perform that task.
Programming involves:
  Identifying the parts of a task the computer can perform.
  Describing tasks in a specific and complete manner
  Translating the tasks into a language that is understood by
   the computer’s CPU.
Program Development Life Cycle

    Step   • Analyze Problem
     1

    Step   • Design Programs
     2

    Step   • Code Programs
     3

    Step   • Debugging
     4

    Step   • Formalize Solution
     5

    Step   • Maintain Programs
     6
Step 1 : Analyze Problem
The problem statement is:
  The starting point of programming
  A description of tasks the program is to accomplish
  How the program will execute the tasks
  Created through interaction between the developer and the
   user

The program statement includes error handling
 and a testing plan
What is involved in analyzing problem?


              • Review program specifications
                package



              • Meet with systems analyst and users




              • Identify each program’s input, output,
                and processing components
Step 2 : Design Program
Develop an algorithm:
  A set of specific, sequential steps that describe what the
   computer program must do
  Complex algorithms include decision points:
     Binary (yes/no)
     Loop (repeating actions)
  Visual tools used to track algorithm and decision points
   include:
       Flowchart
       Pseudo Code
       Top Down design
       Object Oriented Analysis
Step 3 : Coding
Coding is translating an algorithm into a
 programming language
Generations of programming languages
What is involved in coding programs?




                   Two Steps
           Translating           Entering
       solution algorithm      programming
      into a programming    language code into
            language           the computer
Step 4 : Debugging
Running a program to find errors is known as
 debugging
Sample inputs are used to determine runtime
 (logic) errors
Debugger: Tool that helps programmers locate
 runtime errors
What is involved in testing programs?
Goal is to ensure program runs correctly and is
 error free
Three types of errors
     Syntax
     Logic
     Run time
Syntax Errors
• Refers to an error in the syntax of a sequence of characters or
  tokens that is intended to be written in a particular programming
  language.
• For compiled languages syntax errors occur strictly at compile-
  time. A program will not compile until all syntax errors are
  corrected.
• For interpreted languages however syntax errors cannot be
  detected until runtime and it is not necessarily simple to
  differentiate a syntax error from a semantic error.
• A syntax error may also occur when an invalid equation is
  entered into a calculator. This can be caused, for instance, by
  opening brackets without closing them, or less commonly,
  entering several decimal points in one number.
Logic Errors
• A logic error (sometimes called a semantic error) is a bug in a
  program that causes it to operate incorrectly, but not to
  terminate abnormally (or crash).
• A logic error produces unintended or undesired output or other
  behaviour, although it may not immediately be recognized as
  such.
• Logic errors occur in both compiled and interpreted languages.
• Unlike a program with a syntax error, a program with a logic
  error is a valid program in the language, though it does not
  behave as intended.
Run time Errors
• A runtime error is a computer error that appears in the form of a
  message box consisting of a particular code along with its
  corresponding definitions.
• Usually, a user will notice that the computer becomes
  noticeably slow before a runtime error appears.
• After the runtime error message has been displayed and
  closed, the software that shows this error would normally close
  or freeze. In some cases, the operating system will reboot.
• A wide variety of errors cause these problems. These include:
   •   conflicts between the TSR (Terminate and Stay Resident Program)
   •   currently running applications
   •   software issues
   •   memory problems
   •   and harmful applications such as computer viruses
Step 5 : Formalize Solution
What is involved in formalizing solution?
 Programmer performs two activities:
     • Reviews program code
     • Reviews documentation
Step 6 : Maintain Programs
What is involved in maintaining programs?


          Identify
           errors             Identify
                           enhancements

                     Involves modifying existing programs
                         to improve their functionality
Programming language
 Set of words, symbols, and codes that enables a programmer
 to communicate a solution algorithm to the computer

Program Development Tool
 User-friendly software products designed to assist in the
 creation of information system solutions

Contenu connexe

Tendances

Compiler.design.in.c.docs
Compiler.design.in.c.docsCompiler.design.in.c.docs
Compiler.design.in.c.docs
Abid Syed
 

Tendances (20)

Logic Formulation 1
Logic Formulation 1Logic Formulation 1
Logic Formulation 1
 
Ss debuggers
Ss debuggersSs debuggers
Ss debuggers
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Compiler design
Compiler designCompiler design
Compiler design
 
Chapter 10
Chapter 10 Chapter 10
Chapter 10
 
Computer
ComputerComputer
Computer
 
Language processor
Language processorLanguage processor
Language processor
 
Software tools
Software toolsSoftware tools
Software tools
 
Coding
CodingCoding
Coding
 
The Programmer Life Cycle
The Programmer Life CycleThe Programmer Life Cycle
The Programmer Life Cycle
 
Compiler.design.in.c.docs
Compiler.design.in.c.docsCompiler.design.in.c.docs
Compiler.design.in.c.docs
 
Software Coding- Software Coding
Software Coding- Software CodingSoftware Coding- Software Coding
Software Coding- Software Coding
 
Interpreters & Debuggers
Interpreters  &  DebuggersInterpreters  &  Debuggers
Interpreters & Debuggers
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
 
Compilers
CompilersCompilers
Compilers
 
N-version programming
N-version programmingN-version programming
N-version programming
 
Software (Application and System Software)
Software (Application and System Software)Software (Application and System Software)
Software (Application and System Software)
 
debugging - system software
debugging - system softwaredebugging - system software
debugging - system software
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 

En vedette

Resumo Fenerc 2011 - Igarassu
Resumo Fenerc 2011 - IgarassuResumo Fenerc 2011 - Igarassu
Resumo Fenerc 2011 - Igarassu
forumdealimetacao
 

En vedette (11)

Un sueño posible
Un sueño posibleUn sueño posible
Un sueño posible
 
Resumo Fenerc 2011 - Igarassu
Resumo Fenerc 2011 - IgarassuResumo Fenerc 2011 - Igarassu
Resumo Fenerc 2011 - Igarassu
 
AAUP 2011: Lightweight Journals Publishing (A. Vonderharr)
AAUP 2011: Lightweight Journals Publishing (A. Vonderharr)AAUP 2011: Lightweight Journals Publishing (A. Vonderharr)
AAUP 2011: Lightweight Journals Publishing (A. Vonderharr)
 
Gugioiu a-cv-17263 (1)
Gugioiu a-cv-17263 (1)Gugioiu a-cv-17263 (1)
Gugioiu a-cv-17263 (1)
 
Marie letournel studio book
Marie letournel studio bookMarie letournel studio book
Marie letournel studio book
 
Utility business model
Utility business modelUtility business model
Utility business model
 
Whitepaper Strategische personeelsplanning
Whitepaper Strategische personeelsplanningWhitepaper Strategische personeelsplanning
Whitepaper Strategische personeelsplanning
 
Sign of jonas
Sign of jonasSign of jonas
Sign of jonas
 
Decision making -nike
Decision making -nikeDecision making -nike
Decision making -nike
 
Crowd Catcher: take control of the Crowd (part 2 of 3) | QualiTest Group
Crowd Catcher: take control of the Crowd (part 2 of 3) | QualiTest GroupCrowd Catcher: take control of the Crowd (part 2 of 3) | QualiTest Group
Crowd Catcher: take control of the Crowd (part 2 of 3) | QualiTest Group
 
01 - A Sura da Abertura
01 - A Sura da Abertura01 - A Sura da Abertura
01 - A Sura da Abertura
 

Similaire à Chapter 1

Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
SherinRappai
 

Similaire à Chapter 1 (20)

Software development slides
Software development slidesSoftware development slides
Software development slides
 
Coding - SDLC Model
Coding - SDLC ModelCoding - SDLC Model
Coding - SDLC Model
 
grade 10 2023.pptx
grade 10 2023.pptxgrade 10 2023.pptx
grade 10 2023.pptx
 
Lecture 6.pptx
Lecture 6.pptxLecture 6.pptx
Lecture 6.pptx
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
TAMUC LO 10
TAMUC LO 10TAMUC LO 10
TAMUC LO 10
 
Chapter 1 - Prog101.ppt
Chapter 1 - Prog101.pptChapter 1 - Prog101.ppt
Chapter 1 - Prog101.ppt
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
Unit 1 program development cycle
Unit 1 program development cycleUnit 1 program development cycle
Unit 1 program development cycle
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
10tait
10tait10tait
10tait
 
Week10 final
Week10 finalWeek10 final
Week10 final
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
 
Computer programing 111 lecture 2
Computer programing 111 lecture 2Computer programing 111 lecture 2
Computer programing 111 lecture 2
 
Cp 111 lecture 2
Cp 111 lecture 2Cp 111 lecture 2
Cp 111 lecture 2
 
computer Unit 6
computer Unit 6computer Unit 6
computer Unit 6
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 

Dernier

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Dernier (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Chapter 1

  • 2. Information Systems System A collection of pieces working together to achieve a common goal An information system includes Data, People, Procedure, Hardware/Software System Development Life Cycle (SDLC) An organized process (or set of steps) used to develop systems in an orderly fashion
  • 3. PROGRAM, PROGRAMMING & PROGRAMMER • Program: A set of step-by-step instructions that directs a computer to perform a specific task and to produce the required results. • Programming: Programming is a process of designing/ creating a program. • Programmer: Programmer is a person who writes the program.
  • 4. Problem Opportunity Identification Analysis Design Development & Documentation Testing & Installation Maintenance & Evaluation One step is completed before proceeding to the next System Development Life Cycle
  • 5. The Life Cycle of a Program Programming is the process of translating a task into a series of commands a computer will use to perform that task. Programming involves:  Identifying the parts of a task the computer can perform.  Describing tasks in a specific and complete manner  Translating the tasks into a language that is understood by the computer’s CPU.
  • 6. Program Development Life Cycle Step • Analyze Problem 1 Step • Design Programs 2 Step • Code Programs 3 Step • Debugging 4 Step • Formalize Solution 5 Step • Maintain Programs 6
  • 7. Step 1 : Analyze Problem The problem statement is:  The starting point of programming  A description of tasks the program is to accomplish  How the program will execute the tasks  Created through interaction between the developer and the user The program statement includes error handling and a testing plan
  • 8. What is involved in analyzing problem? • Review program specifications package • Meet with systems analyst and users • Identify each program’s input, output, and processing components
  • 9. Step 2 : Design Program Develop an algorithm:  A set of specific, sequential steps that describe what the computer program must do  Complex algorithms include decision points:  Binary (yes/no)  Loop (repeating actions)  Visual tools used to track algorithm and decision points include:  Flowchart  Pseudo Code  Top Down design  Object Oriented Analysis
  • 10. Step 3 : Coding Coding is translating an algorithm into a programming language Generations of programming languages
  • 11. What is involved in coding programs? Two Steps Translating Entering solution algorithm programming into a programming language code into language the computer
  • 12. Step 4 : Debugging Running a program to find errors is known as debugging Sample inputs are used to determine runtime (logic) errors Debugger: Tool that helps programmers locate runtime errors
  • 13. What is involved in testing programs? Goal is to ensure program runs correctly and is error free Three types of errors  Syntax  Logic  Run time
  • 14. Syntax Errors • Refers to an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language. • For compiled languages syntax errors occur strictly at compile- time. A program will not compile until all syntax errors are corrected. • For interpreted languages however syntax errors cannot be detected until runtime and it is not necessarily simple to differentiate a syntax error from a semantic error. • A syntax error may also occur when an invalid equation is entered into a calculator. This can be caused, for instance, by opening brackets without closing them, or less commonly, entering several decimal points in one number.
  • 15. Logic Errors • A logic error (sometimes called a semantic error) is a bug in a program that causes it to operate incorrectly, but not to terminate abnormally (or crash). • A logic error produces unintended or undesired output or other behaviour, although it may not immediately be recognized as such. • Logic errors occur in both compiled and interpreted languages. • Unlike a program with a syntax error, a program with a logic error is a valid program in the language, though it does not behave as intended.
  • 16. Run time Errors • A runtime error is a computer error that appears in the form of a message box consisting of a particular code along with its corresponding definitions. • Usually, a user will notice that the computer becomes noticeably slow before a runtime error appears. • After the runtime error message has been displayed and closed, the software that shows this error would normally close or freeze. In some cases, the operating system will reboot. • A wide variety of errors cause these problems. These include: • conflicts between the TSR (Terminate and Stay Resident Program) • currently running applications • software issues • memory problems • and harmful applications such as computer viruses
  • 17. Step 5 : Formalize Solution What is involved in formalizing solution? Programmer performs two activities: • Reviews program code • Reviews documentation
  • 18. Step 6 : Maintain Programs What is involved in maintaining programs? Identify errors Identify enhancements Involves modifying existing programs to improve their functionality
  • 19. Programming language Set of words, symbols, and codes that enables a programmer to communicate a solution algorithm to the computer Program Development Tool User-friendly software products designed to assist in the creation of information system solutions