Intro Comp Programming
Intro Comp Programming
QXD
1/23/08
5:19 PM
Page 17
languages created in the 1950s), he or she would write the following instruction to display the
message Hello world on the computer screen:
DISPLAY "Hello world"
Python is a modern, high-level programming language that we will use in this book. In
Python you would display the message Hello world with the following instruction:
print 'Hello world'
Doing the same thing in assembly language would require several instructions, and an intimate
knowledge of how the CPU interacts with the computers output device. As you can see from this
example, high-level languages allow programmers to concentrate on the tasks they want to perform with their programs rather than the details of how the CPU will execute those programs.
Since the 1950s, thousands of high-level languages have been created. Table 1-1 lists several
of the more well-known languages.
Table 1-1
Programming languages
Language
Description
Ada
Ada was created in the 1970s, primarily for applications used by the U.S.
Department of Defense. The language is named in honor of Countess Ada
Lovelace, an influential and historic figure in the field of computing.
BASIC
FORTRAN
COBOL
Pascal
Pascal was created in 1970, and was originally designed for teaching programming. The language was named in honor of the mathematician, physicist, and
philosopher Blaise Pascal.
C and C++
C and C++ (pronounced c plus plus) are powerful, general-purpose languages developed at Bell Laboratories. The C language was created in 1972
and the C++ language was created in 1983.
C#
Java
Java was created by Sun Microsystems in the early 1990s. It can be used to develop
programs that run on a single computer or over the Internet from a web server.
JavaScript
JavaScript, created in the 1990s, can be used in web pages. Despite its name,
JavaScript is not related to Java.
Python
Ruby
Ruby is a general-purpose language that was created in the 1990s. It is increasingly becoming a popular language for programs that run on web servers.
Visual Basic
17