SlideShare a Scribd company logo
Discovering
    Computers 2011
    Living in a Digital World
Objectives Overview
Objectives Overview

                                                                                                 Identify and discuss the 
                                             Identify and discuss the 
                                                                                                 characteristics of these
                                                                                                 characteristics of these 
    Differentiate between                     purpose of procedural 
                                                                                                     object‐oriented 
    machine and assembly                    programming languages, 
                                                                                                 programming languages 
          languages                        and describe the features of 
                                                                                                    p g              p
                                                                                                and program development 
                                                  C and COBOL
                                                  C and COBOL
                                                                                                           tools



                           Identify the uses of other 
                            programming languages                     Describe various ways to 
                          and program development                       develop Web pages
                                      tools




See Page 663                           Discovering Computers 2011: Living in a Digital World                            2
for Detailed Objectives                                   Chapter 13
Objectives Overview
Objectives Overview

                 Identify the uses of                        List the six steps in the 
                 popular multimedia 
                      l      lti di                          program development 
                                                                        d l          t
                 authoring programs                                  life cycle



                                                               Explain the basic 
                                                                   l     h b
              Differentiate between                          control structures and 
              structured design and 
              structured design and                           design tools used in 
                                                              design tools used in
              object‐oriented design                         designing solutions to 
                                                            programming problems
                                                            programming problems
See Page 663                  Discovering Computers 2011: Living in a Digital World       3
for Detailed Objectives                          Chapter 13
Computer Programs 
and Programming Languages
  d          i
• A computer program is a series of instructions 
                    p        p
  that directs a computer to perform tasks
      – Created by a programmer using a programming 
        language




Pages 664 – 665     Discovering Computers 2011: Living in a Digital World    4
Figure 13‐1                            Chapter 13
Low Level Languages
Low‐Level Languages

    • Machine language is 
      the first generation of 
      programming languages
    • Only language the 
      computer directly 
      recognizes




Page 665            Discovering Computers 2011: Living in a Digital World    5
Figure 13‐2                            Chapter 13
Low Level Languages
Low‐Level Languages

                                              • A
                                                Assembly language i h
                                                       bl l          is the 
                                                second generation of 
                                                programming languages
                                                programming languages
                                              • Programmer writes 
                                                instructions using  
                                                                 g
                                                symbolic instruction 
                                                codes
                                              • A source program
                                                contains the code to be 
                                                converted to machine 
                                                converted to machine
                                                language

Pages 665 – 666   Discovering Computers 2011: Living in a Digital World        6
Figure 13‐3                          Chapter 13
Procedural Languages
Procedural Languages

• In a procedural language, the programmer writes 
                                p
  instructions that tell the computer what to 
  accomplish and how to do it
       – Third‐generation language (3GL)
         Third‐generation language

                      A compiler 
                      A       il
                  translates an entire 
                    program before                   An interpreter converts 
                      executing it                   and executes one code 
                                                       d                 d
                                                      statement at a time


Pages 666 ‐ 667           Discovering Computers 2011: Living in a Digital World    7
                                             Chapter 13
Procedural Languages
Procedural Languages




Page 667              Discovering Computers 2011: Living in a Digital World    8
Figures 13‐4 – 13‐5                      Chapter 13
Procedural Languages
Procedural Languages

• The C programming language is used to write 
      y       y p g
  many of today’s programs




              Click to view Web Link,
              click Chapter 13, Click
              Web Link from left
              navigation, then click
              C below Chapter 13

Page 668                                Discovering Computers 2011: Living in a Digital World    9
Figure 13‐6                                                Chapter 13
Procedural Languages
Procedural Languages

• COBOL (COmmon Business‐Oriented Language) is 
      g                  pp                  y
  designed for business applications, but easy to 
  read because of the English‐like statements




Pages 668 – 669   Discovering Computers 2011: Living in a Digital World    10
Figure 13‐7                          Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l
• An object‐oriented programming (OOP) language allows 
  programmers the ability to reuse and modify existing 
  objects
• Other advantages include:
                                                 Programmers 
              Objects can be 
                                              create applications 
                                                       pp
                 reused
                                                     faster


                                                Most program 
              Work well in a 
                                              development tools 
             RAD environment
                                                   are IDEs
                                                   are IDEs
Page 669          Discovering Computers 2011: Living in a Digital World    11
                                     Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l
• Java is an object‐oriented programming language 
  developed by Sun Microsystems
• The Just‐in‐time (JIT) compiler to convert the bytecode
  into machine‐dependent code




              Click to view Web Link,
              click Chapter 13, Click
              Web Link from left
              navigation, then click
              Java Platforms
              below Chapter 13
Page 670                                Discovering Computers 2011: Living in a Digital World    12
Figure 13‐8                                                Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l
• The Microsoft .NET Framework allows almost any 
   yp     p g
  type of program to run on the Internet or an 
  internal business network, as well as computers 
  and mobile devices
  and mobile devices
• Features include:

           CLR (Common 
             Language                                    Classes
             Runtime)
Page 670         Discovering Computers 2011: Living in a Digital World    13
                                    Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l
    • C i
      C++ is an extension of 
                       i    f
      the C programming 
      language
    • C# is based on C++ and 
      was developed by 
      was developed by
      Microsoft
    • F# combines the
      F# combines the 
      benefits of an object‐
      oriented language with 
      oriented language with
      those of a functional 
      language
         g g
Page 671            Discovering Computers 2011: Living in a Digital World    14
Figure 13‐9                            Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l

            Visual Studio is Microsoft’s suite of 
               program development tools
               program development tools
                                        Visual C#
                                        Vi l C# combines 
                                                       bi
  Visual Basic is                        the programming 
based on the BASIC Visual C++ is based elements of C++
based on the BASIC  Visual C++ is based  elements of C++ 
  programming             on C++           with an easier, 
       g g
    language                              p          p
                                        rapid‐development 
                                           environment


