SlideShare a Scribd company logo
1 of 52
Understanding Computers: Today and Tomorrow, 13th Edition
Chapter 13:
Program Development
and Programming
Languages
Understanding Computers: Today and Tomorrow, 13th Edition
2
Learning Objectives
1. Understand the differences between structured
programming, object-oriented programming (OOP),
aspect-oriented programming (AOP), and adaptive
software development.
2. Identify and describe the activities involved in the
program development life cycle (PDLC).
3. Understand what constitutes good program design and
list several tools that can be used by computer
professionals when designing a program.
Understanding Computers: Today and Tomorrow, 13th Edition
3
Learning Objectives
4. Explain the three basic control structures and how they
can be used to control program flow during execution.
5. Discuss some of the activities involved with debugging a
program and otherwise ensuring it is designed and
written properly.
6. List some tools that can be used to speed up or
otherwise facilitate the program development process.
7. Describe several programming languages in use today
and explain their key features.
Understanding Computers: Today and Tomorrow, 13th Edition
4
Overview
• This chapter covers:
– The most common approaches to program design
and development
– The phases of the program development life cycle
(PDLC)
– Tools that can be used to design and develop a
program
– Good program design techniques and types of
program errors
– Common programming languages
Understanding Computers: Today and Tomorrow, 13th Edition
5
Approaches to Program Design and
Development
• Procedural programming: An approach to program
design in which a program is separated into small
modules that are called by the main program or another
module when needed
– Uses procedures (modules, subprograms): Smaller
sections of code that perform specific tasks
– Allows each procedure to be performed as many
times as needed; multiple copies of code not needed
– Prior to procedural programming, programs were one
large set of instructions (used GOTO statements)
– Structured programming: Goes even further, breaking
the program into small modules (Top-down design)
Understanding Computers: Today and Tomorrow, 13th Edition
6
Approaches to Program Design and
Development
– Variables: Named memory locations
that are defined for a program
• Used to store the current value of
data items used in the program
Understanding Computers: Today and Tomorrow, 13th Edition
7
Approaches to Program Design and
Development
• Object-oriented programming (OOP): Programs consist
of a collection of objects that contain data and methods
to be used with that data
– Class: Group of objects that share
some common properties
– Instance: An individual object in a
class
– Attributes: Data about the state of
an object
– Methods: Perform actions on an
object
– Objects can perform nontraditional actions and be
easily used by more than one program
Understanding Computers: Today and Tomorrow, 13th Edition
8
Approaches to Program Design and
Development
• Aspect-oriented programming (AOP): Separates
functions so program components can be developed
and modified individually from one another
– The components can be easily reused with
separate nonrelated objects
• Adaptive software development: Designed to make
program development faster and more efficient and
focus on adapting the program as it is being written
– Iterative and/or incremental
– Includes RAD (rapid application development) and
extreme programming (XP)
– Agile software development: Focuses on building
small functional program pieces during the project
Understanding Computers: Today and Tomorrow, 13th Edition
9
The Program Development Life Cycle (PDLC)
• Program development: The process of creating
application programs
• Program development life cycle (PDLC): The process
containing the five phases of program development
Understanding Computers: Today and Tomorrow, 13th Edition
10
• Problem analysis: The problem is considered and the
program specifications are developed
– Specifications developed during the PDLC are
reviewed by the systems analyst and the programmer
(the person who will code the program)
– Goal: To understand the functions the software must
perform
– Documentation: Includes program specifications
(what it does, timetable, programming language to be
used, etc)
The Program Development Life Cycle (PDLC)
Understanding Computers: Today and Tomorrow, 13th Edition
11
• Program design: The program specifications are
expanded into a complete design of the new program
– Good program design is extremely important
– Program design tools
• Structure charts: Depict the overall organization of
a program
– Shown in Figure 13-1
• Flowcharts: Show graphically step-by-step
how a computer program will process data
– Use special symbols and relational operators
– Can be drawn by hand or with flowcharting
software
The Program Development Life Cycle (PDLC)
Understanding Computers: Today and Tomorrow, 13th Edition
12
Flowcharts
Understanding Computers: Today and Tomorrow, 13th Edition
13
• Pseudocode: Uses English-
like statements to outline
the logic of a program
• Unified Modeling Language
(UML) Models: Set of
standard notations for
creating business models
– Widely used in object-
oriented programs
– Includes class diagrams,
use case diagrams, etc.
The Program Development Life Cycle (PDLC)
Understanding Computers: Today and Tomorrow, 13th Edition
14
Unified Modeling Language (UML) Models
Understanding Computers: Today and Tomorrow, 13th Edition
15
The Program Development Life Cycle (PDLC)
– Control structure: A pattern for controlling the flow of
logic in a computer program, module, or method
• Sequence control structure: Series of statements
that follow one another
• Selection control structure: Multiple paths, direction
depends on result of test
– If-then-else
– Case (avoids nested if-then-else statements)
• Repetition control structure: Repeat series of steps
– Do-while
– Do-until
Understanding Computers: Today and Tomorrow, 13th Edition
16
Control Structures
Understanding Computers: Today and Tomorrow, 13th Edition
17
The Program Development Life Cycle (PDLC)
– Good program design:
• Is essential
• Saves time
– Good program design principles:
• Be specific
– All things the program must do need to be
specified
• One-entry-point/one-exit-point rule
• No infinite loops or other logic errors
– Infinite loop: Series of steps that repeat forever
– Design should be tested to ensure logic is correct
• Desk check; tracing tables
– Documentation: Includes design specifications
Understanding Computers: Today and Tomorrow, 13th Edition
18
Good Program Design
Understanding Computers: Today and Tomorrow, 13th Edition
19
Program Design Testing
Understanding Computers: Today and Tomorrow, 13th Edition
20
Program Design Testing
Understanding Computers: Today and Tomorrow, 13th Edition
21
The Program Development Life Cycle (PDLC)
• Program coding: The program code is written using a
programming language.
– When choosing a programming language, consider:
• Suitability to the application
• Integration with other programs
• Standards for the company
• Programmer availability
• Portability if being run on multiple platforms
• Development speed
– Coding creates source code
Understanding Computers: Today and Tomorrow, 13th Edition
22
Coding Standards
– Coding standards: Rules designed to standardize
programming
• Makes programs more readable and easier to
maintain
• Includes the proper use of comments to:
– Identify the programmer and last modification date
– Explain variables used in the program
– Identify the main parts of the program
– Reusable code: Pretested, error-free code segments that
can be used over and over again with minor
modifications
• Can greatly reduce development time
– Documentation: Includes documented source code
Understanding Computers: Today and Tomorrow, 13th Edition
23
Comments
Understanding Computers: Today and Tomorrow, 13th Edition
24
The Program Development Life Cycle (PDLC)
• Program debugging and testing: The process of ensuring
a program is free of errors (bugs) and works as it is
supposed to
– Before they can be debugged, coded programs need
to be translated into executable code
• Source code: Coded program before it is compiled
• Object code: Machine language version of a
program
• Language translator: Program that converts source
code to machine language
Understanding Computers: Today and Tomorrow, 13th Edition
25
The Program Development Life Cycle (PDLC)
– Types of language translators:
• Compilers: Language translator
that converts an entire program
into machine language before
executing it
• Interpreters: Translates one line
of code at one time
• Assemblers: Convert assembly
language programs into
machine language
Understanding Computers: Today and Tomorrow, 13th Edition
26
The Program Development Life Cycle (PDLC)
̶ Preliminary debugging: Finds initial errors
• Compiler errors: Program doesn’t run
− Typically syntax errors: When the
programmer has not followed the rules of
the programming language
• Run time error: Error that occurs when the
program is running
̶ Logic errors: Program will run but produces
incorrect results
̶ Dummy print statements can help locate
logic errors and other run time errors
Understanding Computers: Today and Tomorrow, 13th Edition
27
Preliminary Debugging
Understanding Computers: Today and Tomorrow, 13th Edition
28
Preliminary Debugging
Understanding Computers: Today and Tomorrow, 13th Edition
29
The Program Development Life Cycle (PDLC)
– Testing: Occurs after the program appears to be
correct to find any additional errors
• Should use good test data
• Tests conditions that will occur when the program
is implemented
• Should check for coding omissions (product
quantity allowed to be < 0, etc.)
• Alpha test (inside organization)
• Beta test (outside testers)
– Documentation: Completed program package (user’s
manual, description of software commands,
troubleshooting guide to help with difficulties, etc.)
Understanding Computers: Today and Tomorrow, 13th Edition
30
The Program Development Life Cycle (PDLC)
• Program implementation and maintenance: Installing
and maintaining the program
– Once the system containing the program is up and
running, the implementation process is complete
– Program maintenance: Process of updating software
so it continues to be useful
• Very costly
– Documentation: Amended program package
Understanding Computers: Today and Tomorrow, 13th Edition
31
Quick Quiz
1. Which approach to programming uses the concept of
inheritance?
a. Procedural
b. Object-oriented
c. Aspect-oriented
2. True or False: An infinite loop is an example of a logic
error.
3. A(n)______________________ is a program design tool
that shows graphically step-by-step the actions a
computer program will take.
Answers:
1) b; 2) True; 3) flowchart
Understanding Computers: Today and Tomorrow, 13th Edition
32
Tools for Facilitating
Program Development
• Application Lifecycle Management (ALM): Creating and
managing an application during its entire lifecycle, from
design through retirement
– Tools include:
• Requirements management: Keeping track of and
managing the program requirements as they are
defined and then modified
• Configuration management: Keeping track of the
progress of a program development project
• Issue tracking: Recording issues such as bugs or
other problems that arise during development or
after the system is in place
Understanding Computers: Today and Tomorrow, 13th Edition
33
Tools for Facilitating
Program Development
Understanding Computers: Today and Tomorrow, 13th Edition
34
Tools for Facilitating
Program Development
• Application generator: Software program that helps
programmers develop software
– Macro recorders: Record and play back a series of
keystrokes
– Report and form
generators: Tools that
enable individuals to
prepare reports and
forms quickly
Understanding Computers: Today and Tomorrow, 13th Edition
35
Tools for Facilitating
Program Development
• Device software development tools: Assist with
developing embedded software to be used on devices,
such as cars, ATM machines, consumer devices, etc
• Software development kits (SDKs): Designed for a
particular platform; enables programmers to develop
applications more quickly and easily
– Released by hardware or software companies
– e.g. iPhone SDK
• Application Program Interfaces (APIs): Help applications
interface with a particular operating system
– Often used in conjunction with Web sites
Understanding Computers: Today and Tomorrow, 13th Edition
36
Tools for Facilitating
Program Development
• Rich Internet Application (RIA): Web-based applications
that work like installed software programs
– Desktop RIA can access local files and used without
an Internet connection
– Web-based RIAs are common
– Tools to develop RIAs
• Adobe AIR
Understanding Computers: Today and Tomorrow, 13th Edition
37
Quick Quiz
1. Which of the following is not an Application Lifecycle
Management (ALM) tool?
a. Requirements definition software
b. Code generator
c. Application program interface (API)
2. True or False: A software development kit (SDK) is
designed for a particular platform and allows programmers
to develop applications quickly for that platform.
3. A(n) ______________________ is often used to create the
forms or input screens used to input data into a program or
database.
Answers:
1) c; 2) True; 3) form generator
Understanding Computers: Today and Tomorrow, 13th Edition
38
Programming Languages
• Programming language: A set of rules, words, symbols,
and codes used to write computer programs
– To write a program, you need appropriate software for
the programming language you will be using
• Categories of programming languages
– Low-level languages: Difficult to code in; machine
dependent
• Machine language: 1s and 0s
• Assembly language: Includes some names and
other symbols to replace some of the 1s and 0s in
machine language
Understanding Computers: Today and Tomorrow, 13th Edition
39
Programming Languages
Understanding Computers: Today and Tomorrow, 13th Edition
40
Programming Languages
– High-level languages: Closer to natural languages
• Machine independent
• Includes 3GLs (FORTRAN, BASIC, COBOL,C,
etc.) and object-oriented languages (Visual
Basic, C#, Python, Java, etc.)
• Visual or graphical languages: Use graphical
interface to create programs
– Fourth-generation languages (4GLs): Even closer
to natural languages and easier to work with than
high-level
• Declarative rather than procedural
• Includes structured query language (SQL) used
with databases
Understanding Computers: Today and Tomorrow, 13th Edition
41
Online Video
“Introducing the Scratch Graphical Programming Language”
(click below to start video)
Reminder: The complete set of online videos and video podcasts are available at:
www.cengage.com/computerconcepts/np/uc13
Scratch is developed by
the Lifelong Kindergarten
Group at the MIT Media
Lab. See
http://scratch.mit.edu
Understanding Computers: Today and Tomorrow, 13th Edition
42
Common Programming Languages
• FORTRAN: High-level
programming language
used for mathematical,
scientific, and engineering
applications
– Efficient for math,
engineering and
scientific applications
– Still used today for
high-performance
computing tasks
(weather forecast)
Understanding Computers: Today and Tomorrow, 13th Edition
43
Common Programming Languages
• COBOL: Designed for business transaction processing
– Makes extensive use of modules and submodules
– Being
phased out
in many
organizations
– Evolving
(COBOL.NET)
Understanding Computers: Today and Tomorrow, 13th Edition
44
Common Programming Languages
• Pascal: Created as a teaching tool to encourage
structured programming
– Contains a variety of control structures used to
manipulate modules systematically
Understanding Computers: Today and Tomorrow, 13th Edition
45
Common Programming Languages
• BASIC: Easy-to-learn, high-level programming language
that was developed to be used by beginning
programmers
– Visual Basic: Object-oriented version of BASIC; uses
a visual environment
Understanding Computers: Today and Tomorrow, 13th Edition
46
Common Programming Languages
• C: Designed for system programming
• C++: Object-oriented versions of C
• C#: Used for Web
applications
• Objective-C:
For iPhone and
other Apple
applications
Understanding Computers: Today and Tomorrow, 13th Edition
47
Common Programming Languages
• Java: High-level, object-oriented programming language
frequently used for Web-based applications
– Java programs are compiled into bytecode
– Can run on any computer that includes Java Virtual
Machine (Java VM)
– Can be used to write Java applets
• Scroll text on Web page, games, calculators, etc
– Is one of the most popular programming languages
today
Understanding Computers: Today and Tomorrow, 13th Edition
48
Common Programming Languages
Understanding Computers: Today and Tomorrow, 13th Edition
49
Common Programming Languages
• Python: Open-source, dynamic, object-oriented language
that can be used to develop a variety of applications
– Gaming, scientific, database, and Web applications
– Only recently gaining a following
Understanding Computers: Today and Tomorrow, 13th Edition
50
Common Programming Languages
• Ruby: Open-source, object-oriented language that can
be used to create general-purpose or Web applications
– Uses a syntax that is fairly easy to read and write,
allowing programmers to create database-driven Web
applications easily and quickly
Understanding Computers: Today and Tomorrow, 13th Edition
51
Quick Quiz
1. An example of a high-level programming language is
______________________.
a. Pascal
b. Assembly language
c. Machine language
2. True or False: Visual Basic is an object-oriented version
of COBOL.
3. Java applets are small programs written in the
______________________ programming language.
Answers:
1) a; 2) False; 3) Java
Understanding Computers: Today and Tomorrow, 13th Edition
52
Summary
• Approaches to Program Design and Development
• The Program Development Life Cycle (PDLC)
• Tools for Facilitating Program Development
• Programming Languages

