SlideShare a Scribd company logo
1 of 69
Chapter 13:

Program Development
and Programming
Languages
Learning Objectives
1. Understand the differences between structured
programming, object-oriented programming (OOP), aspectoriented 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, 14th Edition

2
2
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, 14th Edition

3
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, 14th Edition

4
4
Approaches to 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
• Procedure call—locating specific tasks in procedures
(modules or subprograms) that are called by the main
program when needed
• 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)
Understanding Computers: Today and Tomorrow, 14th Edition

5
Approaches to Design and
Development
• Structured Programming
– Goes even further, breaking the program into small
modules (Top-down design)
– 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, 14th Edition

6
Approaches to Design and
Development

Understanding Computers: Today and Tomorrow, 14th Edition

7
Approaches to 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
Understanding Computers: Today and Tomorrow, 14th Edition

8
Approaches to Design and
Development
• 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, 14th Edition

9
Approaches to 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 focuses on adapting the program as it is being
written
• Iterative and/or incremental

Understanding Computers: Today and Tomorrow, 14th Edition

10
Approaches to Design and
Development
• Agile software development
– Goal is to create software rapidly
– Focuses on building small functional program pieces
during the project
– Includes earlier adaptive software approaches such
as RAD (rapid application development) and
extreme programming (XP)

Understanding Computers: Today and Tomorrow, 14th Edition

11
The Program Development
Life Cycle (PDLC)
• Program Development
(application software
development)
– The process of
creating
application
programs
• Program Development
Life Cycle (PDLC)
– The five phases of
program
development
Understanding Computers: Today and Tomorrow, 14th Edition

12
The Program Development
Life Cycle (PDLC)
• 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 is to understand the functions the software must
perform
– Documentation: Program Specifications
• Result of the first phase of the PDLC outlining what the
program must do
Understanding Computers: Today and Tomorrow, 14th Edition

13
The Program Development
Life Cycle (PDLC)
• Program Design
– The program specifications are expanded into a complete
design of the new program
• Algorithm for the program is developed
• Careful planning and design of a computer program are
extremely important
– Program Design Tools
• Planning tools that include diagrams, charts, tables, and
models
• Structure Charts (hierarchy charts)
– Depict the overall organization of a program
Understanding Computers: Today and Tomorrow, 14th Edition

14
The Program Development
Life Cycle (PDLC)
• 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
• Pseudocode
– Uses English-like statements to outline the logic of a
program rather than the flowchart’s graphical
symbols

Understanding Computers: Today and Tomorrow, 14th Edition

15
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

16
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

17
The Program Development
Life Cycle (PDLC)
• Unified Modeling
Language (UML)
Models
– Set of standard
notations for
creating business
models
– Widely used in
object-oriented
programs
– Includes class
diagrams and case
diagrams
Understanding Computers: Today and Tomorrow, 14th Edition

18
The Program Development
Life Cycle (PDLC)
– Control Structures
• A pattern for controlling
the flow of logic in a
computer program,
module, or method
• The Sequence Control
Structure
– Series of statements
that follow one
another

Understanding Computers: Today and Tomorrow, 14th Edition

19
The Program Development
Life Cycle (PDLC)
• The Selection Control Structure
– Multiple paths, direction depends on result of a
certain condition
» If-then-else
– Case control structure
» Allows for as many possible results of the
specified condition as needed
• Repetition Control Structure (iteration control structure)
– Repeat series of steps
» Do-while
» Do-until
Understanding Computers: Today and Tomorrow, 14th Edition

20
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

21
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 or consider must
be specified
– Follow the One-Entry-Point/One-Exit-Point Rule
– No Infinite Loops or Logic Errors
» Infinite loop is a series of steps that repeat
forever

Understanding Computers: Today and Tomorrow, 14th Edition

22
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

23
The Program Development
Life Cycle (PDLC)
– Program Design Testing
• Design should be tested to ensure logic is correct
– Desk check
– Tracing tables
– Documentation: Design Specifications
• Illustrates the program needed to fulfill the program
requirements
• Expressed using structure
charts, flowcharts, pseudocode, and UML models
• Include any test data and results from desk checking

Understanding Computers: Today and Tomorrow, 14th Edition

24
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

25
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

26
The Program Development
Life Cycle (PDLC)
• Program Coding
– The program code is written using a programming
language
– Choosing a Programming Language
• Suitability to the application
• Integration with other programs
• Standards for the company
• Programmer availability
• Portability if being run on multiple platforms
• Development speed
Understanding Computers: Today and Tomorrow, 14th Edition

27
The Program Development
Life Cycle (PDLC)
– The Coding Process
• 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