Pages 671 ‐ 673       Discovering Computers 2011: Living in a Digital World    15
                                         Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l




           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           Visual Studio Tools for Office
           below Chapter 13
Pages 671 – 672                             Discovering Computers 2011: Living in a Digital World    16
Figure 13‐10                                                   Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l

 A visual programming language is a language that 
 uses a visual or graphical interface for creating all 
 source code


 B l d’ D l hi i            f l
 Borland’s Delphi is a powerful program 
 development tool that is ideal for building large‐
 scale enterprise and Web applications in a RAD 
 environment
Page 673         Discovering Computers 2011: Living in a Digital World    17
                                    Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l




Page 673       Discovering Computers 2011: Living in a Digital World    18
Figure 13‐11                      Chapter 13
Object‐Oriented Programming Languages 
and Program Development Tools
  d              l          l
    • PowerBuilder is a 
      powerful program 
      development RAD tool
    • Best suited for Web‐
      based, .NET, and large‐
      scale enterprise object‐
      oriented applications




Page 674             Discovering Computers 2011: Living in a Digital World    19
Figure 13‐12                            Chapter 13
Other Programming Languages 
and Development Tools
  d      l         l
• A 4GL (fourth‐generation language) is a 
  nonprocedural language that enables users and 
     p              g g
  programmers to access data in a database
       – One popular 4GL is SQL
         One popular 4GL is SQL




Page 674              Discovering Computers 2011: Living in a Digital World    20
Figure 13‐13                             Chapter 13
Other Programming Languages 
and Development Tools
  d      l         l
• Classic programming languages include:
               Ada
               Ad        ALGOL                          APL                      BASIC


               Forth   FORTRAN                   HyperTalk                        LISP


               Logo    Modula‐2                      Pascal                      PILOT


               PL/1      Prolog                        RPG                      Smalltalk
Page 675               Discovering Computers 2011: Living in a Digital World                21
Figure 13‐14                              Chapter 13
Other Programming Languages 
and Development Tools
  d      l         l
• An application generator is a program that creates 
  source code or machine code from a specification of the 
  required functionality
       – Often bundled as part of a DBMS




Page 676                Discovering Computers 2011: Living in a Digital World    22
Figure 13‐15                               Chapter 13
Other Programming Languages 
and Development Tools
  d      l         l
• A macro is a series of statements that instructs an 
   pp                      p
  application how to complete a task
• You usually create the macro in one of two ways:
       –RRecord the macro with a macro recorder
              d th         ith              d
       – Write the macro



           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           Macros below Chapter 13

Pages 676 ‐ 677                      Discovering Computers 2011: Living in a Digital World    23
                                                        Chapter 13
Other Programming Languages 
and Development Tools
  d      l         l




Page 677       Discovering Computers 2011: Living in a Digital World    24
Figure 13‐16                      Chapter 13
Web Page Development
Web Page Development

    • HTML is a special 
      formatting language 
      that programmers use 
      to format documents 
      for display on the Web
    • XHTML is a markup 
      language that allows 
      Web sites to be 
      displayed more easily 
      on mobile devices
Page 678            Discovering Computers 2011: Living in a Digital World    25
Figure 13‐17                           Chapter 13
Web Page Development
Web Page Development

• XML allows Web developers to create customized 
    g          p            g        p y
  tags and use predefined tags to display content 
  appropriately on various devices
      – WML is a subset of XML and is used to design pages
              is a subset of XML and is used to design pages 
        for microbrowsers
• T
  Two applications of XML are RSS 2.0 and ATOM
         li i       f XML     RSS 2 0 d ATOM

           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           XML below Chapter 13

Page 679                             Discovering Computers 2011: Living in a Digital World    26
                                                        Chapter 13
Web Page Development
Web Page Development




Page 679       Discovering Computers 2011: Living in a Digital World    27
Figure 13‐18                      Chapter 13
Web Page Development
Web Page Development

• Web browsers can execute short programs to add 
  interactive elements to Web pages
• To send and receive information between your computer 
  and a Web server, these programs use the CGI (common 
  gateway interface)
                                  Scripts
                                      p                                   Applets
                                                                           pp

                                                                          ActiveX 
                                Servlets
                                                                          controls
Page 680         Discovering Computers 2011: Living in a Digital World               28
                                    Chapter 13
Web Page Development
Web Page Development




Page 681       Discovering Computers 2011: Living in a Digital World    29
Figure 13‐19                      Chapter 13
Web Page Development
Web Page Development

• Programmers write scripts, applets, servlets, or 
                       g         y       g g
  ActiveX controls using a variety of languages


                                     JavaScript                             Perl                  PHP


                                       Rexx
                                       R                                      Tcl
                                                                              Tl                VBScript
                                                                                                VBS i t
           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           PHP below Chapter 13

Pages 682 ‐ 683                        Discovering Computers 2011: Living in a Digital World               30
                                                          Chapter 13
Web Page Development
Web Page Development




Page 682       Discovering Computers 2011: Living in a Digital World    31
Figure 13‐20                      Chapter 13
Web Page Development
Web Page Development

                     Dynamic HTML  (DHTML) allows Web 
                     developers to include more graphical interest
                     developers to include more graphical interest 
                     and interactivity

  • Cascading style sheets (CSS) contain the formats for how a particular object should 
          d      l h       ( )            h f        f h              l    b      h ld
    be displayed

                     Ruby on Rails (RoR) provides technologies for 
                     developing object‐oriented, database‐driven 
                     Web sites
                     Web sites
           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           Cascading Style Sheets
           below Chapter 13
Page 683                             Discovering Computers 2011: Living in a Digital World    32
                                                        Chapter 13
Web Page Development
Web Page Development

• Web 2.0 allows Web sites to provide a means for 
  users to:
                                                Allow users to 
           Share personal 
                 p
                                               modify Web site 
                                               modify Web site
            information
                                                   content


                      Have application 
                             pp
                       software built 
                        into the site