More Related Content

What's hot

Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming LanguageR.h. Himel
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Professor Lili Saghafi
 
Future operating system
Future operating systemFuture operating system
Future operating systemEstiak Khan
 
Swift Tutorial Part 1. The Complete Guide For Swift Programming Language
Swift Tutorial Part 1. The Complete Guide For Swift Programming LanguageSwift Tutorial Part 1. The Complete Guide For Swift Programming Language
Swift Tutorial Part 1. The Complete Guide For Swift Programming LanguageHossam Ghareeb
 
Why programming is important
Why programming is importantWhy programming is important
Why programming is importantAman Kumar
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingGwyneth Calica
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languageskitturashmikittu
 
Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu SharmaMayank Sharma
 
Full Python in 20 slides
Full Python in 20 slidesFull Python in 20 slides
Full Python in 20 slidesrfojdar
 
How to Make a Chatbot in Python | Edureka
How to Make a Chatbot in Python | EdurekaHow to Make a Chatbot in Python | Edureka
How to Make a Chatbot in Python | EdurekaEdureka!
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagespy7rjs
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An IntroductionSwarit Wadhe
 
Intro to Python for Non-Programmers
Intro to Python for Non-ProgrammersIntro to Python for Non-Programmers
Intro to Python for Non-ProgrammersAhmad Alhour
 