Understanding Computers: Today and Tomorrow, 14th Edition

28
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

29
The Program Development
Life Cycle (PDLC)
– Reusable code
• Pretested, error-free code segments that can be
used over and over again with minor modifications
• Can greatly reduce development time
– Documentation: Documented Source Code
• Program coding phase results in the program written in
the desired programming language
• Should include enough comments (internal
documentation) so that the source code is easy to
understand and update

Understanding Computers: Today and Tomorrow, 14th Edition

30
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
– Translating Coded Programs into Executable Code
• Coded programs need to be translated from source
code written by the programmer to object code the
computer can execute
• Converted using a language translator
– Program that converts source code to machine
language

Understanding Computers: Today and Tomorrow, 14th Edition

31
The Program Development
Life Cycle (PDLC)
– Compilers
» Language translator that converts an entire
program into machine language before
executing it
» Designed for specific programming languages
such as Java or Python
– Interpreters
» Translates one line of code at one time
– Assemblers
» Convert assembly language programs into
machine language
Understanding Computers: Today and Tomorrow, 14th Edition

32
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

33
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

34
The Program Development
Life Cycle (PDLC)
– Preliminary Debugging
• Compiler and Syntax Errors
– As programs are compiled or interpreted, errors
occur which prevent the program from running
properly
− Syntax errors occur when the programmer has not
followed the rules of the programming language
• Run Time and Logic Errors
– Run time errors occur when the program is running

Understanding Computers: Today and Tomorrow, 14th Edition

35
The Program Development
Life Cycle (PDLC)
– Logic errors are errors in the logic of the program
» 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, 14th Edition

36
The Program Development
Life Cycle (PDLC)

Understanding Computers: Today and Tomorrow, 14th Edition

37
The Program Development
Life Cycle (PDLC)
– Testing
• Occurs after the program appears to be correct to find
any additional errors
• Uses good test data—data that is very similar to the
actual data that will be used in the program
• Tests conditions that will occur when the program is
implemented
• Checks for coding omissions (i.e., product quantity
allowed to be < 0)

Understanding Computers: Today and Tomorrow, 14th Edition

38
The Program Development
Life Cycle (PDLC)
• Two stages
– Alpha test—internal on-site test
– Beta test—outside test
– Documentation: Completed Program Package
• Copy of the test data, test results, finished program
code, and other documentation generated during the
testing phase should be added to the program package
– Developer documentation
– User documentation

Understanding Computers: Today and Tomorrow, 14th Edition

39
The Program Development
Life Cycle (PDLC)
• Program Implementation and Maintenance
– 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
• Program package should be updated to reflect new
problems or issues that occur and what changes to the
program were necessary
Understanding Computers: Today and Tomorrow, 14th Edition

40
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, 14th Edition

41
Tools for Facilitating Program
Development
• Application Lifecycle Management (ALM) Tools
– 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
Understanding Computers: Today and Tomorrow, 14th Edition

42
Tools for Facilitating Program
Development
• 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, 14th Edition

43
Tools for Facilitating Program
Development
• Application Generators
– Software program that helps programmers develop
software
– Macros
• Record and play back a series of keystrokes
• Programmers write them in a macro programming
language such as Visual Basic for Applications
– Report and Form Generators
• Tools that enable individuals to prepare reports and
forms quickly

Understanding Computers: Today and Tomorrow, 14th Edition

44
Tools for Facilitating Program
Development

Understanding Computers: Today and Tomorrow, 14th Edition

45
Tools for Facilitating Program
Development
• Device Software Development Tools
– Assist with developing embedded software to be used on
devices, such as cars, ATM machines, and consumer
devices
• Software Development Kits (SDKs) and Application Program
Interfaces (APIs)
– Designed for a particular platform
– Enables programmers to develop applications more quickly
and easily
• Often released by hardware or software companies
– iOS SDK—allows third party developers to create
new applications for iPhone, iPad, iPod Touch
Understanding Computers: Today and Tomorrow, 14th Edition

46
Tools for Facilitating Program
Development
• Application Program Interfaces (APIs)
– Help applications interface with a particular
operating system
• Often used in conjunction with Web sites
• Rich Internet Application (RIA) Tools
– 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, 14th Edition

47
Tools for Facilitating Program
Development

Understanding Computers: Today and Tomorrow, 14th Edition

48
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, 14th Edition

49
Programming Languages
• What is a Programming Language?
– A set of rules, words, symbols, and codes used to write
computer programs
– To write a program, appropriate software for the
programming language being used is needed
• Categories of Programming Languages
– Types of programs they are designed to create
• Procedural languages or object-oriented languages
– How evolved the programming language is
• Levels or generations
Understanding Computers: Today and Tomorrow, 14th Edition

