Top Banner
Programming Languages
27
Welcome message from author
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
Page 1: Programming languages

Programming Languages

Page 2: Programming languages

2

Objectives Overview

Differentiate between low-level languages and

procedural languages

List other programming languages and other

program development tools

List the six program development steps

Explain the basic control structures used in designing solutions

to programming problems

Page 3: Programming languages

3

Programming Languages and Program Development Tools

• A computer program is a series of instructions that directs a computer to perform tasks– Created by a programmer using a programming

language

Page 4: Programming languages

4

Programming Languages and Program Development Tools

• Machine language is the first generation of programming languages

• Only language the computer directly recognizes

Page 5: Programming languages

Programming Languages and Program Development Tools

• Assembly language is the second generation of programming languages

• Programmer writes instructions using symbolic instruction codes

• A source program contains the code to be converted to machine language

Page 6: Programming languages

6

Programming Languages and Program Development Tools

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

A compiler translates an entire

program before executing it

An interpreter converts and executes one code

statement at a time

Page 7: Programming languages

7

Programming Languages and Program Development Tools

Page 8: Programming languages

8

Programming Languages and Program Development Tools

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

Page 9: Programming languages

9

Programming Languages and Program Development Tools

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

Page 10: Programming languages

10

Programming Languages and Program Development Tools

• An object-oriented programming (OOP) language allows programmers the ability to reuse and modify existing objects

• Other advantages include:

Objects can be reused

Programmers create applications

faster

Work well in a RAD environment

Most program development tools

are IDEs

Page 11: Programming languages

11

Programming Languages and Program Development Tools

• 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

Page 12: Programming languages

12

Programming Languages and Program Development Tools

• The Microsoft .NET Framework allows almost any type of program to run on the Internet or an internal business network, as well as computers and mobile devices

Page 13: Programming languages

13

Programming Languages and Program Development Tools

• C++ is an extension of the C programming language– Additional features for working with objects, classes,

events, and other object-oriented concepts• C# is based on C++ and was developed by

Microsoft• F# combines the benefits of an object-oriented

language with the benefits of a functional language

Page 14: Programming languages

14

Programming Languages and Program Development Tools

Visual Studio is Microsoft’s suite of program development tools

Visual Basic is based on the BASIC

programming language

Visual C++ is based on C++

Visual C# combines the programming elements of C++ with an easier,

rapid-development environment

Page 15: Programming languages

Programming Languages and Program Development Tools

Page 16: Programming languages

16

Programming Languages and Program Development Tools

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

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 17: Programming languages

17

Programming Languages and Program Development Tools

• PowerBuilder is a powerful program development RAD tool

• Best suited for Web-based, .NET, and large-scale enterprise object-oriented applications

Page 18: Programming languages

18

Programming Languages and Program Development Tools

• A 4GL (fourth-generation language) is a nonprocedural language that enables users and programmers to access data in a database– One popular 4GL is SQL

Page 19: Programming languages

Programming Languages and Program Development Tools

• Classic programming languages include:

19

Ada ALGOL APL BASIC

Forth FORTRAN HyperTalk LISP

Logo Modula-2 Pascal PILOT

PL/1 Prolog RPG Smalltalk

Page 20: Programming languages

20

Programming Languages and Program Development Tools

• 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 21: Programming languages

21

Programming Languages and Program Development Tools

• A macro is a series of statements that instructs an application how to complete a task

• You usually create the macro in one of two ways:– Record the macro with a macro recorder– Write the macro

Page 22: Programming languages

22

Program Development Cycle

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

Page 23: Programming languages

23

Program Development Cycle

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

Page 24: Programming languages

24

Program Development Cycle

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

Page 25: Programming languages

25

Program Development Cycle

Page 26: Programming languages

26

Program Development Cycle

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

Page 27: Programming languages

27

Summary

Various programming languages and

program development tools

Program development steps

and control structures