Language processors
Language processorsLanguage processors
Language processorseShikshak
 

What's hot (20)

Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
 
Future operating system
Future operating systemFuture operating system
Future operating system
 
Computer
ComputerComputer
Computer
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Swift Tutorial Part 1. The Complete Guide For Swift Programming Language
Swift Tutorial Part 1. The Complete Guide For Swift Programming LanguageSwift Tutorial Part 1. The Complete Guide For Swift Programming Language
Swift Tutorial Part 1. The Complete Guide For Swift Programming Language
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Why programming is important
Why programming is importantWhy programming is important
Why programming is important
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languages
 
Introduction to Python Basics Programming
Introduction to Python Basics ProgrammingIntroduction to Python Basics Programming
Introduction to Python Basics Programming
 
Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
 
Full Python in 20 slides
Full Python in 20 slidesFull Python in 20 slides
Full Python in 20 slides
 
How to Make a Chatbot in Python | Edureka
How to Make a Chatbot in Python | EdurekaHow to Make a Chatbot in Python | Edureka
How to Make a Chatbot in Python | Edureka
 
Python Tutorial Part 2
Python Tutorial Part 2Python Tutorial Part 2
Python Tutorial Part 2
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
 
Intro to Python for Non-Programmers
Intro to Python for Non-ProgrammersIntro to Python for Non-Programmers
Intro to Python for Non-Programmers
 