50
Programming Languages
– Low-Level Languages (earliest programming languages)
• Machine language
– Written at a very low level, just using 1s and 0s
– First generation of programming languages
• Assembly language
– Includes some names and other symbols to replace
some of the 1s and 0s in machine language
– Second generation of programming languages
– Machine dependent
» Written for one specific type of computer
Understanding Computers: Today and Tomorrow, 14th Edition

51
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

52
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
– Designed for educational purposes

Understanding Computers: Today and Tomorrow, 14th Edition

53
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

54
Programming Languages
– 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
• Common Programming Languages
– Languages not widely used today
• Logo (teach children how to program)
• PL/1 (business and scientific applications
• Prolog and LISP (artificial intelligence)
• SmallTalk (one of the first object-oriented languages)
Understanding Computers: Today and Tomorrow, 14th Edition

55
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 forecasting)
• Fortress may eventually
replace FORTRAN
Understanding Computers: Today and Tomorrow, 14th Edition

56
Programming Languages
– COBOL
• Designed for business transaction processing
• Makes extensive use of modules
• Strength lies in batch processing and its stability
• Programs are lengthy and take a long time to write
• Considered to be outdated by some
• New versions are evolving
– COBOL.NET

Understanding Computers: Today and Tomorrow, 14th Edition

57
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

58
Programming Languages
– Pascal
• Named after mathematician Blaise Pascal
• Created as a teaching tool to encourage structured
programming
• Contains a variety of control structures used to
manipulate modules systematically
– BASIC and Visual 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, 14th Edition

59
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

60
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

61
Programming Languages
– C, C++, and C#
•C
– Much closer to assembly language than other highlevel languages
– Designed for system programming
• C++
– Object-oriented versions of C
– Very popular for graphical applications
• C# (C sharp)
– Used to create Web applications and XML-based
Web services
• Objective-C:
– For iPhone and other Apple applications
Understanding Computers: Today and Tomorrow, 14th Edition

62
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

63
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, 14th Edition

64
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

65
Programming Languages
– Python
• Opensource, dynamic, objectoriented language that
can be used to develop a
variety of applications
• Gaming, scientific, databa
se, and Web applications
• Used by large
organizations such as
NASA, Google, Honeywell,
New York Stock
Exchange, and some
colleges such as MIT
Understanding Computers: Today and Tomorrow, 14th Edition

66
Programming Languages
– Ruby
• Open-source, object-oriented language that can be
used to create Web applications and general-purpose
programming for Linux, Mac OS X, and Microsoft
Windows computers
• 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, 14th Edition

67
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, 14th Edition

68
Summary
•
•
•
•

Approaches to Program Design and Development
The Program Development Life Cycle (PDLC)
Tools for Facilitating Program Development
Programming Languages

Understanding Computers: Today and Tomorrow, 14th Edition

69

More Related Content

What's hot

software project management Assumption about conventional model
software project management Assumption about conventional modelsoftware project management Assumption about conventional model
software project management Assumption about conventional modelREHMAT ULLAH
 
Enabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial ExperiencesEnabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial Experiencesabgolla
 
Software Development Life Cycle - SDLC
Software Development Life Cycle - SDLCSoftware Development Life Cycle - SDLC
Software Development Life Cycle - SDLCShwetha-BA
 
CS 414 (IT Project Management)
CS 414 (IT Project Management)CS 414 (IT Project Management)
CS 414 (IT Project Management)raszky
 
Software Project Mangmement (Lecture 5)
Software Project Mangmement (Lecture 5)Software Project Mangmement (Lecture 5)
Software Project Mangmement (Lecture 5)Syed Muhammad Hammad
 
Agile & Open Unified Processes
Agile & Open Unified ProcessesAgile & Open Unified Processes
Agile & Open Unified Processesdcsunu
 
Software Project Management (lecture 3)
Software Project Management (lecture 3)Software Project Management (lecture 3)
Software Project Management (lecture 3)Syed Muhammad Hammad
 

What's hot (15)

software project management Assumption about conventional model
software project management Assumption about conventional modelsoftware project management Assumption about conventional model
software project management Assumption about conventional model
 
Enabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial ExperiencesEnabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial Experiences
 
Lect3 ch15-unit2
Lect3 ch15-unit2Lect3 ch15-unit2
Lect3 ch15-unit2
 
Software Development Life Cycle - SDLC
Software Development Life Cycle - SDLCSoftware Development Life Cycle - SDLC
Software Development Life Cycle - SDLC
 
