Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 13 Programming Languages and Program Development.

Similar presentations


Presentation on theme: "Chapter 13 Programming Languages and Program Development."— Presentation transcript:

1 Chapter 13 Programming Languages and Program Development

2 Chapter 13 Objectives Next Describe various ways to develop Web pages including HTML, scripting languages, DHTML, XML, WML, and Web page authoring software Differentiate between machine and assembly languages Identify and discuss the purpose of procedural programming languages Discuss the advantages and uses of visual programming languages Identify and discuss the characteristics of object-oriented programming languages Identify the uses of various nonprocedural languages and tools Identify the uses of popular multimedia authoring programs List the six steps in the program development cycle Differentiate between structured design and object-oriented design Explain the basic control structures used in designing solutions to programming problems

3 Computer Programs and Programming Languages What is a computer program? p. 13.02 Fig. 13-1 Next  Set of instructions that directs computer to perform tasks  Programming language—used to write instructions Click to view videoClick to view animation

4 Computer Programs and Programming Languages What are low-level languages and high-level languages? p. 13.02 Next High-level language Low-level language Machine-dependent runs only on one type of computer Often machine-independent can run on many different types of computers Machine and assembly languages are low-level

5 Low-Level Languages What is machine language? p. 13.03 Fig. 13-2 Next  Only language computer directly recognizes Click to view animation

6 Low-Level Languages What is assembly language? p. 13.04 Fig. 13-3 Next  Instructions made up of symbolic instruction codes, meaningful abbreviations and codes  Source program contains code to be converted to machine language

7 Procedural Languages What is a procedural language? p. 13.04 Next Most widely used are BASIC, COBOL, and C Uses series of English-like words to write instructions third-generation language (3GL) Often called third-generation language (3GL) Programmer assigns name to sequence of instructions that tells computer what to accomplish and how to do it Click to view animation

8 Procedural Languages What is a compiler? p. 13.05 Fig. 13-4 Next  Program that converts entire source program into machine language before executing it

9 Procedural Languages What is an interpreter? p. 13.05 Fig. 13-5 Next  Program that translates and executes one program code statement at a time  Does not produce object program

10 Procedural Languages What is BASIC? p. 13.06 Fig. 13-6 Next  Designed for use as simple, interactive problem-solving language  Beginner’s All-purpose Symbolic Instruction Code

11 Procedural Languages What is COBOL? p. 13.06 Fig. 13-7 Next Click to view Web Link, then click COBOL below Chapter 13  Designed for business applications  English-like statements make code easy to read, write, and maintain  COmmon Business-Oriented Language

12 Procedural Languages What is C? p. 13.07 Fig. 13-8 Next  Powerful language originally designed to write system software  Requires professional programming skills

13 Object-Oriented Programming Languages What is an object-oriented programming (OOP) language? p. 13.07 Next Used to implement object-oriented design Major benefit is ability to reuse existing objects Event-driven— checks for and responds to set of events C++ and Java are complete object-oriented languages Object is item that contains data and procedures that act on data Event is action to which program responds

14 Object-Oriented Programming Languages What is C++? p. 13.08 Fig. 13-9 Next Click to view Web Link, then click C++ below Chapter 13  Includes all elements of C, plus additional features for working with object-oriented concepts  Used to develop database and Web applications

15 Object-Oriented Programming Languages What is Java? p. 13.08 Fig. 13-10 Next Click to view Web Link, then click Java below Chapter 13  Developed by Sun Microsystems  Similar to C++ but uses just-in-time (JIT) compiler to convert source code into machine code Click to view video

16 Object-Oriented Programming Languages What is a visual programming language? p. 13.09 Next Click to view Web Link, then click RAD below Chapter 13 Programmer writes and implements program in segments Visual programming environment (VPE) allows developers to drag and drop objects to build programs Often used in RAD (rapid application development) environment Sometimes called fifth-generation language Provides visual or graphical interface for creating source code

17 Object-Oriented Programming Languages What is Visual Studio.NET? p. 13.10 Next Click to view Web Link, then click Visual Studio.NET below Chapter 13  Suite of visual programming languages and RAD tools .NET is set of technologies that allows program to run on Internet  Visual Basic.NET is used to build complex object-based programs Step 1. The programmer designs the user interface. Step 2. The programmer assigns properties to each object on the form. Step 3. The programmer writes code to define the action of each command button. Step 4. The programmer tests the application.

