1. Trang chủ
  2. » Công Nghệ Thông Tin

Discovering Computers - Chapter 13: Programming Languages and Program Development

51 59 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 51
Dung lượng 5,18 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Discovering Computers - Chapter 13: Programming Languages and Program Development present Computer Programs and Programming Languages, Low-Level Languages, Procedural Languages, Object-Oriented Programming Languages.

Trang 1

Chapter 13 Programming Languages and

Program Development

Trang 2

Chapter 13 Objectives

Next

Describe various ways to develop Web pages including HTML, scripting languages, DHTML, XML, WML, and Web page

authoring software

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

Differentiate between machine

and assembly languages

Identify and discuss the purpose of

procedural programming languages

Identify and discuss the purpose of

procedural programming languages

Identify and discuss the characteristics of

object-oriented programming languages

Identify and discuss the characteristics of

object-oriented programming languages

Discuss the advantages and uses of visual

programming languages

Discuss the advantages and uses of visual

programming languages

Identify the uses of other programming

languages and other program development

tools

Identify the uses of other programming

languages and other program development

Trang 3

Computer Programs and Programming Languages

Trang 4

Computer Programs and Programming Languages

What are low-level languages and high-level languages?

High-level language

High-level language

Low-level language

Low-level language

Machine-dependent

runs only on one type of computer

Machine-dependent

runs only on one type of computer Often machine-independent

can run on many different types of computers

Often machine-independent

can run on many different types of computers Machine and assembly languages

are low-level Machine and assembly languages

are low-level

Trang 5

combination of numbers and

letters that represent binary

digits

Trang 6

abbreviations and codes

Source program contains

code to be converted to

machine language

Trang 7

and how to do it

Trang 10

Procedural Languages

Designed for business applications

English-like statements make code easy to read, write,

and maintain

Business-Oriented Language

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

COBOL below Chapter 13

Trang 12

Object-Oriented Programming Languages

What is an object-oriented programming (OOP) language ?

Event-driven—

checks for and responds

to set of events

C++ and Java are complete object-oriented languages

Trang 13

Object-Oriented Programming Languages

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

Java below Chapter 13

Trang 14

Object-Oriented Programming Languages

Includes all elements of C, plus additional features

for working with object-oriented concepts

Used to develop

database and Web applications

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

C++ below Chapter 13

Trang 15

Object-Oriented Programming Languages

Object-oriented programming language based on C++

Accepted as a standard for Web applications and

XML-based Web services

Uses a JIT compiler

Resulting code is called Microsoft Intermediate

Language (MSIL)

Trang 16

Object-Oriented Programming Languages

Programmer writes and implements program in segments

environment

Sometimes called

fifth-generation language

Provides visual or graphical interface for creating source code

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

RAD below Chapter 13

Trang 17

Object-Oriented Programming Languages

.NET is set of technologies that allows program to run on Internet

Comprised of Visual Basic 2005 , Visual C++ 2005 , Visual C# 2005 , and Visual

Step 4. The programmer tests the application.

Step 3. The programmer writes code

to define the action of each command button.

Click to view Web

Link, click Chapter 13,

Click Web Link from left

navigation, then click

Visual Studio 2005

below Chapter 13

Trang 18

Object-Oriented Programming Languages

Powerful visual programming tool

Ideal for large-scale enterprise and Web applications

Trang 19

Object-Oriented Programming Languages

Another powerful visual programming tool

Best suited for Web-based and large-scale

object-oriented applications

Trang 20

Nonprocedural Languages

and Program Development Tools

development tools?

Nonprocedural Language

The programmer writes like instructions or interacts with

English-a visuEnglish-al environment to retrieve data from files or a database

Nonprocedural Language

The programmer writes like instructions or interacts with

English-a visuEnglish-al environment to retrieve data from files or a database

Program Development

Tools

User-friendly programs designed to assist both programmers and users in creating programs

Program Development

Tools

User-friendly programs designed to assist both programmers and users in creating programs

Trang 21

Other Programming Languages

Nonprocedural language used for generating reports,

performing computations, and updating files

Trang 22

Other Programming Languages

Nonprocedural language that allows access to data in

database

Popular 4GL is SQL , query language that allows users to

manage data in relational DBMS

Trang 23

Other Programming Languages

What are other available programming languages?

ALGOL