Language processors
Language processorsLanguage processors
Language processors
 

Similar to Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Program Development and Programming Languages

Uc14 chap13
Uc14 chap13Uc14 chap13
Uc14 chap13ayahye
 
programming and languages (chapter 14)
programming and languages (chapter 14)programming and languages (chapter 14)
programming and languages (chapter 14)Fadilah Badari
 
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.pdflailoesakhan
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai1
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai
 
chapter12 - Software engineering.pdf
chapter12 - Software engineering.pdfchapter12 - Software engineering.pdf
chapter12 - Software engineering.pdfsatonaka3
 
The Software Engineering Discipline and Evolution of S/W Engineering Methodol...
The Software Engineering Discipline and Evolution of S/W Engineering Methodol...The Software Engineering Discipline and Evolution of S/W Engineering Methodol...
The Software Engineering Discipline and Evolution of S/W Engineering Methodol...Santhia RK
 
Software Development Methodologies.pptx
Software Development Methodologies.pptxSoftware Development Methodologies.pptx
Software Development Methodologies.pptxMohamedElshaikh10
 
UC13.Chapter.06.ppt
UC13.Chapter.06.pptUC13.Chapter.06.ppt
UC13.Chapter.06.pptMrUmairKhan1
 
COM1407: Structured Program Development
COM1407: Structured Program Development COM1407: Structured Program Development
COM1407: Structured Program Development Hemantha Kulathilake
 
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
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06ayahye
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software EngineeringSADEED AMEEN
 