18 Object-Oriented Programming Languages What is Delphi? p. 13.11 Fig. 13-12 Next  Powerful visual programming tool  Ideal for large-scale enterprise and Web applications

19 Object-Oriented Programming Languages What is PowerBuilder? p. 13.12 Fig. 13-13 Next  Another powerful visual programming tool  Best suited for Web-based and large-scale object-oriented applications

20 Nonprocedural Languages What is RPG (Report Program Generator)? p. 13.12 Fig. 13-14 Next  Nonprocedural language used for generating reports, performing computations, and updating files  Nonprocedural language—contains English-like instructions that retrieve data

21 Nonprocedural Languages What is a fourth-generation language (4GL)? p. 13.13 Fig. 13-15 Next  Nonprocedural language that allows access to data in database  Popular 4GL is SQL, query language that allows users to manage data in relational DBMS

22 Program Development Tools What is an application generator? p. 13.13 Fig. 13-16 Next  Program that creates source code or machine code from specification  Consists of report writer, form, and menu generator  Form provides areas for entering data

23 Program Development Tools What is Visual Basic for Applications (VBA)? p. 13.14 Fig. 13-17 Next Click to view Web Link, then click Macros below Chapter 13  Macro programming language  Macro—series of statements used to automate tasks

24 Web Page Development What is HTML (Hypertext Markup Language)? p. 13.16 Fig. 13-18 Next Click to view Web Link, then click HTML below Chapter 13  Used to create Web pages

25 Web Page Development How are special effects and interactive elements added to a Web page? p. 13.17 Next Counter Counter tracks number of visitors to Web site Image map Image map graphic image that points to URL Script Script interpreted program that runs on client Applet Applet usually runs on client, but is compiled Processing form Processing form collects data from visitors to Web site Servlet Servlet applet that runs on server ActiveX control ActiveX control small program that runs on client

26 Web Page Development What is the common gateway interface (CGI)? p. 13.18 Next  Communications standard that defines how Web server communicates with outside sources Step 3. When the user submits a request, it is sent to the CGI program. The CGI program contacts the database and requests information for the user. In this case, it looks for a movie titled The Secret Garden. Step 1. The programmer stores the CGI program in a special folder on the Web server such as /cgi-bin. Step 2. The Webmaster creates a link between the CGI program and Web page. When a user displays the Web page, the CGI program automatically starts. Step 4. The CGI program receives information from the database, assembles it in an HTML format, and sends it to the user’s Web browser. Database  CGI script—program that manages sending and receiving across CGI

27 Web Page Development What is a scripting language? p. 13.19 Fig. 13-20 Next Click to view Web Link, then click Scripting Languages below Chapter 13  Typically easy to learn and use  JavaScript—adds dynamic content and interactive elements to Web page  VBScript (Visual Basic, Scripting Edition)—adds intelligence and interactivity to Web page  Perl (Practical Extraction and Report Language)— has powerful text processing capabilities

28 Web Page Development What is dynamic HTML (DHTML)? p. 13.20 Fig. 13-21 Next  Allows developers to include more graphical interest and interactivity in Web page

29 Web Page Development What are XHTML, XML, and WML? p. 13.20 Next Click to view Web Link, then click XML below Chapter 13 XHTML (Extensible HTML) enables Web sites to be displayed more easily on microbrowsers XML (Extensible Markup Language) allows developers to create customized tags WML (Wireless Markup Language) allows developers to design pages specifically for microbrowsers Includes features of HTML and XML Uses wireless application protocol (WAP), standard that specifies how wireless devices communicate with Web Server sends entire record to client, enabling client to do much of processing without going back to server

30 Microsoft FrontPage Macromedia Flash Web Page Development Macromedia Fireworks What is Web page authoring software? p. 13.21 Next  Creates sophisticated Web pages without using HTML  Generates HTML Macromedia Dreamweaver Lotus FastSite Adobe LiveMotion Adobe GoLive

31 Multimedia Program Development What is multimedia authoring software? p. 13.22 Fig. 13-23 Next  Combines text, graphics, animation, audio, and video into interactive presentation  Used for computer- based training (CBT) and Web-based training (WBT)  Software includes Toolbook, Authorware, and Director

