SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt? (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
 

Andere mochten auch

Resumo Fenerc 2011 - Igarassu
Resumo Fenerc 2011 - IgarassuResumo Fenerc 2011 - Igarassu
Resumo Fenerc 2011 - Igarassuforumdealimetacao
 
Marie letournel studio book
Marie letournel studio bookMarie letournel studio book
Marie letournel studio bookMarie Létournel
 
Utility business model
Utility business modelUtility business model
Utility business modelJosh Gould
 
Whitepaper Strategische personeelsplanning
Whitepaper Strategische personeelsplanningWhitepaper Strategische personeelsplanning
Whitepaper Strategische personeelsplanningDharam Jethoe
 
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 GroupQualitest
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 

Kürzlich hochgeladen (20)

ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 

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