Page 684         Discovering Computers 2011: Living in a Digital World    33
                                    Chapter 13
Web Page Development
Web Page Development

• Most Web 2.0 sites use APIs
       – An API enables programmers to interact with an 
                        p g
         environment such as a Web site or operating system




           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           APIs below Chapter 13
Page 684                             Discovering Computers 2011: Living in a Digital World    34
Figure 13‐21                                            Chapter 13
Web Page Development
Web Page Development

• Web page authoring software can create 
    p                p g                    g
  sophisticated Web pages that include images, 
  video, audio, animation, and other effects
                                               Expression 
           Dreamweaver
                                                  Web


                                              SharePoint 
              Flash
                                               Designer
Page 685        Discovering Computers 2011: Living in a Digital World    35
                                   Chapter 13
Multimedia Program Development
Multimedia Program Development

• Multimedia authoring software allows 
  p g
  programmers to combine text, graphics, 
                                 g p
  animation, audio, and video in an interactive 
  presentation


            ToolBook                                    Director



Page 685        Discovering Computers 2011: Living in a Digital World    36
                                   Chapter 13
Multimedia Program Development
Multimedia Program Development




Page 685       Discovering Computers 2011: Living in a Digital World    37
Figure 13‐22                      Chapter 13
Program Development
Program Development

• Program development consists of a series of steps 
  p g
  programmers use to build computer programs
                              p      p g




Page 686        Discovering Computers 2011: Living in a Digital World    38
Figure 13‐23                       Chapter 13
Step 1  Analyze Requirements
Step 1 – Analyze Requirements

• To initiate program development, programmer:
       – Reviews the requirements
                        q
       – Meets with the systems analyst and users
       – Identifies input processing and output
         Identifies input, processing, and output
               • IPO chart




Page 687                     Discovering Computers 2011: Living in a Digital World    39
Figure 13‐24                                    Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

• Design a solution algorithm
• In structured design, the programmer typically
  In structured design, the programmer typically 
  begins with a general design and moves toward a 
  more detailed design
  more detailed design
• Programmers use a hierarchy chart to show 
  program modules graphically



Pages 687 ‐ 688   Discovering Computers 2011: Living in a Digital World    40
                                     Chapter 13
Step 2  Design Solution
Step 2 – Design Solution




Page 688       Discovering Computers 2011: Living in a Digital World    41
Figure 13‐25                      Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

    • With object‐oriented
      (OO) design, the 
      programmer packages 
      the data and the 
      program into a single 
      object
           – Encapsulation


           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           Object-Oriented Design
           below Chapter 13
Page 689                             Discovering Computers 2011: Living in a Digital World    42
Figure 13‐26                                            Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

    • The sequence control 
      structure shows one or 
      more actions following 
      each other in order




Page 689            Discovering Computers 2011: Living in a Digital World    43
Figure 13‐27                           Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

                                           • The selection control 
                                             structure tells the 
                                             program which action 
                                             to take, based on a 
                                             certain condition
                                                  – If‐then‐else
                                                  – Case




Page 689       Discovering Computers 2011: Living in a Digital World    44
Figure 13‐28                      Chapter 13
Step 2  Design Solution
Step 2 – Design Solution




Page 690       Discovering Computers 2011: Living in a Digital World    45
Figure 13‐29                      Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

• The repetition control structure enables a program to 
  perform one or more actions repeatedly as long as a 
  certain condition is met




Page 690                Discovering Computers 2011: Living in a Digital World    46
Figures 13‐30 – 13‐31                      Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

• A program flowchart graphically shows the logic 
                  g
  in a solution algorithm




Page 691        Discovering Computers 2011: Living in a Digital World    47
Figure 13‐33                       Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

• Flowcharting software makes it easy to modify 
       p
  and update flowcharts
       – SmartDraw
       – Visio




           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           Flowcharting Software
           below Chapter 13
Page 692                             Discovering Computers 2011: Living in a Digital World    48
Figure 13‐34                                            Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

    • Pseudocode uses a 
      condensed form of 
      English to convey 
      program logic




Page 692           Discovering Computers 2011: Living in a Digital World    49
Figure 13‐35                          Chapter 13
Step 2  Design Solution
Step 2 – Design Solution

• UML (Unified Modeling Language) has been 
     p                                 j
  adopted as a standard notation for object 
  modeling and development




Page 693       Discovering Computers 2011: Living in a Digital World    50
Figure 13‐37                      Chapter 13
Step 3  Validate Design
Step 3 – Validate Design

• Check for logic errors using test data



                   Develop        Determine              Step                                 Repeat 
                    various          the               through            Compare            steps for 
                  sets of test
                  sets of test     expected
                                   expected              the
                                                         the             the results
                                                                         the results        each set of
                                                                                            each set of 
                     data           result            algorithm                              test data




Pages 693 ‐ 694                    Discovering Computers 2011: Living in a Digital World                   51
                                                      Chapter 13
Step 4  Implement Design
Step 4 – Implement Design

• Implementation of the design includes using a 
     l       i    f h d i i l d           i
  program development tool that assists the 
  programmer by:
             b
       – Generating or providing some or all code
       – Writing the code that translates the design into a 
         computer program
       – C ti th
         Creating the user interface
                           i t f
• Extreme programming is a strategy where 
  programmers immediately begin coding and testing 
                 i    di t l b i     di      d t ti
  solutions as soon as requirements are defined

Pages 694 ‐ 695         Discovering Computers 2011: Living in a Digital World    52
                                           Chapter 13
Step 5  Test Solution
Step 5 – Test Solution


 The goal of program testing is to ensure the 
     g       p g           g
 program runs correctly and is error free
  • Errors include syntax errors and logic errors
  • Debugging the program involves removing the bugs
  • A beta is a program that has most or all of its 
                             y p
    features and functionality implemented
           Click to view Web Link,
           click Chapter 13, Click
           Web Link from left
           navigation, then click
           Beta Testers
           below Chapter 13

