Chapter 1.0
Chapter 1.0
PROGRAMMING
What ?
Computer Programming
How to program ?
•Requires knowledge in the application domain
•Follow the steps in software development method
Programming is a problem-solving
activity
Programming Language ?
Method of communication for which
computers could understand and execute Function?
the instructions written in source code.
A programming
language is
therefore a Hello! What can I
do to you?
practical way
for us (humans)
to give
instructions to
a computer.
Tell me 1 + 1 is
equal to what???
1.1.2 Explain the background of C programming.
C History
Why use C?
main()
{
printf("hello, world\n");
return 0;
}
Examples of C programming
1.1.4 Explain the compile and execute programs.
Reference: http://www-ee.eng.hawaii.edu/~tep/EE160/Notes/Intro/cprogram.html
1.1.4 Explain the compile and execute programs.
Reference: http://c.camden.rutgers.edu/c_resources/c_programming/
http://c.camden.rutgers.edu/c_resources/c_programming/
1.2 Know the definition and
types of programming.
1.2.1 Define the following terms:
• Programme
• Programmer
• Programming language
1.2.1 Define the following terms:
Programme:
• A set of step-by-step instructions that tells a
computer to perform a specific task and to produce
the required results.
• written by the programmer
• Produced through programming
19
1.2.1 Define the following terms:
Programme.
(computer science) a sequence of instructions that
a computer can interpret and execute; "the
program required several hundred lines of code“
A sequence of instructions, stored in any medium,
that can be interpreted and executed by a
computer; - called most frequently a program. This
term is used both for the written program (a
document) and for its corresponding electronic
version stored or executed on the computer.
1.2.1 Define the following terms:
Programme.
Programmer.
Individual that composes instructions for computer systems to refer to
when performing a given action.
Define the following terms:
What is programming?
1.2.1
Programming
• Programming is a process of designing/
creating a program.
• It is a communication technique to explain the
instructions to the computer.
• Used to produce the program.
24
1.2.1 Define the following terms:
Programming Language.
a set of conventions in which instructions for the
machine are written.
A high-level language used to write computer
programs, as COBOL or BASIC, or, sometimes, an
assembly language.
An artificial language used to write instructions
that can be translated into machine language and
then executed by a computer.
1.2.1 Define the following terms:
Programming Language.
C language
assembly
Language
Motorola I.C
1.2.2 Describe the various types of
programming languages
Asse High
Mac level
mbl lang
hine
y uage
evel l an guage
Low l
27
1.2.2 Describe the various types of
programming languages
Category Explanation
Machine Binary number codes understood by
language a specific CPU
Assembly Mnemonic codes that correspond to
language machine language instructions
High level Machine-independent programming
language language that combines algebraic
expressions and English symbols.
PC architecture
1.2.2 Describe the various types of
programming languages
Assembler:
assembly machine
compiler or interpreter
high level machine
42
Assembly
code
Assembler
Object code
(machine language)
43
1.2.2 Describe the various types of
programming languages
• Structured programming
• Modular programming
• Object-Oriented programming
1.3.1 Explain the following types of programming:
module1 module2
data+data1 data+data2
procedure2 procedure3
procedure1
55
1.3.1 Explain the following types of programming:
Definition - - -
60
Types of programming
Structured Programming/
Object Oriented Programming
Modular programming
Structured Programming is less secure as there is Object Oriented Programming is more secure
no way of data hiding. as having data hiding feature.
Structured Programming can solve moderately Object Oriented Programming can solve any
complex programs. complex programs.
Less abstraction and less flexibility. More abstraction and more flexibility.
References:-
• http://fresh2refresh.com/cprogramming/c-language-history/
• http://www.le.ac.uk/users/rjm1/cotter/page_05.htm
• http://
infotechcreations.blogspot.com/2011/08/what-is-c-programm
ing-language.html
• http://www-ee.eng.hawaii.edu/~
tep/EE160/Notes/Intro/cprogram.html
• http://c.camden.rutgers.edu/c_resources/c_programming/
• https
://freefeast.info/difference-between/difference-between-stru
ctured-programming-and-object-oriented-programming-struc
tured-programming-vs-object-oriented-programming
/