Spm1
Spm1Spm1
Spm1
 
Spm lecture-2
Spm lecture-2Spm lecture-2
Spm lecture-2
 
CS 414 (IT Project Management)
CS 414 (IT Project Management)CS 414 (IT Project Management)
CS 414 (IT Project Management)
 
Software Project Mangmement (Lecture 5)
Software Project Mangmement (Lecture 5)Software Project Mangmement (Lecture 5)
Software Project Mangmement (Lecture 5)
 
Sysdev
SysdevSysdev
Sysdev
 
Spm lecture 1
Spm lecture 1Spm lecture 1
Spm lecture 1
 
Spm lecture-3
Spm lecture-3Spm lecture-3
Spm lecture-3
 
software project management
software project managementsoftware project management
software project management
 
Agile & Open Unified Processes
Agile & Open Unified ProcessesAgile & Open Unified Processes
Agile & Open Unified Processes
 
Primavera P6 Online Training
Primavera  P6 Online TrainingPrimavera  P6 Online Training
Primavera P6 Online Training
 
Software Project Management (lecture 3)
Software Project Management (lecture 3)Software Project Management (lecture 3)
Software Project Management (lecture 3)
 

Viewers also liked

Bay gio va mai mai
Bay gio va mai maiBay gio va mai mai
Bay gio va mai maidinhnam0007
 
Final Paper Requirement
Final Paper RequirementFinal Paper Requirement
Final Paper RequirementJaniel Pantua
 
Chuyen tau 16h50
Chuyen tau 16h50Chuyen tau 16h50
Chuyen tau 16h50dinhnam0007
 
David Lindenmayer_Successful delivery of critical ecosystem research infrastr...
David Lindenmayer_Successful delivery of critical ecosystem research infrastr...David Lindenmayer_Successful delivery of critical ecosystem research infrastr...
David Lindenmayer_Successful delivery of critical ecosystem research infrastr...TERN Australia
 
KSU Nursing Class of Summer 2014 Pinning Slideshow
KSU Nursing Class of Summer 2014 Pinning SlideshowKSU Nursing Class of Summer 2014 Pinning Slideshow
KSU Nursing Class of Summer 2014 Pinning Slideshowlindsbsutton
 
【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン
【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン
【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザインclouddesign
 
Letempsdu Muguet
Letempsdu MuguetLetempsdu Muguet
Letempsdu Muguetguest7bc3ca
 

Viewers also liked (14)

Presentacion margot cuaran
Presentacion margot cuaranPresentacion margot cuaran
Presentacion margot cuaran
 
Bay gio va mai mai
Bay gio va mai maiBay gio va mai mai
Bay gio va mai mai
 
Slides
SlidesSlides
Slides
 
Final Paper Requirement
Final Paper RequirementFinal Paper Requirement
Final Paper Requirement
 
Chuyen tau 16h50
Chuyen tau 16h50Chuyen tau 16h50
Chuyen tau 16h50
 
Realism Reloaded
Realism ReloadedRealism Reloaded
Realism Reloaded
 
Crystal Sign Media Profile
Crystal Sign Media ProfileCrystal Sign Media Profile
Crystal Sign Media Profile
 
David Lindenmayer_Successful delivery of critical ecosystem research infrastr...
David Lindenmayer_Successful delivery of critical ecosystem research infrastr...David Lindenmayer_Successful delivery of critical ecosystem research infrastr...
David Lindenmayer_Successful delivery of critical ecosystem research infrastr...
 
KSU Nursing Class of Summer 2014 Pinning Slideshow
KSU Nursing Class of Summer 2014 Pinning SlideshowKSU Nursing Class of Summer 2014 Pinning Slideshow
KSU Nursing Class of Summer 2014 Pinning Slideshow
 
【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン
【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン
【建築特化型クラウドソーシング Cloud Design】サービスご案内資料 │ 株式会社クラウドデザイン
 
Letempsdu Muguet
Letempsdu MuguetLetempsdu Muguet
Letempsdu Muguet
 
Mobility Platform for Insurers
Mobility Platform for InsurersMobility Platform for Insurers
Mobility Platform for Insurers
 
Local Business Listing
Local Business ListingLocal Business Listing
Local Business Listing
 
ICAME 2010
ICAME 2010ICAME 2010
ICAME 2010
 

Similar to Uc14 chap13

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...yaminohime
 
chapter12 - Software engineering.pdf
chapter12 - Software engineering.pdfchapter12 - Software engineering.pdf
chapter12 - Software engineering.pdfsatonaka3
 
Pressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-modelsPressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-modelsNoor Ul Hudda Memon
 
SE_Module1new.ppt
SE_Module1new.pptSE_Module1new.ppt
SE_Module1new.pptADARSHN40
 
Software engineering
Software engineeringSoftware engineering
Software engineeringnimmik4u
 
Software Development Methodologies.pptx
Software Development Methodologies.pptxSoftware Development Methodologies.pptx
Software Development Methodologies.pptxMohamedElshaikh10
 
5_6134023428304274682.pptx
5_6134023428304274682.pptx5_6134023428304274682.pptx
5_6134023428304274682.pptxgamingpro22
 
test.pptx
test.pptxtest.pptx
test.pptxStacia7
 
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
 
Traditional Process Models
Traditional Process ModelsTraditional Process Models
Traditional Process ModelsAhsan Rahim
 
itec513 fall20172018 COCOMO model estimation.ppt
itec513 fall20172018 COCOMO model estimation.pptitec513 fall20172018 COCOMO model estimation.ppt
itec513 fall20172018 COCOMO model estimation.pptinaamulh77
 
COM1407: Structured Program Development
COM1407: Structured Program Development COM1407: Structured Program Development
COM1407: Structured Program Development Hemantha Kulathilake
 
Software Development presentation basic only
Software Development presentation basic onlySoftware Development presentation basic only
Software Development presentation basic onlyAbhishekMishra498106
 
Comp8 unit5 lecture_slides
Comp8 unit5 lecture_slidesComp8 unit5 lecture_slides
Comp8 unit5 lecture_slidesCMDLMS
 
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
 
Student feedback system
Student feedback systemStudent feedback system
Student feedback systemAkshay Surve
 

Similar to Uc14 chap13 (20)

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 13 - Progra...
 
chapter12 - Software engineering.pdf
chapter12 - Software engineering.pdfchapter12 - Software engineering.pdf
chapter12 - Software engineering.pdf
 
Pressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-modelsPressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-models
 
SE_Module1new.ppt
SE_Module1new.pptSE_Module1new.ppt
SE_Module1new.ppt
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Software Development Methodologies.pptx
Software Development Methodologies.pptxSoftware Development Methodologies.pptx
Software Development Methodologies.pptx
 
5_6134023428304274682.pptx
5_6134023428304274682.pptx5_6134023428304274682.pptx
5_6134023428304274682.pptx
 
ITE 101 - Week 5
ITE 101 - Week 5ITE 101 - Week 5
ITE 101 - Week 5
 
test.pptx
test.pptxtest.pptx
test.pptx
 
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...
 
Traditional Process Models
Traditional Process ModelsTraditional Process Models
Traditional Process Models
 
itec513 fall20172018 COCOMO model estimation.ppt
itec513 fall20172018 COCOMO model estimation.pptitec513 fall20172018 COCOMO model estimation.ppt
itec513 fall20172018 COCOMO model estimation.ppt
 
COM1407: Structured Program Development
COM1407: Structured Program Development COM1407: Structured Program Development
COM1407: Structured Program Development
 
Software Development presentation basic only
Software Development presentation basic onlySoftware Development presentation basic only
Software Development presentation basic only
 
Comp8 unit5 lecture_slides
Comp8 unit5 lecture_slidesComp8 unit5 lecture_slides
Comp8 unit5 lecture_slides
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
DITEC - Software Engineering
DITEC - Software EngineeringDITEC - Software Engineering
DITEC - Software Engineering
 
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
 
Student feedback system
Student feedback systemStudent feedback system
Student feedback system
 

More from ayahye

Uc14 chap15
Uc14 chap15Uc14 chap15
Uc14 chap15ayahye
 
Uc14 chap14
Uc14 chap14Uc14 chap14
Uc14 chap14ayahye
 
Uc14 chap12
Uc14 chap12Uc14 chap12
Uc14 chap12ayahye
 
Uc14 chap11
Uc14 chap11Uc14 chap11
Uc14 chap11ayahye
 
Uc14 chap10
Uc14 chap10Uc14 chap10
Uc14 chap10ayahye
 
Uc14 chap09
Uc14 chap09Uc14 chap09
Uc14 chap09ayahye
 
Uc14 chap08
Uc14 chap08Uc14 chap08
Uc14 chap08ayahye
 
Uc14 chap07
Uc14 chap07Uc14 chap07
Uc14 chap07ayahye
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06ayahye
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05ayahye
 
Uc14 chap04
Uc14 chap04Uc14 chap04
Uc14 chap04ayahye
 
Uc14 chap03
Uc14 chap03Uc14 chap03
Uc14 chap03ayahye
 
