Module 1 Comprog 1
Module 1 Comprog 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
Disadvantages:
a) generally slower than low-level languages
b) less efficient in the use of computer resources
than low-level languages (Prakash, 2017)
2. Low-Level Language
- are programming languages that are closer to the
machine code that computers understand. They
provide more direct control over the hardware, but
they are also more difficult to read and write than
high-level languages.
Disadvantages:
a) level of detail required is much too tedious for
humans; code is much, much longer than high-
level ones
b) not portable; works only on the particular
computer it was designed for
Traditionally, programmers are taught how to display “hello world” message
on the screen as their first program. Below are sample codes in different
computer languages.
A. JavaScript (Jones, 2017) code; this is different from Java, programming language
you will be learning in this course:
B. Linux x86-64 assembly (Fisher, 2018) program:
C. Swift (appcoda.com, 2017) program, the language used in
Apple devices:
Ada Lovelace’s friend, Charles Babbage (the Father of Computing) gave a lecture in Italy
about his mechanical general-purpose computing machine (not completed) which he called
the “Analytical Engine”. A transcript of his lecture was translated by Lovelace into English, to
which she added her own notes.
Ada Lovelace published her notes (3x longer and took 9 months to finish) about
how a never-built computer (Analytical Engine) could calculate a mathematical
sequence (Bernoulli numbers). This note had all the steps that formed the
algorithm of the first published computer program.
ANALYTICAL ENGINE - a
ADA LOVELACE - first computer CHARLES BABBAGE - father
proposed digital mechanical
programmer as she drafted of computing that designed
general-purpose computer
plans for how a machine called the first automatic
designed by English
computing engines
the Analytical Engine could mathematician and computer
perform computations. pioneer Charles Babbage
Fast forward to ninety-six years after Babbage’s Analytical Engine, Alan Turing presented the
concept of a “universal machine, later called the Turing machine”, which can “compute
anything that is computable”. Thus was born the central concept of the modern computer
and the notion of programming (instructions on how to compute any kind of what) at the
machine level.
John Atanasoff and his graduate student, Clifford Berry, designed a computer that
can solve 29 equations simultaneously. This marked the first time a computer is
able to store information on its main memory.
ALAN TURING - ABC or Atanasoff-Berry JOHN ATANASOFF (right)
Computer - the first electronic and his graduate student,
developed the idea for
digital computer. CLIFFORD BERRY (left) -
the Universal Turing
Machine, the basis for designed the first electronic
the first computer. digital computer.
Grace Hopper developed the first computer language, which eventually became
known as COBOL (Common Business-Oriented Language). The following year the
FORTRAN programming language, an acronym for FORmula TRANslation, was
developed by a team of programmers at IBM led by John Backus, according to the
University of Michigan.