Trang 24

Other Program Development Tools

Program that creates source code or machine code from

specification

Consists of report writer, form, and menu generator

 Form provides areas for entering data

Trang 25

Other Program Development Tools

What is Visual Basic for Applications (VBA)?

Macro—series of statements used to automate tasks

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

Macros below Chapter 13

Trang 26

Web Page Development

Used to create Web pages

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

HTML below Chapter 13

Trang 27

Web Page Development

How are special effects and interactive elements added

to a Web page?

Counter

tracks number of visitors to Web site

Image map

graphic image that points to URL

collects data from visitors

to Web site

Servlet

applet that runs on server

ActiveX control

small program that runs on client

Trang 28

Web Page Development

What is the common gateway interface (CGI)?

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 Wizard of Oz.

CGI script—program that manages sending and receiving across CGI

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.

Trang 29

Web Page Development

What is a scripting language?

VBScript (Visual Basic,

Scripting Edition)— adds intelligence and

interactivity to Web page

Perl (Practical Extraction

and Report Language)—

has powerful text processing capabilities

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

Scripting Languages

below Chapter 13

Trang 30

Web Page Development

Trang 31

Web Page Development

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

Many PDAs and smart phones use WML as their markup language

Server sends entire record to client, enabling client to do much of processing without going back to server

Click to view Web

Link, click Chapter 13,

Click Web Link from left

navigation, then click

XML below

Chapter 13

Trang 32

FrontPage 2003

Flash MX

Web Page Development

Trang 33

Multimedia Program Development

Trang 34

The Program Development Cycle

Steps programmers use to build computer programs

Programming

team—Group of programmers working on program

Trang 35

Step 1 — Analyze Requirements

What is involved in analyzing the requirements?

1. Review requirements

2. Meet with systems analyst and users

3. Identify input, output, processing, and data

components

Identifies program’s inputs, outputs, and

processing steps

Trang 36

Programmer begins with general design and moves toward

detailed design

Step 2 — Design Solution

What is involved in designing the solution?

Object-oriented

design

Structured design , sometimes called top-down design

Two approaches

Devise solution algorithm, step-by-step procedure to solve problem

Trang 37

Step 2 — Design Solution

Shows program modules graphically

Also called structure chart

Trang 38

Step 2 — Design Solution

Programmer packages data and

procedure into single unit, an object

 Objects are grouped into classes

 Class diagram represents hierarchical

relationships of classes graphically

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

Object-Oriented Design

below Chapter 13

Trang 39

Step 2 — Design Solution

What is a sequence control structure?

Trang 40

Step 2 — Design Solution

What is a selection control structure?

action to take, based

on a certain condition

Trang 41

Step 2 — Design Solution

What is a case control structure?

Yields one of three or more possibilities

Trang 42

Step 2 — Design Solution

What is a repetition control structure?

Do-until control

structure—repeats

until condition is true

Do-While Control Structure Do-Until Control Structure

Trang 43

Step 2 — Design Solution

What is a program flowchart?

Graphically shows logic

in solution algorithm

Trang 44

Step 2 — Design Solution

Trang 45

Step 2 — Design Solution

Used by programmers to develop flowcharts

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

Flowcharting Software

below Chapter 13

Trang 46

Step 2 — Design Solution

Trang 47

Step 3 — Validate Design

What is involved in validating the design?

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

Trang 48

Step 4 — Implement Design

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

Click to view Web

Link, click Chapter 13, Click

Web Link from left

navigation, then click

Extreme Programming

below Chapter 13

Trang 49

Step 5 — Test Solution

What is involved in testing the solution?

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

Trang 50

Step 6 — Document Solution

What is involved in documenting the solution?

Programmer performs two activities

Reviews program code—removes dead code, program instructions that program never executes

Reviews program code—removes dead code, program instructions that program never executes

Reviews documentation Reviews documentation

Trang 51

Summary of Programming Languages and Program Development

Various programming languages

used to write and develop

computer programs

Various programming languages

used to write and develop

computer programs

The program development

cycle and the tools used to make

this process efficient

The program development

cycle and the tools used to make

this process efficient

Web development and multimedia

development tools

Web development and multimedia

development tools

Chapter 13 Complete

Ngày đăng: 30/01/2020, 17:53

TỪ KHÓA LIÊN QUAN