Pages 695 ‐ 696                      Discovering Computers 2011: Living in a Digital World    53
                                                        Chapter 13
Step 6  Document Solution
Step 6 – Document Solution

• In documenting the solution, the programmer 
  p
  performs two activities:




            Review the                                          Review all the 
           program code                                        documentation



Page 696            Discovering Computers 2011: Living in a Digital World         54
                                       Chapter 13
Video: Electronic Arts Going Mobile
Video: Electronic Arts Going Mobile




                           CLICK TO START
                           CLICK TO START

            Discovering Computers 2011: Living in a Digital World    55
                               Chapter 13
Summary

           Various programming                             A variety of Web 
            languages used to
            languages used to                             development and
                                                          development and 
             create computer                                  multimedia 
                 programs                                 development tools


                       Steps in the program 
                      development life cycle 
                             p            y
                      and tools used to make 
                       this process efficient

Page 696               Discovering Computers 2011: Living in a Digital World    56
                                          Chapter 13
Discovering
    Computers 2011
    Living in a Digital World


    Chapter 13 Complete
Ad

Recommended

Basic Meaning of Computer languages
Basic Meaning of Computer languages
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Lang generations 7557_syed_ghazanfarnaqvi_saturday
Lang generations 7557_syed_ghazanfarnaqvi_saturday
Syed Naqvi
 
Programming Languages
Programming Languages
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Computer programming programming_langugages
Computer programming programming_langugages
eShikshak
 
Computer Programming: Chapter 1
Computer Programming: Chapter 1
Atit Patumvan
 
Computer programming language concept
Computer programming language concept
Afiq Sajuri
 
Programming Language
Programming Language
Education Front
 
La 5 Programming2
La 5 Programming2
Cma Mohd
 
SYSTEM DEVELOPMENT
SYSTEM DEVELOPMENT
shahzadebaujiti
 
Types of Programming Languages
Types of Programming Languages
Juhi Bhoyar
 
Generations Of Programming Languages
Generations Of Programming Languages
sebrown
 
La5 programming
La5 programming
smkengkilili2011
 
Interfacing With High Level Programming Language
Interfacing With High Level Programming Language
.AIR UNIVERSITY ISLAMABAD
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-
Krishna Sai
 
Introduction to C Programming
Introduction to C Programming
Selvaraj Seerangan
 
Notacd071
Notacd071
cikgushaharizan
 
Notacd07
Notacd07
Azmiah Mahmud
 
Programming languages
Programming languages
Akash Varaiya
 
Programming language design and implemenation
Programming language design and implemenation
Ashwini Awatare
 
Ict topic 5
Ict topic 5
kwongliik
 
Third and fourth generation programming language
Third and fourth generation programming language
omeed
 
Generations of programming language
Generations of programming language
JAIDEVPAUL
 
La5 ict-topic-5-programming
La5 ict-topic-5-programming
Kak Yong
 
Chapter 5
Chapter 5
meisaina
 
Programming languages in bioinformatics by dr. jayarama reddy
Programming languages in bioinformatics by dr. jayarama reddy
Dr. Jayarama Reddy
 
Programming languages
Programming languages
sushma chinta
 
Computer
Computer
Newreborn Incarnation
 
So you want to be a programmer
So you want to be a programmer
Busayo Oyebisi
 
Input
Input
Samudin Kassan
 
Storage
Storage
Samudin Kassan
 

More Related Content

What's hot (20)

SYSTEM DEVELOPMENT
SYSTEM DEVELOPMENT
shahzadebaujiti
 
Types of Programming Languages
Types of Programming Languages
Juhi Bhoyar
 
Generations Of Programming Languages
Generations Of Programming Languages
sebrown
 
La5 programming
La5 programming
smkengkilili2011
 
Interfacing With High Level Programming Language
Interfacing With High Level Programming Language
.AIR UNIVERSITY ISLAMABAD
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-
Krishna Sai
 
Introduction to C Programming
Introduction to C Programming
Selvaraj Seerangan
 
Notacd071
Notacd071
cikgushaharizan
 
Notacd07
Notacd07
Azmiah Mahmud
 
Programming languages
Programming languages
Akash Varaiya
 
Programming language design and implemenation
Programming language design and implemenation
Ashwini Awatare
 
Ict topic 5
Ict topic 5
kwongliik
 
Third and fourth generation programming language
Third and fourth generation programming language
omeed
 
Generations of programming language
Generations of programming language
JAIDEVPAUL
 
La5 ict-topic-5-programming
La5 ict-topic-5-programming
Kak Yong
 
Chapter 5
Chapter 5
meisaina
 
Programming languages in bioinformatics by dr. jayarama reddy
Programming languages in bioinformatics by dr. jayarama reddy
Dr. Jayarama Reddy
 
Programming languages
Programming languages
sushma chinta
 
Computer
Computer
Newreborn Incarnation
 
So you want to be a programmer
So you want to be a programmer
Busayo Oyebisi
 
Types of Programming Languages
Types of Programming Languages
Juhi Bhoyar
 
Generations Of Programming Languages
Generations Of Programming Languages
sebrown
 
Interfacing With High Level Programming Language
Interfacing With High Level Programming Language
.AIR UNIVERSITY ISLAMABAD
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-
Krishna Sai
 
Programming languages
Programming languages
Akash Varaiya
 
Programming language design and implemenation
Programming language design and implemenation
Ashwini Awatare
 
Third and fourth generation programming language
Third and fourth generation programming language
omeed
 
Generations of programming language
Generations of programming language
JAIDEVPAUL
 
La5 ict-topic-5-programming
La5 ict-topic-5-programming
Kak Yong
 
Programming languages in bioinformatics by dr. jayarama reddy
Programming languages in bioinformatics by dr. jayarama reddy
Dr. Jayarama Reddy
 
