Discovering Computers 2008 Chapter 11 Chapter 11 Chapter 11 Chapter 11 Programming Programming Programming Programming Languages and Languages and Languages and Languages and Program Development Program Development Program Development Program Development
54
Embed
CSC1100 - Chapter11 - Programming Languages and Program Development
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Discovering Computers 2008
Chapter 11 Chapter 11 Chapter 11 Chapter 11
Programming Programming Programming Programming
Languages and Languages and Languages and Languages and
Program DevelopmentProgram DevelopmentProgram DevelopmentProgram Development
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 softwareDifferentiate between machine and assembly languages
Differentiate between machine and assembly languages
Identify and discuss the purpose of procedural programming languagesIdentify and discuss the purpose of procedural programming languages
Identify the uses of popular multimedia authoring programs
Identify the uses of popular multimedia authoring programs
Identify and discuss the characteristics of object-oriented programming languages and
program development tools
Identify and discuss the characteristics of object-oriented programming languages and
program development tools
Identify the uses of other programming languages and other program development
tools
Identify the uses of other programming languages and other program development
tools
List the six steps in the program development cycle
List the six steps in the program development cycle
Differentiate between structured design and object-oriented design
Differentiate between structured design and object-oriented design
Explain the basic control structures and design tools used in designing solutions to
programming problems
Explain the basic control structures and design tools used in designing solutions to
programming problems
3
Computer Programs and Programming LanguagesComputer Programs and Programming LanguagesComputer Programs and Programming LanguagesComputer Programs and Programming Languages
What is a computer program?� Series of instructions that directs computer to
perform tasks� Programming language— used to communicate
instructions
4
Computer Programs and Programming LanguagesComputer Programs and Programming LanguagesComputer Programs and Programming LanguagesComputer Programs and Programming Languages
What are low-level languages and high-level languages?
High-level language
High-level language
Low-levellanguageLow-levellanguage
Machine-dependentMachine-dependent Often machine-Often machine-Machine-dependentruns only on one type of
computer
Machine-dependentruns only on one type of
computer
Often machine-independent
can run on many different types of computers and
operating systems
Often machine-independent
can run on many different types of computers and
operating systemsMachine and assembly languagesare low-levelMachine and assembly languagesare low-level
5
LowLowLowLow----Level LanguagesLevel LanguagesLevel LanguagesLevel Languages
What is machine language?� Only language computer
directly recognizes� Uses a series of binary
digits (1s and 0s)with a combination of numbers combination of numbers and lettersthat represent binary digits
6
LowLowLowLow----Level LanguagesLevel LanguagesLevel LanguagesLevel Languages
What is assembly language?� Instructions made up of
symbolic instruction codes, meaningful abbreviations and codes
� Source programcontains � Source programcontains code to be converted to machine language
7
Procedural LanguagesProcedural LanguagesProcedural LanguagesProcedural Languages
What is a procedural language?
Uses series of English-like words to write instructions
Programmer writes instructions that tell computer what to
accomplish and how to do it
Often called thirdthird--generation language generation language
(3GL)(3GL)
accomplish and how to do it
8
Procedural LanguagesProcedural LanguagesProcedural LanguagesProcedural Languages
What is a compiler?� Program that
converts entire source program into machine machine languagebefore executing it
9
Procedural LanguagesProcedural LanguagesProcedural LanguagesProcedural Languages
What is an interpreter ?� Program that
translates and executesone program statement (code) at (code) at a time
� Does not produce object program
10
Procedural LanguagesProcedural LanguagesProcedural LanguagesProcedural Languages
What is COBOL?� Designed for business applications� English-like statements make code easy to read, write,
and maintain� COmmon Business-Oriented Language
11
Procedural LanguagesProcedural LanguagesProcedural LanguagesProcedural Languages
What is C?� Powerful language originally designed to write system
software� Requires professional programming skills
COBOL
C
12
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is an object-oriented programming (OOP) language?
Used to implement
object-oriented design
Major benefit is ability to
reuse existing objects
Event-driven—checks for
and responds to set of events
Java, C++, C#, and Visual Basic
are complete object-oriented
languageslanguagesObject is item that contains data and
proceduresthat act on data
Event is action to which program responds
13
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is Java?� Developed by Sun
Microsystems� Similar to C++ but
uses just-in-time (JIT) compiler to (JIT) compiler to convert source code into machine code
14
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is C++?� Includes all elements of C, plus additional features
for working with object-oriented concepts� Used to develop
database and Web applicationsWeb applications
15
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is C#?� 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 � Resulting code is called Microsoft Intermediate
Language (MSIL)
16
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is a visual programming language?
Visual programming environment (VPE)allows developers to
drag and drop objects to build programs
Provides Provides visual or visual or graphical interfacegraphical interface for for creating source codecreating source code
Programmer writes and implements program in segments
to build programs
Often used in Often used in RAD RAD (rapid application (rapid application
development)development)environmentenvironment
Sometimes calledSometimes calledfifthfifth--generation generation
languagelanguage
17
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is VisualStudio?� .NET is set of technologies that allows program to run on Internet� Comprised ofVisual Basic, Visual C++, Visual C#, and Visual J#
Step 1. The developer designs the user interface.
Step 2. The developer assigns properties to each object on the form.
user interface.
Step 3. The developerwrites code to define the action of each command button.
Step 4. The developer tests the program.
18
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is Delphi?� Powerful visual programming tool� Ideal for large-scale enterprise and Web applications
19
ObjectObjectObjectObject----Oriented Programming LanguagesOriented Programming LanguagesOriented Programming LanguagesOriented Programming Languages
What is PowerBuilder?� Another powerful visual programming tool� Best suited for Web-based and large-scale
enterprise object-oriented applications
20
Other Programming LanguagesOther Programming LanguagesOther Programming LanguagesOther Programming Languages
� What are nonprocedural languagesand program development tools?
Nonprocedural Language
The programmer writes English-
Nonprocedural Language
The programmer writes English-
Program Development Tools
User-friendly programs
Program Development Tools
User-friendly programs The programmer writes English-like instructions or interacts with a visual environment to retrieve
data from files or a database
The programmer writes English-like instructions or interacts with a visual environment to retrieve
data from files or a database
User-friendly programs designed to assist both
programmers and users in creating programs
User-friendly programs designed to assist both
programmers and users in creating programs
21
Other Programming LanguagesOther Programming LanguagesOther Programming LanguagesOther Programming Languages
What is a fourth-generation language (4GL)?� 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
Other Program Development ToolsOther Program Development ToolsOther Program Development ToolsOther Program Development Tools
What is an application generator?� 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
Web Page DevelopmentWeb Page DevelopmentWeb Page DevelopmentWeb Page Development
What is HTML (Hypertext Markup Language)?� Used to create Web pages
24
Web Page DevelopmentWeb Page DevelopmentWeb Page DevelopmentWeb Page Development
What is the common gateway interface (CGI)?� Communications standard
that defines how Web server communicates with outside sources� CGI script —program that
manages sending and receiving manages sending and receiving across CGI
25
Web Page DevelopmentWeb Page DevelopmentWeb Page DevelopmentWeb Page Development
What is dynamic HTML (DHTML) ?� Allows developers to
include more graphical interest and interactivity in Web page
26
Web Page DevelopmentWeb Page DevelopmentWeb Page DevelopmentWeb Page Development
What are XHTML , XML , and WML ?
XHTML XHTML (Extensible HTML)
enables Web sites to be displayed more easily on microbrowsers
XML XML
Includes features of HTML and XML
XML XML (Extensible Markup Language)
allows developers to create customized tags
WMLWML(Wireless Markup Language)
allows developers to design pages specifically for microbrowsers
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 serverRSS 2.0
27
Web Page DevelopmentWeb Page DevelopmentWeb Page DevelopmentWeb Page Development
What is Web page authoring software?� Creates sophisticated Web pages without using HTML� Generates HTML
FlashFlashExpressionExpressionWebWeb
DreamweaverDreamweaver
28
Multimedia Program DevelopmentMultimedia Program DevelopmentMultimedia Program DevelopmentMultimedia Program Development
What is multimedia authoring software?� Combines text,
graphics, animation, audio, and video into interactive presentation
� Used for computer-Used for computer-based training (CBT) and Web-based training (WBT)
� Software includes Toolbook, Authorware, and Director
29
The Program Development CycleThe Program Development CycleThe Program Development CycleThe Program Development Cycle
What is the program development cycle?� Steps programmers use to build computer programs
� Programming team—Groupof programmers working on programprogram
What is involved in analyzing the requirements?1. Review requirements2. Meet with systems analyst and users3. Identify input, output, processing, and data
components� IPO chart—� IPO chart—
Identifies program’s inputs, outputs, and processing steps
What is involved in documenting the solution?� Programmer performs two activities
Reviewsprogram code — removes dead code, Reviewsprogram code — removes dead code, — removes dead code, program instructions that program never
executes
— removes dead code, program instructions that program never
executesReviews
documentationReviews
documentation
46
Summary of Programming Languages and Program DevelopmentSummary of Programming Languages and Program DevelopmentSummary of Programming Languages and Program DevelopmentSummary 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 programsWeb development and multimedia
development toolsWeb development and multimedia
development toolsThe 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
development toolsdevelopment tools
Chapter 10 Complete
47
ADDITIONSADDITIONSADDITIONSADDITIONS
48
Other Programming LanguagesOther Programming LanguagesOther Programming LanguagesOther Programming Languages
What is RPG (Report Program Generator)?� Nonprocedural language used for generating reports,
performing computations, and updating files
49
Other Programming LanguagesOther Programming LanguagesOther Programming LanguagesOther Programming Languages