Similar to Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Program Development and Programming Languages (20)

Uc14 chap13
Uc14 chap13Uc14 chap13
Uc14 chap13
 
Uc14 chap13
Uc14 chap13Uc14 chap13
Uc14 chap13
 
programming and languages (chapter 14)
programming and languages (chapter 14)programming and languages (chapter 14)
programming and languages (chapter 14)
 
ITE 101 - Week 5
ITE 101 - Week 5ITE 101 - Week 5
ITE 101 - Week 5
 
Chap1
Chap1Chap1
Chap1
 
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
 
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
 
chapter12 - Software engineering.pdf
chapter12 - Software engineering.pdfchapter12 - Software engineering.pdf
chapter12 - Software engineering.pdf
 
The Software Engineering Discipline and Evolution of S/W Engineering Methodol...
The Software Engineering Discipline and Evolution of S/W Engineering Methodol...The Software Engineering Discipline and Evolution of S/W Engineering Methodol...
The Software Engineering Discipline and Evolution of S/W Engineering Methodol...
 
Software Development Methodologies.pptx
Software Development Methodologies.pptxSoftware Development Methodologies.pptx
Software Development Methodologies.pptx
 
UC13.Chapter.06.ppt
UC13.Chapter.06.pptUC13.Chapter.06.ppt
UC13.Chapter.06.ppt
 
Uc13.chapter.06
Uc13.chapter.06Uc13.chapter.06
Uc13.chapter.06
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
COM1407: Structured Program Development
COM1407: Structured Program Development COM1407: Structured Program Development
COM1407: Structured Program Development
 
CIS110 Computer Programming Design Chapter (1)
CIS110 Computer Programming Design Chapter  (1)CIS110 Computer Programming Design Chapter  (1)
CIS110 Computer Programming Design Chapter (1)
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
 

More from yaminohime

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - Storage
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - StorageUnderstanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - Storage
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - Storageyaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...yaminohime
 
The Road Not Taken by Robert Frost
The Road Not Taken by Robert FrostThe Road Not Taken by Robert Frost
The Road Not Taken by Robert Frostyaminohime
 
Sa Aking mga Kabata ni Jose Rizal
Sa Aking mga Kabata ni Jose RizalSa Aking mga Kabata ni Jose Rizal
Sa Aking mga Kabata ni Jose Rizalyaminohime
 
Plop! Click! ni Dobu Kacchiri
Plop! Click! ni Dobu KacchiriPlop! Click! ni Dobu Kacchiri
Plop! Click! ni Dobu Kacchiriyaminohime
 
Kay Estrella Zeehandelaar
Kay Estrella ZeehandelaarKay Estrella Zeehandelaar
Kay Estrella Zeehandelaaryaminohime
 
Isangdaang Damit ni Fanny Garcia
Isangdaang Damit ni Fanny GarciaIsangdaang Damit ni Fanny Garcia
Isangdaang Damit ni Fanny Garciayaminohime
 
Ang Kwento ni Mabuti ni Genoveva Matute
Ang Kwento ni Mabuti ni Genoveva MatuteAng Kwento ni Mabuti ni Genoveva Matute
Ang Kwento ni Mabuti ni Genoveva Matuteyaminohime
 

More from yaminohime (19)

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - Storage
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - StorageUnderstanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - Storage
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 3 - Storage
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 15 - Comput...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 7 - Compute...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 5 - System ...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 2 - The Sys...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 1 - Introdu...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
 
The Road Not Taken by Robert Frost
The Road Not Taken by Robert FrostThe Road Not Taken by Robert Frost
The Road Not Taken by Robert Frost
 
Sa Aking mga Kabata ni Jose Rizal
Sa Aking mga Kabata ni Jose RizalSa Aking mga Kabata ni Jose Rizal
Sa Aking mga Kabata ni Jose Rizal
 
Plop! Click! ni Dobu Kacchiri
Plop! Click! ni Dobu KacchiriPlop! Click! ni Dobu Kacchiri
Plop! Click! ni Dobu Kacchiri
 
Kay Estrella Zeehandelaar
Kay Estrella ZeehandelaarKay Estrella Zeehandelaar
Kay Estrella Zeehandelaar
 
Isangdaang Damit ni Fanny Garcia
Isangdaang Damit ni Fanny GarciaIsangdaang Damit ni Fanny Garcia
Isangdaang Damit ni Fanny Garcia
 