32 Other Programming Languages What are other available programming languages? p. 13.22 Next ALGOLALGOLADAADAAPLAPL FORTHFORTHLISPLISPHYPERTALKHYPERTALKFORTRANFORTRAN LOGOLOGOPASCALPASCALMODULA-2MODULA-2 PILOTPILOTSMALLTALKSMALLTALKPROLOGPROLOGPL/IPL/I

33 The Program Development Cycle What is the program development cycle? p. 13.24 Fig. 13-25 Next  Steps programmers use to build computer programs  Programming team—Group of programmers working on program

34 Step 1 — Analyze Requirements What is involved in analyzing the requirements? p. 13.25 Fig. 13-26 Next 1. Review requirements 2. Meet with systems analyst and users 3. Identify input, output, processing, and data components  IPO chart— Identifies program’s inputs, outputs, and processing steps IPO chart

35 Programmer begins with general design and moves toward detailed design Step 2 — Design Solution What is involved in designing the solution? p. 13.26 Next Object-oriented design Structured design, sometimes called top-down design Two approaches Devise solution algorithm, step-by-step procedure to solve problem

36 Step 2 — Design Solution What is a hierarchy chart? p. 13.26 Fig. 13-27 Next  Shows program modules graphically  Also called structure chart

37 Step 2 — Design Solution What is object-oriented (OO) design? p. 13.27 Fig. 13-28 Next Click to view Web Link, then click Object-Oriented Design below Chapter 13  Programmer packages data and procedure into single unit, an object  Objects are grouped into classes  Class diagram represents hierarchical relationships of classes graphically

38 Step 2 — Design Solution What is a sequence control structure? p. 13.28 Fig. 13-29 Next  Control structure that shows actions following each other in order  Control structure depicts logical order of program instructions

39 Step 2 — Design Solution What is a selection control structure? p. 13.28 Fig. 13-30 Next  Tells program which action to take, based on a certain condition  Two types  Case control structure  If-then-else control structure—yields one of two possibilities: true or false

40 Step 2 — Design Solution What is a case control structure? p. 13.28 Fig. 13-31 Next  Yields one of three or more possibilities

41 Step 2 — Design Solution What is a repetition control structure? p. 13.29 Figs. 13-32–13-33 Next  Enables program to perform one or more actions repeatedly  Do-while control structure—repeats as long as condition is true  Do-until control structure—repeats until condition is true Do-While Control StructureDo-Until Control Structure

42 Step 2 — Design Solution What is a program flowchart? p. 13.30 Fig. 13-34 Next  Graphically shows logic in solution algorithm

43 Step 2 — Design Solution What is an example of a flowchart? p. 13.30 Fig. 13-35 Next

44 Step 2 — Design Solution What is flowcharting software? p. 13.30 Fig. 13-36 Next Click to view Web Link, then click Flowcharting Software below Chapter 13  Used by programmers to develop flowcharts

45 Step 2 — Design Solution What is pseudocode? p. 13.32 Fig. 13-37 Next  Uses condensed form of English to convey program logic

46 Step 3 — Validate Design What is involved in validating the design? p. 13.32 Next Check program design for accuracy Logic error design flaw that causes inaccurate results Test data sample data that mimics real data that program will process Programmer checks logic for correctness and attempts to uncover logic errors Desk check programmers use test data to step through logic Structured walkthrough programmer explains logic of algorithm while programming team steps through program logic

47 Step 4 — Implement Design What is implementation? p. 13.33 Fig. 13-38 Next Click to view Web Link, then click Extreme Programming below Chapter 13  Writing the code that translates the design into a program  Syntax—rules that specify how to write instructions  Comments—program documentation  Extreme programming (XP)—coding and testing as soon as requirements are defined

48 Step 5 — Test Solution What is involved in testing the solution? p. 13.34 Next Ensure program runs correctly and is error free Debugging—locating and correcting syntax and logic errors, or bugs Test copy of program, called beta, sometimes used to find bugs

49 Step 6 — Document Solution What is involved in documenting the solution? p. 13.36 Next  Programmer performs two activities Reviews program code—removes dead code, program instructions that program never executes Reviews documentation

50 Summary of Programming Languages and Program Development Various programming languages used to write and develop computer programs The program development cycle and the tools used to make this process efficient Web development and multimedia development tools Chapter 13 Complete


Download ppt "Chapter 13 Programming Languages and Program Development."

Similar presentations


Ads by Google