Programming languages
Programming languages
sushma chinta
 
So you want to be a programmer
So you want to be a programmer
Busayo Oyebisi
 

Viewers also liked (20)

Input
Input
Samudin Kassan
 
Storage
Storage
Samudin Kassan
 
Output
Output
Samudin Kassan
 
Database Management
Database Management
Samudin Kassan
 
Applicaton Software
Applicaton Software
Samudin Kassan
 
Communications and Networks
Communications and Networks
Samudin Kassan
 
Operating Systems and Utility Programs
Operating Systems and Utility Programs
Samudin Kassan
 
Principles of programming languages. Detail notes
Principles of programming languages. Detail notes
VIKAS SINGH BHADOURIA
 
Computer Security and Safety, Ethics & Privacy
Computer Security and Safety, Ethics & Privacy
Samudin Kassan
 
Internet and World Wide Web
Internet and World Wide Web
Samudin Kassan
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Introduction to Computers
Introduction to Computers
Samudin Kassan
 
Enterprise Computing
Enterprise Computing
Samudin Kassan
 
The Components of The System Unit
The Components of The System Unit
Samudin Kassan
 
Information System Development
Information System Development
Samudin Kassan
 
CH13-Computer Programs and Programming Languages
CH13-Computer Programs and Programming Languages
Sukanya Ben
 
Chapter 03
Chapter 03
Sukanya Ben
 
CH14-Enterprise Computing
CH14-Enterprise Computing
Sukanya Ben
 
CH02-Fundamental of WWW and Internet
CH02-Fundamental of WWW and Internet
Sukanya Ben
 
CH12-Exploring Information System Development
CH12-Exploring Information System Development
Sukanya Ben
 
Communications and Networks
Communications and Networks
Samudin Kassan
 
Operating Systems and Utility Programs
Operating Systems and Utility Programs
Samudin Kassan
 
Principles of programming languages. Detail notes
Principles of programming languages. Detail notes
VIKAS SINGH BHADOURIA
 
Computer Security and Safety, Ethics & Privacy
Computer Security and Safety, Ethics & Privacy
Samudin Kassan
 
Internet and World Wide Web
Internet and World Wide Web
Samudin Kassan
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Introduction to Computers
Introduction to Computers
Samudin Kassan
 
The Components of The System Unit
The Components of The System Unit
Samudin Kassan
 
Information System Development
Information System Development
Samudin Kassan
 
CH13-Computer Programs and Programming Languages
CH13-Computer Programs and Programming Languages
Sukanya Ben
 
CH14-Enterprise Computing
CH14-Enterprise Computing
Sukanya Ben
 
CH02-Fundamental of WWW and Internet
CH02-Fundamental of WWW and Internet
Sukanya Ben
 
CH12-Exploring Information System Development
CH12-Exploring Information System Development
Sukanya Ben
 
Ad

Similar to Programming Languages and Program Develompent (20)

Discovering Computers: Chapter 13
Discovering Computers: Chapter 13
Anna Stirling
 
computer programming computer programmin
computer programming computer programmin
Jifarnecho
 
Introduction to computer programming language
Introduction to computer programming language
hidrahrama
 
CHAPTER-1.ppt
CHAPTER-1.ppt
Tekle12
 
Fundamentals of programming with C++
Fundamentals of programming with C++
Seble Nigussie
 
Visual basic ictl bi
Visual basic ictl bi
nad_84
 
Form5 cd1
Form5 cd1
smktsj2
 
Programming Languages
Programming Languages
knowledge1995
 
Chapter 1- C++ programming languages +.ppt
Chapter 1- C++ programming languages +.ppt
anawaarabdujabbaar
 
Introduction to programming
Introduction to programming
Gwyneth Calica
 
Computer Programming - Lecture 1
Computer Programming - Lecture 1
Dr. Md. Shohel Sayeed
 
C_Dayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy1.pdf
C_Dayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy1.pdf
amanpathak160605
 
C 1
C 1
guest8be6bb5
 
computer programming: an introduction.pptx
computer programming: an introduction.pptx
Steins18
 
Introduction to computer programming
Introduction to computer programming
Sangheethaa Sukumaran
 
Introduction to Computer Programming
Introduction to Computer Programming
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Fundamental programming Nota Topic 1.pptx
Fundamental programming Nota Topic 1.pptx
UmmuNazieha
 
Computer program, computer languages, computer software
Computer program, computer languages, computer software
Sweta Kumari Barnwal
 
programming
programming
Hafiz Ashraf
 
Introduction To Computer Programming
Introduction To Computer Programming
Hussain Buksh
 
Discovering Computers: Chapter 13
Discovering Computers: Chapter 13
Anna Stirling
 
computer programming computer programmin
computer programming computer programmin
Jifarnecho
 
Introduction to computer programming language
Introduction to computer programming language
hidrahrama
 
CHAPTER-1.ppt
CHAPTER-1.ppt
Tekle12
 
Fundamentals of programming with C++
Fundamentals of programming with C++
Seble Nigussie
 
Visual basic ictl bi
Visual basic ictl bi
nad_84
 
Form5 cd1
Form5 cd1
smktsj2
 
Programming Languages
Programming Languages
knowledge1995
 
Chapter 1- C++ programming languages +.ppt
Chapter 1- C++ programming languages +.ppt
anawaarabdujabbaar
 
Introduction to programming
Introduction to programming
Gwyneth Calica
 
C_Dayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy1.pdf
C_Dayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy1.pdf
amanpathak160605
 
computer programming: an introduction.pptx
computer programming: an introduction.pptx
Steins18
 
Introduction to computer programming
Introduction to computer programming
Sangheethaa Sukumaran
 
Fundamental programming Nota Topic 1.pptx
Fundamental programming Nota Topic 1.pptx
UmmuNazieha
 