Uc14 chap02
Uc14 chap02Uc14 chap02
Uc14 chap02ayahye
 
Uc14 chap01
Uc14 chap01Uc14 chap01
Uc14 chap01ayahye
 
Uc14 chap16
Uc14 chap16Uc14 chap16
Uc14 chap16ayahye
 

More from ayahye (15)

Uc14 chap15
Uc14 chap15Uc14 chap15
Uc14 chap15
 
Uc14 chap14
Uc14 chap14Uc14 chap14
Uc14 chap14
 
Uc14 chap12
Uc14 chap12Uc14 chap12
Uc14 chap12
 
Uc14 chap11
Uc14 chap11Uc14 chap11
Uc14 chap11
 
Uc14 chap10
Uc14 chap10Uc14 chap10
Uc14 chap10
 
Uc14 chap09
Uc14 chap09Uc14 chap09
Uc14 chap09
 
Uc14 chap08
Uc14 chap08Uc14 chap08
Uc14 chap08
 
Uc14 chap07
Uc14 chap07Uc14 chap07
Uc14 chap07
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05
 
Uc14 chap04
Uc14 chap04Uc14 chap04
Uc14 chap04
 
Uc14 chap03
Uc14 chap03Uc14 chap03
Uc14 chap03
 
Uc14 chap02
Uc14 chap02Uc14 chap02
Uc14 chap02
 
Uc14 chap01
Uc14 chap01Uc14 chap01
Uc14 chap01
 
Uc14 chap16
Uc14 chap16Uc14 chap16
Uc14 chap16
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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 ConsultingTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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 ...EduSkills OECD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
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 ...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