Ang Kwento ni Mabuti ni Genoveva Matute
Ang Kwento ni Mabuti ni Genoveva MatuteAng Kwento ni Mabuti ni Genoveva Matute
Ang Kwento ni Mabuti ni Genoveva Matute
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Program Development and Programming Languages

  • 1. Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13: Program Development and Programming Languages
  • 2. Understanding Computers: Today and Tomorrow, 13th Edition 2 Learning Objectives 1. Understand the differences between structured programming, object-oriented programming (OOP), aspect-oriented programming (AOP), and adaptive software development. 2. Identify and describe the activities involved in the program development life cycle (PDLC). 3. Understand what constitutes good program design and list several tools that can be used by computer professionals when designing a program.
  • 3. Understanding Computers: Today and Tomorrow, 13th Edition 3 Learning Objectives 4. Explain the three basic control structures and how they can be used to control program flow during execution. 5. Discuss some of the activities involved with debugging a program and otherwise ensuring it is designed and written properly. 6. List some tools that can be used to speed up or otherwise facilitate the program development process. 7. Describe several programming languages in use today and explain their key features.
  • 4. Understanding Computers: Today and Tomorrow, 13th Edition 4 Overview • This chapter covers: – The most common approaches to program design and development – The phases of the program development life cycle (PDLC) – Tools that can be used to design and develop a program – Good program design techniques and types of program errors – Common programming languages
  • 5. Understanding Computers: Today and Tomorrow, 13th Edition 5 Approaches to Program Design and Development • Procedural programming: An approach to program design in which a program is separated into small modules that are called by the main program or another module when needed – Uses procedures (modules, subprograms): Smaller sections of code that perform specific tasks – Allows each procedure to be performed as many times as needed; multiple copies of code not needed – Prior to procedural programming, programs were one large set of instructions (used GOTO statements) – Structured programming: Goes even further, breaking the program into small modules (Top-down design)
  • 6. Understanding Computers: Today and Tomorrow, 13th Edition 6 Approaches to Program Design and Development – Variables: Named memory locations that are defined for a program • Used to store the current value of data items used in the program
  • 7. Understanding Computers: Today and Tomorrow, 13th Edition 7 Approaches to Program Design and Development • Object-oriented programming (OOP): Programs consist of a collection of objects that contain data and methods to be used with that data – Class: Group of objects that share some common properties – Instance: An individual object in a class – Attributes: Data about the state of an object – Methods: Perform actions on an object – Objects can perform nontraditional actions and be easily used by more than one program
  • 8. Understanding Computers: Today and Tomorrow, 13th Edition 8 Approaches to Program Design and Development • Aspect-oriented programming (AOP): Separates functions so program components can be developed and modified individually from one another – The components can be easily reused with separate nonrelated objects • Adaptive software development: Designed to make program development faster and more efficient and focus on adapting the program as it is being written – Iterative and/or incremental – Includes RAD (rapid application development) and extreme programming (XP) – Agile software development: Focuses on building small functional program pieces during the project
  • 9. Understanding Computers: Today and Tomorrow, 13th Edition 9 The Program Development Life Cycle (PDLC) • Program development: The process of creating application programs • Program development life cycle (PDLC): The process containing the five phases of program development
  • 10. Understanding Computers: Today and Tomorrow, 13th Edition 10 • Problem analysis: The problem is considered and the program specifications are developed – Specifications developed during the PDLC are reviewed by the systems analyst and the programmer (the person who will code the program) – Goal: To understand the functions the software must perform – Documentation: Includes program specifications (what it does, timetable, programming language to be used, etc) The Program Development Life Cycle (PDLC)
  • 11. Understanding Computers: Today and Tomorrow, 13th Edition 11 • Program design: The program specifications are expanded into a complete design of the new program – Good program design is extremely important – Program design tools • Structure charts: Depict the overall organization of a program – Shown in Figure 13-1 • Flowcharts: Show graphically step-by-step how a computer program will process data – Use special symbols and relational operators – Can be drawn by hand or with flowcharting software The Program Development Life Cycle (PDLC)
  • 12. Understanding Computers: Today and Tomorrow, 13th Edition 12 Flowcharts
  • 13. Understanding Computers: Today and Tomorrow, 13th Edition 13 • Pseudocode: Uses English- like statements to outline the logic of a program • Unified Modeling Language (UML) Models: Set of standard notations for creating business models – Widely used in object- oriented programs – Includes class diagrams, use case diagrams, etc. The Program Development Life Cycle (PDLC)
  • 14. Understanding Computers: Today and Tomorrow, 13th Edition 14 Unified Modeling Language (UML) Models
  • 15. Understanding Computers: Today and Tomorrow, 13th Edition 15 The Program Development Life Cycle (PDLC) – Control structure: A pattern for controlling the flow of logic in a computer program, module, or method • Sequence control structure: Series of statements that follow one another • Selection control structure: Multiple paths, direction depends on result of test – If-then-else – Case (avoids nested if-then-else statements) • Repetition control structure: Repeat series of steps – Do-while – Do-until
  • 16. Understanding Computers: Today and Tomorrow, 13th Edition 16 Control Structures
  • 17. Understanding Computers: Today and Tomorrow, 13th Edition 17 The Program Development Life Cycle (PDLC) – Good program design: • Is essential • Saves time – Good program design principles: • Be specific – All things the program must do need to be specified • One-entry-point/one-exit-point rule • No infinite loops or other logic errors – Infinite loop: Series of steps that repeat forever – Design should be tested to ensure logic is correct • Desk check; tracing tables – Documentation: Includes design specifications
  • 18. Understanding Computers: Today and Tomorrow, 13th Edition 18 Good Program Design
  • 19. Understanding Computers: Today and Tomorrow, 13th Edition 19 Program Design Testing
  • 20. Understanding Computers: Today and Tomorrow, 13th Edition 20 Program Design Testing
  • 21. Understanding Computers: Today and Tomorrow, 13th Edition 21 The Program Development Life Cycle (PDLC) • Program coding: The program code is written using a programming language. – When choosing a programming language, consider: • Suitability to the application • Integration with other programs • Standards for the company • Programmer availability • Portability if being run on multiple platforms • Development speed – Coding creates source code
  • 22. Understanding Computers: Today and Tomorrow, 13th Edition 22 Coding Standards – Coding standards: Rules designed to standardize programming • Makes programs more readable and easier to maintain • Includes the proper use of comments to: – Identify the programmer and last modification date – Explain variables used in the program – Identify the main parts of the program – Reusable code: Pretested, error-free code segments that can be used over and over again with minor modifications • Can greatly reduce development time – Documentation: Includes documented source code
  • 23. Understanding Computers: Today and Tomorrow, 13th Edition 23 Comments
  • 24. Understanding Computers: Today and Tomorrow, 13th Edition 24 The Program Development Life Cycle (PDLC) • Program debugging and testing: The process of ensuring a program is free of errors (bugs) and works as it is supposed to – Before they can be debugged, coded programs need to be translated into executable code • Source code: Coded program before it is compiled • Object code: Machine language version of a program • Language translator: Program that converts source code to machine language
  • 25. Understanding Computers: Today and Tomorrow, 13th Edition 25 The Program Development Life Cycle (PDLC) – Types of language translators: • Compilers: Language translator that converts an entire program into machine language before executing it • Interpreters: Translates one line of code at one time • Assemblers: Convert assembly language programs into machine language
  • 26. Understanding Computers: Today and Tomorrow, 13th Edition 26 The Program Development Life Cycle (PDLC) ̶ Preliminary debugging: Finds initial errors • Compiler errors: Program doesn’t run − Typically syntax errors: When the programmer has not followed the rules of the programming language • Run time error: Error that occurs when the program is running ̶ Logic errors: Program will run but produces incorrect results ̶ Dummy print statements can help locate logic errors and other run time errors
  • 27. Understanding Computers: Today and Tomorrow, 13th Edition 27 Preliminary Debugging
  • 28. Understanding Computers: Today and Tomorrow, 13th Edition 28 Preliminary Debugging
  • 29. Understanding Computers: Today and Tomorrow, 13th Edition 29 The Program Development Life Cycle (PDLC) – Testing: Occurs after the program appears to be correct to find any additional errors • Should use good test data • Tests conditions that will occur when the program is implemented • Should check for coding omissions (product quantity allowed to be < 0, etc.) • Alpha test (inside organization) • Beta test (outside testers) – Documentation: Completed program package (user’s manual, description of software commands, troubleshooting guide to help with difficulties, etc.)
  • 30. Understanding Computers: Today and Tomorrow, 13th Edition 30 The Program Development Life Cycle (PDLC) • Program implementation and maintenance: Installing and maintaining the program – Once the system containing the program is up and running, the implementation process is complete – Program maintenance: Process of updating software so it continues to be useful • Very costly – Documentation: Amended program package
  • 31. Understanding Computers: Today and Tomorrow, 13th Edition 31 Quick Quiz 1. Which approach to programming uses the concept of inheritance? a. Procedural b. Object-oriented c. Aspect-oriented 2. True or False: An infinite loop is an example of a logic error. 3. A(n)______________________ is a program design tool that shows graphically step-by-step the actions a computer program will take. Answers: 1) b; 2) True; 3) flowchart
  • 32. Understanding Computers: Today and Tomorrow, 13th Edition 32 Tools for Facilitating Program Development • Application Lifecycle Management (ALM): Creating and managing an application during its entire lifecycle, from design through retirement – Tools include: • Requirements management: Keeping track of and managing the program requirements as they are defined and then modified • Configuration management: Keeping track of the progress of a program development project • Issue tracking: Recording issues such as bugs or other problems that arise during development or after the system is in place
  • 33. Understanding Computers: Today and Tomorrow, 13th Edition 33 Tools for Facilitating Program Development
  • 34. Understanding Computers: Today and Tomorrow, 13th Edition 34 Tools for Facilitating Program Development • Application generator: Software program that helps programmers develop software – Macro recorders: Record and play back a series of keystrokes – Report and form generators: Tools that enable individuals to prepare reports and forms quickly
  • 35. Understanding Computers: Today and Tomorrow, 13th Edition 35 Tools for Facilitating Program Development • Device software development tools: Assist with developing embedded software to be used on devices, such as cars, ATM machines, consumer devices, etc • Software development kits (SDKs): Designed for a particular platform; enables programmers to develop applications more quickly and easily – Released by hardware or software companies – e.g. iPhone SDK • Application Program Interfaces (APIs): Help applications interface with a particular operating system – Often used in conjunction with Web sites
  • 36. Understanding Computers: Today and Tomorrow, 13th Edition 36 Tools for Facilitating Program Development • Rich Internet Application (RIA): Web-based applications that work like installed software programs – Desktop RIA can access local files and used without an Internet connection – Web-based RIAs are common – Tools to develop RIAs • Adobe AIR
  • 37. Understanding Computers: Today and Tomorrow, 13th Edition 37 Quick Quiz 1. Which of the following is not an Application Lifecycle Management (ALM) tool? a. Requirements definition software b. Code generator c. Application program interface (API) 2. True or False: A software development kit (SDK) is designed for a particular platform and allows programmers to develop applications quickly for that platform. 3. A(n) ______________________ is often used to create the forms or input screens used to input data into a program or database. Answers: 1) c; 2) True; 3) form generator
  • 38. Understanding Computers: Today and Tomorrow, 13th Edition 38 Programming Languages • Programming language: A set of rules, words, symbols, and codes used to write computer programs – To write a program, you need appropriate software for the programming language you will be using • Categories of programming languages – Low-level languages: Difficult to code in; machine dependent • Machine language: 1s and 0s • Assembly language: Includes some names and other symbols to replace some of the 1s and 0s in machine language
  • 39. Understanding Computers: Today and Tomorrow, 13th Edition 39 Programming Languages
  • 40. Understanding Computers: Today and Tomorrow, 13th Edition 40 Programming Languages – High-level languages: Closer to natural languages • Machine independent • Includes 3GLs (FORTRAN, BASIC, COBOL,C, etc.) and object-oriented languages (Visual Basic, C#, Python, Java, etc.) • Visual or graphical languages: Use graphical interface to create programs – Fourth-generation languages (4GLs): Even closer to natural languages and easier to work with than high-level • Declarative rather than procedural • Includes structured query language (SQL) used with databases
  • 41. Understanding Computers: Today and Tomorrow, 13th Edition 41 Online Video “Introducing the Scratch Graphical Programming Language” (click below to start video) Reminder: The complete set of online videos and video podcasts are available at: www.cengage.com/computerconcepts/np/uc13 Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu
  • 42. Understanding Computers: Today and Tomorrow, 13th Edition 42 Common Programming Languages • FORTRAN: High-level programming language used for mathematical, scientific, and engineering applications – Efficient for math, engineering and scientific applications – Still used today for high-performance computing tasks (weather forecast)
  • 43. Understanding Computers: Today and Tomorrow, 13th Edition 43 Common Programming Languages • COBOL: Designed for business transaction processing – Makes extensive use of modules and submodules – Being phased out in many organizations – Evolving (COBOL.NET)
  • 44. Understanding Computers: Today and Tomorrow, 13th Edition 44 Common Programming Languages • Pascal: Created as a teaching tool to encourage structured programming – Contains a variety of control structures used to manipulate modules systematically
  • 45. Understanding Computers: Today and Tomorrow, 13th Edition 45 Common Programming Languages • BASIC: Easy-to-learn, high-level programming language that was developed to be used by beginning programmers – Visual Basic: Object-oriented version of BASIC; uses a visual environment
  • 46. Understanding Computers: Today and Tomorrow, 13th Edition 46 Common Programming Languages • C: Designed for system programming • C++: Object-oriented versions of C • C#: Used for Web applications • Objective-C: For iPhone and other Apple applications
  • 47. Understanding Computers: Today and Tomorrow, 13th Edition 47 Common Programming Languages • Java: High-level, object-oriented programming language frequently used for Web-based applications – Java programs are compiled into bytecode – Can run on any computer that includes Java Virtual Machine (Java VM) – Can be used to write Java applets • Scroll text on Web page, games, calculators, etc – Is one of the most popular programming languages today
  • 48. Understanding Computers: Today and Tomorrow, 13th Edition 48 Common Programming Languages
  • 49. Understanding Computers: Today and Tomorrow, 13th Edition 49 Common Programming Languages • Python: Open-source, dynamic, object-oriented language that can be used to develop a variety of applications – Gaming, scientific, database, and Web applications – Only recently gaining a following
  • 50. Understanding Computers: Today and Tomorrow, 13th Edition 50 Common Programming Languages • Ruby: Open-source, object-oriented language that can be used to create general-purpose or Web applications – Uses a syntax that is fairly easy to read and write, allowing programmers to create database-driven Web applications easily and quickly
  • 51. Understanding Computers: Today and Tomorrow, 13th Edition 51 Quick Quiz 1. An example of a high-level programming language is ______________________. a. Pascal b. Assembly language c. Machine language 2. True or False: Visual Basic is an object-oriented version of COBOL. 3. Java applets are small programs written in the ______________________ programming language. Answers: 1) a; 2) False; 3) Java
  • 52. Understanding Computers: Today and Tomorrow, 13th Edition 52 Summary • Approaches to Program Design and Development • The Program Development Life Cycle (PDLC) • Tools for Facilitating Program Development • Programming Languages