Computer program, computer languages, computer software
Computer program, computer languages, computer software
Sweta Kumari Barnwal
 
Introduction To Computer Programming
Introduction To Computer Programming
Hussain Buksh
 
Ad

Recently uploaded (20)

How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
 
Learning Styles Inventory for Senior High School Students
Learning Styles Inventory for Senior High School Students
Thelma Villaflores
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
How to use _name_search() method in Odoo 18
How to use _name_search() method in Odoo 18
Celine George
 
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
 
Learning Styles Inventory for Senior High School Students
Learning Styles Inventory for Senior High School Students
Thelma Villaflores
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
How to use _name_search() method in Odoo 18
How to use _name_search() method in Odoo 18
Celine George
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 

Programming Languages and Program Develompent

  • 1. Discovering Computers 2011 Living in a Digital World
  • 2. Objectives Overview Objectives Overview Identify and discuss the  Identify and discuss the  characteristics of these characteristics of these  Differentiate between  purpose of procedural  object‐oriented  machine and assembly  programming languages,  programming languages  languages and describe the features of  p g p and program development  C and COBOL C and COBOL tools Identify the uses of other  programming languages  Describe various ways to  and program development  develop Web pages tools See Page 663 Discovering Computers 2011: Living in a Digital World  2 for Detailed Objectives Chapter 13
  • 3. Objectives Overview Objectives Overview Identify the uses of  List the six steps in the  popular multimedia  l lti di program development  d l t authoring programs life cycle Explain the basic  l h b Differentiate between  control structures and  structured design and  structured design and design tools used in  design tools used in object‐oriented design designing solutions to  programming problems programming problems See Page 663 Discovering Computers 2011: Living in a Digital World  3 for Detailed Objectives Chapter 13
  • 4. Computer Programs  and Programming Languages d i • A computer program is a series of instructions  p p that directs a computer to perform tasks – Created by a programmer using a programming  language Pages 664 – 665 Discovering Computers 2011: Living in a Digital World  4 Figure 13‐1 Chapter 13
  • 5. Low Level Languages Low‐Level Languages • Machine language is  the first generation of  programming languages • Only language the  computer directly  recognizes Page 665 Discovering Computers 2011: Living in a Digital World  5 Figure 13‐2 Chapter 13
  • 6. Low Level Languages Low‐Level Languages • A Assembly language i h bl l is the  second generation of  programming languages programming languages • Programmer writes  instructions using   g symbolic instruction  codes • A source program contains the code to be  converted to machine  converted to machine language Pages 665 – 666 Discovering Computers 2011: Living in a Digital World  6 Figure 13‐3 Chapter 13
  • 7. Procedural Languages Procedural Languages • In a procedural language, the programmer writes  p instructions that tell the computer what to  accomplish and how to do it – Third‐generation language (3GL) Third‐generation language A compiler  A il translates an entire  program before  An interpreter converts  executing it and executes one code  d d statement at a time Pages 666 ‐ 667 Discovering Computers 2011: Living in a Digital World  7 Chapter 13
  • 8. Procedural Languages Procedural Languages Page 667 Discovering Computers 2011: Living in a Digital World  8 Figures 13‐4 – 13‐5 Chapter 13
  • 9. Procedural Languages Procedural Languages • The C programming language is used to write  y y p g many of today’s programs Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click C below Chapter 13 Page 668 Discovering Computers 2011: Living in a Digital World  9 Figure 13‐6 Chapter 13
  • 10. Procedural Languages Procedural Languages • COBOL (COmmon Business‐Oriented Language) is  g pp y designed for business applications, but easy to  read because of the English‐like statements Pages 668 – 669 Discovering Computers 2011: Living in a Digital World  10 Figure 13‐7 Chapter 13
  • 11. Object‐Oriented Programming Languages  and Program Development Tools d l l • An object‐oriented programming (OOP) language allows  programmers the ability to reuse and modify existing  objects • Other advantages include: Programmers  Objects can be  create applications  pp reused faster Most program  Work well in a  development tools  RAD environment are IDEs are IDEs Page 669 Discovering Computers 2011: Living in a Digital World  11 Chapter 13
  • 12. Object‐Oriented Programming Languages  and Program Development Tools d l l • Java is an object‐oriented programming language  developed by Sun Microsystems • The Just‐in‐time (JIT) compiler to convert the bytecode into machine‐dependent code Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Java Platforms below Chapter 13 Page 670 Discovering Computers 2011: Living in a Digital World  12 Figure 13‐8 Chapter 13
  • 13. Object‐Oriented Programming Languages  and Program Development Tools d l l • The Microsoft .NET Framework allows almost any  yp p g type of program to run on the Internet or an  internal business network, as well as computers  and mobile devices and mobile devices • Features include: CLR (Common  Language  Classes Runtime) Page 670 Discovering Computers 2011: Living in a Digital World  13 Chapter 13
  • 14. Object‐Oriented Programming Languages  and Program Development Tools d l l • C i C++ is an extension of  i f the C programming  language • C# is based on C++ and  was developed by  was developed by Microsoft • F# combines the F# combines the  benefits of an object‐ oriented language with  oriented language with those of a functional  language g g Page 671 Discovering Computers 2011: Living in a Digital World  14 Figure 13‐9 Chapter 13
  • 15. Object‐Oriented Programming Languages  and Program Development Tools d l l Visual Studio is Microsoft’s suite of  program development tools program development tools Visual C# Vi l C# combines  bi Visual Basic is  the programming  based on the BASIC Visual C++ is based elements of C++ based on the BASIC  Visual C++ is based  elements of C++  programming  on C++ with an easier,  g g language p p rapid‐development  environment Pages 671 ‐ 673 Discovering Computers 2011: Living in a Digital World  15 Chapter 13
  • 16. Object‐Oriented Programming Languages  and Program Development Tools d l l Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Visual Studio Tools for Office below Chapter 13 Pages 671 – 672 Discovering Computers 2011: Living in a Digital World  16 Figure 13‐10 Chapter 13
  • 17. Object‐Oriented Programming Languages  and Program Development Tools d l l A visual programming language is a language that  uses a visual or graphical interface for creating all  source code B l d’ D l hi i f l Borland’s Delphi is a powerful program  development tool that is ideal for building large‐ scale enterprise and Web applications in a RAD  environment Page 673 Discovering Computers 2011: Living in a Digital World  17 Chapter 13
  • 18. Object‐Oriented Programming Languages  and Program Development Tools d l l Page 673 Discovering Computers 2011: Living in a Digital World  18 Figure 13‐11 Chapter 13
  • 19. Object‐Oriented Programming Languages  and Program Development Tools d l l • PowerBuilder is a  powerful program  development RAD tool • Best suited for Web‐ based, .NET, and large‐ scale enterprise object‐ oriented applications Page 674 Discovering Computers 2011: Living in a Digital World  19 Figure 13‐12 Chapter 13
  • 20. Other Programming Languages  and Development Tools d l l • A 4GL (fourth‐generation language) is a  nonprocedural language that enables users and  p g g programmers to access data in a database – One popular 4GL is SQL One popular 4GL is SQL Page 674 Discovering Computers 2011: Living in a Digital World  20 Figure 13‐13 Chapter 13
  • 21. Other Programming Languages  and Development Tools d l l • Classic programming languages include: Ada Ad ALGOL APL BASIC Forth FORTRAN HyperTalk LISP Logo Modula‐2 Pascal PILOT PL/1 Prolog RPG Smalltalk Page 675 Discovering Computers 2011: Living in a Digital World  21 Figure 13‐14 Chapter 13
  • 22. Other Programming Languages  and Development Tools d l l • An application generator is a program that creates  source code or machine code from a specification of the  required functionality – Often bundled as part of a DBMS Page 676 Discovering Computers 2011: Living in a Digital World  22 Figure 13‐15 Chapter 13
  • 23. Other Programming Languages  and Development Tools d l l • A macro is a series of statements that instructs an  pp p application how to complete a task • You usually create the macro in one of two ways: –RRecord the macro with a macro recorder d th ith d – Write the macro Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Macros below Chapter 13 Pages 676 ‐ 677 Discovering Computers 2011: Living in a Digital World  23 Chapter 13
  • 24. Other Programming Languages  and Development Tools d l l Page 677 Discovering Computers 2011: Living in a Digital World  24 Figure 13‐16 Chapter 13
  • 25. Web Page Development Web Page Development • HTML is a special  formatting language  that programmers use  to format documents  for display on the Web • XHTML is a markup  language that allows  Web sites to be  displayed more easily  on mobile devices Page 678 Discovering Computers 2011: Living in a Digital World  25 Figure 13‐17 Chapter 13
  • 26. Web Page Development Web Page Development • XML allows Web developers to create customized  g p g p y tags and use predefined tags to display content  appropriately on various devices – WML is a subset of XML and is used to design pages is a subset of XML and is used to design pages  for microbrowsers • T Two applications of XML are RSS 2.0 and ATOM li i f XML RSS 2 0 d ATOM Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click XML below Chapter 13 Page 679 Discovering Computers 2011: Living in a Digital World  26 Chapter 13
  • 27. Web Page Development Web Page Development Page 679 Discovering Computers 2011: Living in a Digital World  27 Figure 13‐18 Chapter 13
  • 28. Web Page Development Web Page Development • Web browsers can execute short programs to add  interactive elements to Web pages • To send and receive information between your computer  and a Web server, these programs use the CGI (common  gateway interface) Scripts p Applets pp ActiveX  Servlets controls Page 680 Discovering Computers 2011: Living in a Digital World  28 Chapter 13
  • 29. Web Page Development Web Page Development Page 681 Discovering Computers 2011: Living in a Digital World  29 Figure 13‐19 Chapter 13
  • 30. Web Page Development Web Page Development • Programmers write scripts, applets, servlets, or  g y g g ActiveX controls using a variety of languages JavaScript Perl PHP Rexx R Tcl Tl VBScript VBS i t Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click PHP below Chapter 13 Pages 682 ‐ 683 Discovering Computers 2011: Living in a Digital World  30 Chapter 13
  • 31. Web Page Development Web Page Development Page 682 Discovering Computers 2011: Living in a Digital World  31 Figure 13‐20 Chapter 13
  • 32. Web Page Development Web Page Development Dynamic HTML  (DHTML) allows Web  developers to include more graphical interest developers to include more graphical interest  and interactivity • Cascading style sheets (CSS) contain the formats for how a particular object should  d l h ( ) h f f h l b h ld be displayed Ruby on Rails (RoR) provides technologies for  developing object‐oriented, database‐driven  Web sites Web sites Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Cascading Style Sheets below Chapter 13 Page 683 Discovering Computers 2011: Living in a Digital World  32 Chapter 13
  • 33. Web Page Development Web Page Development • Web 2.0 allows Web sites to provide a means for  users to: Allow users to  Share personal  p modify Web site  modify Web site information content Have application  pp software built  into the site Page 684 Discovering Computers 2011: Living in a Digital World  33 Chapter 13
  • 34. Web Page Development Web Page Development • Most Web 2.0 sites use APIs – An API enables programmers to interact with an  p g environment such as a Web site or operating system Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click APIs below Chapter 13 Page 684 Discovering Computers 2011: Living in a Digital World  34 Figure 13‐21 Chapter 13
  • 35. Web Page Development Web Page Development • Web page authoring software can create  p p g g sophisticated Web pages that include images,  video, audio, animation, and other effects Expression  Dreamweaver Web SharePoint  Flash Designer Page 685 Discovering Computers 2011: Living in a Digital World  35 Chapter 13
  • 36. Multimedia Program Development Multimedia Program Development • Multimedia authoring software allows  p g programmers to combine text, graphics,  g p animation, audio, and video in an interactive  presentation ToolBook Director Page 685 Discovering Computers 2011: Living in a Digital World  36 Chapter 13
  • 37. Multimedia Program Development Multimedia Program Development Page 685 Discovering Computers 2011: Living in a Digital World  37 Figure 13‐22 Chapter 13
  • 38. Program Development Program Development • Program development consists of a series of steps  p g programmers use to build computer programs p p g Page 686 Discovering Computers 2011: Living in a Digital World  38 Figure 13‐23 Chapter 13
  • 39. Step 1  Analyze Requirements Step 1 – Analyze Requirements • To initiate program development, programmer: – Reviews the requirements q – Meets with the systems analyst and users – Identifies input processing and output Identifies input, processing, and output • IPO chart Page 687 Discovering Computers 2011: Living in a Digital World  39 Figure 13‐24 Chapter 13
  • 40. Step 2  Design Solution Step 2 – Design Solution • Design a solution algorithm • In structured design, the programmer typically In structured design, the programmer typically  begins with a general design and moves toward a  more detailed design more detailed design • Programmers use a hierarchy chart to show  program modules graphically Pages 687 ‐ 688 Discovering Computers 2011: Living in a Digital World  40 Chapter 13
  • 41. Step 2  Design Solution Step 2 – Design Solution Page 688 Discovering Computers 2011: Living in a Digital World  41 Figure 13‐25 Chapter 13
  • 42. Step 2  Design Solution Step 2 – Design Solution • With object‐oriented (OO) design, the  programmer packages  the data and the  program into a single  object – Encapsulation Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Object-Oriented Design below Chapter 13 Page 689 Discovering Computers 2011: Living in a Digital World  42 Figure 13‐26 Chapter 13
  • 43. Step 2  Design Solution Step 2 – Design Solution • The sequence control  structure shows one or  more actions following  each other in order Page 689 Discovering Computers 2011: Living in a Digital World  43 Figure 13‐27 Chapter 13
  • 44. Step 2  Design Solution Step 2 – Design Solution • The selection control  structure tells the  program which action  to take, based on a  certain condition – If‐then‐else – Case Page 689 Discovering Computers 2011: Living in a Digital World  44 Figure 13‐28 Chapter 13
  • 45. Step 2  Design Solution Step 2 – Design Solution Page 690 Discovering Computers 2011: Living in a Digital World  45 Figure 13‐29 Chapter 13
  • 46. Step 2  Design Solution Step 2 – Design Solution • The repetition control structure enables a program to  perform one or more actions repeatedly as long as a  certain condition is met Page 690 Discovering Computers 2011: Living in a Digital World  46 Figures 13‐30 – 13‐31 Chapter 13
  • 47. Step 2  Design Solution Step 2 – Design Solution • A program flowchart graphically shows the logic  g in a solution algorithm Page 691 Discovering Computers 2011: Living in a Digital World  47 Figure 13‐33 Chapter 13
  • 48. Step 2  Design Solution Step 2 – Design Solution • Flowcharting software makes it easy to modify  p and update flowcharts – SmartDraw – Visio Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Flowcharting Software below Chapter 13 Page 692 Discovering Computers 2011: Living in a Digital World  48 Figure 13‐34 Chapter 13
  • 49. Step 2  Design Solution Step 2 – Design Solution • Pseudocode uses a  condensed form of  English to convey  program logic Page 692 Discovering Computers 2011: Living in a Digital World  49 Figure 13‐35 Chapter 13
  • 50. Step 2  Design Solution Step 2 – Design Solution • UML (Unified Modeling Language) has been  p j adopted as a standard notation for object  modeling and development Page 693 Discovering Computers 2011: Living in a Digital World  50 Figure 13‐37 Chapter 13
  • 51. Step 3  Validate Design Step 3 – Validate Design • Check for logic errors using test data Develop  Determine  Step  Repeat  various  the  through  Compare  steps for  sets of test sets of test  expected expected  the the  the results the results each set of each set of  data result algorithm test data Pages 693 ‐ 694 Discovering Computers 2011: Living in a Digital World  51 Chapter 13
  • 52. Step 4  Implement Design Step 4 – Implement Design • Implementation of the design includes using a  l i f h d i i l d i program development tool that assists the  programmer by: b – Generating or providing some or all code – Writing the code that translates the design into a  computer program – C ti th Creating the user interface i t f • Extreme programming is a strategy where  programmers immediately begin coding and testing  i di t l b i di d t ti solutions as soon as requirements are defined Pages 694 ‐ 695 Discovering Computers 2011: Living in a Digital World  52 Chapter 13
  • 53. Step 5  Test Solution Step 5 – Test Solution The goal of program testing is to ensure the  g p g g program runs correctly and is error free • Errors include syntax errors and logic errors • Debugging the program involves removing the bugs • A beta is a program that has most or all of its  y p features and functionality implemented Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Beta Testers below Chapter 13 Pages 695 ‐ 696 Discovering Computers 2011: Living in a Digital World  53 Chapter 13
  • 54. Step 6  Document Solution Step 6 – Document Solution • In documenting the solution, the programmer  p performs two activities: Review the  Review all the  program code documentation Page 696 Discovering Computers 2011: Living in a Digital World  54 Chapter 13
  • 55. Video: Electronic Arts Going Mobile Video: Electronic Arts Going Mobile CLICK TO START CLICK TO START Discovering Computers 2011: Living in a Digital World  55 Chapter 13
  • 56. Summary Various programming  A variety of Web  languages used to languages used to  development and development and  create computer  multimedia  programs development tools Steps in the program  development life cycle  p y and tools used to make  this process efficient Page 696 Discovering Computers 2011: Living in a Digital World  56 Chapter 13
  • 57. Discovering Computers 2011 Living in a Digital World Chapter 13 Complete