Uc14 chap13

  • 1. Chapter 13: Program Development and Programming Languages
  • 2. Learning Objectives 1. Understand the differences between structured programming, object-oriented programming (OOP), aspectoriented 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, 14th Edition 2 2
  • 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, 14th Edition 3
  • 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, 14th Edition 4 4
  • 5. Approaches to 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 • Procedure call—locating specific tasks in procedures (modules or subprograms) that are called by the main program when needed • 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) Understanding Computers: Today and Tomorrow, 14th Edition 5
  • 6. Approaches to Design and Development • Structured Programming – Goes even further, breaking the program into small modules (Top-down design) – 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, 14th Edition 6
  • 7. Approaches to Design and Development Understanding Computers: Today and Tomorrow, 14th Edition 7
  • 8. Approaches to 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 Understanding Computers: Today and Tomorrow, 14th Edition 8
  • 9. Approaches to Design and Development • 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, 14th Edition 9
  • 10. Approaches to 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 focuses on adapting the program as it is being written • Iterative and/or incremental Understanding Computers: Today and Tomorrow, 14th Edition 10
  • 11. Approaches to Design and Development • Agile software development – Goal is to create software rapidly – Focuses on building small functional program pieces during the project – Includes earlier adaptive software approaches such as RAD (rapid application development) and extreme programming (XP) Understanding Computers: Today and Tomorrow, 14th Edition 11
  • 12. The Program Development Life Cycle (PDLC) • Program Development (application software development) – The process of creating application programs • Program Development Life Cycle (PDLC) – The five phases of program development Understanding Computers: Today and Tomorrow, 14th Edition 12
  • 13. The Program Development Life Cycle (PDLC) • 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 is to understand the functions the software must perform – Documentation: Program Specifications • Result of the first phase of the PDLC outlining what the program must do Understanding Computers: Today and Tomorrow, 14th Edition 13
  • 14. The Program Development Life Cycle (PDLC) • Program Design – The program specifications are expanded into a complete design of the new program • Algorithm for the program is developed • Careful planning and design of a computer program are extremely important – Program Design Tools • Planning tools that include diagrams, charts, tables, and models • Structure Charts (hierarchy charts) – Depict the overall organization of a program Understanding Computers: Today and Tomorrow, 14th Edition 14
  • 15. The Program Development Life Cycle (PDLC) • 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 • Pseudocode – Uses English-like statements to outline the logic of a program rather than the flowchart’s graphical symbols Understanding Computers: Today and Tomorrow, 14th Edition 15
  • 16. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 16
  • 17. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 17
  • 18. The Program Development Life Cycle (PDLC) • Unified Modeling Language (UML) Models – Set of standard notations for creating business models – Widely used in object-oriented programs – Includes class diagrams and case diagrams Understanding Computers: Today and Tomorrow, 14th Edition 18
  • 19. The Program Development Life Cycle (PDLC) – Control Structures • A pattern for controlling the flow of logic in a computer program, module, or method • The Sequence Control Structure – Series of statements that follow one another Understanding Computers: Today and Tomorrow, 14th Edition 19
  • 20. The Program Development Life Cycle (PDLC) • The Selection Control Structure – Multiple paths, direction depends on result of a certain condition » If-then-else – Case control structure » Allows for as many possible results of the specified condition as needed • Repetition Control Structure (iteration control structure) – Repeat series of steps » Do-while » Do-until Understanding Computers: Today and Tomorrow, 14th Edition 20
  • 21. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 21
  • 22. 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 or consider must be specified – Follow the One-Entry-Point/One-Exit-Point Rule – No Infinite Loops or Logic Errors » Infinite loop is a series of steps that repeat forever Understanding Computers: Today and Tomorrow, 14th Edition 22
  • 23. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 23
  • 24. The Program Development Life Cycle (PDLC) – Program Design Testing • Design should be tested to ensure logic is correct – Desk check – Tracing tables – Documentation: Design Specifications • Illustrates the program needed to fulfill the program requirements • Expressed using structure charts, flowcharts, pseudocode, and UML models • Include any test data and results from desk checking Understanding Computers: Today and Tomorrow, 14th Edition 24
  • 25. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 25
  • 26. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 26
  • 27. The Program Development Life Cycle (PDLC) • Program Coding – The program code is written using a programming language – Choosing a Programming Language • Suitability to the application • Integration with other programs • Standards for the company • Programmer availability • Portability if being run on multiple platforms • Development speed Understanding Computers: Today and Tomorrow, 14th Edition 27
  • 28. The Program Development Life Cycle (PDLC) – The Coding Process • 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 Understanding Computers: Today and Tomorrow, 14th Edition 28
  • 29. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 29
  • 30. The Program Development Life Cycle (PDLC) – Reusable code • Pretested, error-free code segments that can be used over and over again with minor modifications • Can greatly reduce development time – Documentation: Documented Source Code • Program coding phase results in the program written in the desired programming language • Should include enough comments (internal documentation) so that the source code is easy to understand and update Understanding Computers: Today and Tomorrow, 14th Edition 30
  • 31. 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 – Translating Coded Programs into Executable Code • Coded programs need to be translated from source code written by the programmer to object code the computer can execute • Converted using a language translator – Program that converts source code to machine language Understanding Computers: Today and Tomorrow, 14th Edition 31
  • 32. The Program Development Life Cycle (PDLC) – Compilers » Language translator that converts an entire program into machine language before executing it » Designed for specific programming languages such as Java or Python – Interpreters » Translates one line of code at one time – Assemblers » Convert assembly language programs into machine language Understanding Computers: Today and Tomorrow, 14th Edition 32
  • 33. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 33
  • 34. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 34
  • 35. The Program Development Life Cycle (PDLC) – Preliminary Debugging • Compiler and Syntax Errors – As programs are compiled or interpreted, errors occur which prevent the program from running properly − Syntax errors occur when the programmer has not followed the rules of the programming language • Run Time and Logic Errors – Run time errors occur when the program is running Understanding Computers: Today and Tomorrow, 14th Edition 35
  • 36. The Program Development Life Cycle (PDLC) – Logic errors are errors in the logic of the program » 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, 14th Edition 36
  • 37. The Program Development Life Cycle (PDLC) Understanding Computers: Today and Tomorrow, 14th Edition 37
  • 38. The Program Development Life Cycle (PDLC) – Testing • Occurs after the program appears to be correct to find any additional errors • Uses good test data—data that is very similar to the actual data that will be used in the program • Tests conditions that will occur when the program is implemented • Checks for coding omissions (i.e., product quantity allowed to be < 0) Understanding Computers: Today and Tomorrow, 14th Edition 38
  • 39. The Program Development Life Cycle (PDLC) • Two stages – Alpha test—internal on-site test – Beta test—outside test – Documentation: Completed Program Package • Copy of the test data, test results, finished program code, and other documentation generated during the testing phase should be added to the program package – Developer documentation – User documentation Understanding Computers: Today and Tomorrow, 14th Edition 39
  • 40. The Program Development Life Cycle (PDLC) • Program Implementation and Maintenance – 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 • Program package should be updated to reflect new problems or issues that occur and what changes to the program were necessary Understanding Computers: Today and Tomorrow, 14th Edition 40
  • 41. 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, 14th Edition 41
  • 42. Tools for Facilitating Program Development • Application Lifecycle Management (ALM) Tools – 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 Understanding Computers: Today and Tomorrow, 14th Edition 42
  • 43. Tools for Facilitating Program Development • 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, 14th Edition 43
  • 44. Tools for Facilitating Program Development • Application Generators – Software program that helps programmers develop software – Macros • Record and play back a series of keystrokes • Programmers write them in a macro programming language such as Visual Basic for Applications – Report and Form Generators • Tools that enable individuals to prepare reports and forms quickly Understanding Computers: Today and Tomorrow, 14th Edition 44
  • 45. Tools for Facilitating Program Development Understanding Computers: Today and Tomorrow, 14th Edition 45
  • 46. Tools for Facilitating Program Development • Device Software Development Tools – Assist with developing embedded software to be used on devices, such as cars, ATM machines, and consumer devices • Software Development Kits (SDKs) and Application Program Interfaces (APIs) – Designed for a particular platform – Enables programmers to develop applications more quickly and easily • Often released by hardware or software companies – iOS SDK—allows third party developers to create new applications for iPhone, iPad, iPod Touch Understanding Computers: Today and Tomorrow, 14th Edition 46
  • 47. Tools for Facilitating Program Development • Application Program Interfaces (APIs) – Help applications interface with a particular operating system • Often used in conjunction with Web sites • Rich Internet Application (RIA) Tools – 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, 14th Edition 47
  • 48. Tools for Facilitating Program Development Understanding Computers: Today and Tomorrow, 14th Edition 48
  • 49. 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, 14th Edition 49
  • 50. Programming Languages • What is a Programming Language? – A set of rules, words, symbols, and codes used to write computer programs – To write a program, appropriate software for the programming language being used is needed • Categories of Programming Languages – Types of programs they are designed to create • Procedural languages or object-oriented languages – How evolved the programming language is • Levels or generations Understanding Computers: Today and Tomorrow, 14th Edition 50
  • 51. Programming Languages – Low-Level Languages (earliest programming languages) • Machine language – Written at a very low level, just using 1s and 0s – First generation of programming languages • Assembly language – Includes some names and other symbols to replace some of the 1s and 0s in machine language – Second generation of programming languages – Machine dependent » Written for one specific type of computer Understanding Computers: Today and Tomorrow, 14th Edition 51
  • 52. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 52
  • 53. 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 – Designed for educational purposes Understanding Computers: Today and Tomorrow, 14th Edition 53
  • 54. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 54
  • 55. Programming Languages – 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 • Common Programming Languages – Languages not widely used today • Logo (teach children how to program) • PL/1 (business and scientific applications • Prolog and LISP (artificial intelligence) • SmallTalk (one of the first object-oriented languages) Understanding Computers: Today and Tomorrow, 14th Edition 55
  • 56. 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 forecasting) • Fortress may eventually replace FORTRAN Understanding Computers: Today and Tomorrow, 14th Edition 56
  • 57. Programming Languages – COBOL • Designed for business transaction processing • Makes extensive use of modules • Strength lies in batch processing and its stability • Programs are lengthy and take a long time to write • Considered to be outdated by some • New versions are evolving – COBOL.NET Understanding Computers: Today and Tomorrow, 14th Edition 57
  • 58. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 58
  • 59. Programming Languages – Pascal • Named after mathematician Blaise Pascal • Created as a teaching tool to encourage structured programming • Contains a variety of control structures used to manipulate modules systematically – BASIC and Visual 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, 14th Edition 59
  • 60. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 60
  • 61. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 61
  • 62. Programming Languages – C, C++, and C# •C – Much closer to assembly language than other highlevel languages – Designed for system programming • C++ – Object-oriented versions of C – Very popular for graphical applications • C# (C sharp) – Used to create Web applications and XML-based Web services • Objective-C: – For iPhone and other Apple applications Understanding Computers: Today and Tomorrow, 14th Edition 62
  • 63. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 63
  • 64. 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, 14th Edition 64
  • 65. Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 65
  • 66. Programming Languages – Python • Opensource, dynamic, objectoriented language that can be used to develop a variety of applications • Gaming, scientific, databa se, and Web applications • Used by large organizations such as NASA, Google, Honeywell, New York Stock Exchange, and some colleges such as MIT Understanding Computers: Today and Tomorrow, 14th Edition 66
  • 67. Programming Languages – Ruby • Open-source, object-oriented language that can be used to create Web applications and general-purpose programming for Linux, Mac OS X, and Microsoft Windows computers • 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, 14th Edition 67
  • 68. 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, 14th Edition 68
  • 69. Summary • • • • Approaches to Program Design and Development The Program Development Life Cycle (PDLC) Tools for Facilitating Program Development Programming Languages Understanding Computers: Today and Tomorrow, 14th Edition 69