CP Chapter 3
CP Chapter 3
INTRODUCTION TO PROGRAMMING
WHAT IS COMPUTER PROGRAMMING?
•Programming is a skill that can be acquired by a computer professional
that gives him/her the knowledge of making the computer perform the
required operation or task .
• Writing computer programs means writing instructions that will make the
computer follow and run a program based on those instructions.
• In every programming language, there are sets of rules that govern the
symbols to be used in the programming language.
• This set of rules determine how the programmer can make the
computer hardware to perform a specific operation. These sets of rules
are called syntax.
REASONS TO STUDY PROGRAMMING
• Disadv
• poor control in hardware
• less efficiency
GENERATION OF PROGRAMMING LANGUAGE
• These programming languages can also be categorized into two broad
categories:
• low level and high-level languages.
• Low-level languages are machine specific or dependent.
• High-level languages like COBOL and BASIC are machine independent and
can run on a variety of computers.
• From the five categories of programming languages, first- and second-
generation languages are low-level languages and the remaining
categories are high-level programming languages.
• The higher the level of a language, the easier it is to understand and use
by programmers.
• Languages after the fourth generation are referred to as a very high-level
language.
FIRST GENERATION (MACHINE LANGUAGES, 1940’S)
•It provides additional tools to manage the problems that larger programs
were creating.
•It also frowns upon the use of global variables and instead uses variables
local to each subroutine.
•SDLC stages cover the complete life cycle of software i.e., from
inception to retirement of the product.