Mod - 1 Programming Concepts
Mod - 1 Programming Concepts
CONCEPT
(MODULE 1)
“
2
OBJECTIVES
3
1
INTRODUCTION TO
PROGRAMMING LANGUAGE
Programming Concept
4
"Top Programming Languages" by daniel_iversen is licensed
under CC BY 2.0
5
PROGRAMMING TERMINOLOGIES
▰ Machine language
▻ The most basic circuitry-level language
▻ A low-level programming language
▰ Syntax: rules governing word usage and punctuation in the
language
▰ Coding is the process of translating a computer solution
into a language a computer can understand
▰ Debugging - Freeing program of all errors
7
PROGRAMMING TERMINOLOGIES
▰ Program statements
▻ Similar to English sentences
▻ Commands to carry out program tasks
▰ Compiler or interpreter: software that translates
programming languages to machine language
8
PROGRAMMING TERMINOLOGIES
▰ Syntax error
▻ Misuse of language rules
▻ A misspelled programming language word
▰ Logic errors
▻ Also called semantic errors
▻ Incorrect order or procedure
▻ The program may run but provide inaccurate output
9
"The Evolution of Computer Programming Languages #C #Fortran #Java
#Ruby" by dullhunk is licensed under CC BY 2.0 10
History of PL
Video Presentations (Click the link to
watch or type the link below to the
browser)
https://youtu.be/Pn5znSOGHcs (History and Evolution of
PL)
https://youtu.be/mhpslN-OD_o
11
12
LANGUAGE OF A COMPUTER
13
MACHINE LANGUAGE
Machine Languages – known also as machine code. Instructions written in 0s and 1s.
Example: 10010 00110 111000
0 – off ; 1 – on
14
MACHINE LANGUAGE
15
ASSEMBLY LANGUAGE
16
HIGH-LEVEL LANGUAGE
17
HIGH-LEVEL LANGUAGE
PROCEDURAL OBJECT-ORIENTED
the programmer concentrates on the requires the programmer to focus on
major tasks that the program needs to the objects that the program can use
perform. to accomplish its goal.
Example:
▰ COBOL (Common Business Oriented Example: C++, Visual Basic, C#, Java (but
Language) this can also be used to create procedure-
▰ BASIC (Beginner’s All Purpose Symbolic oriented programs)
Instruction Code)
▰ C-Language
18
2
THE PROBLEM SOLVING
PROCESS
Programming Concept
19
PROGRAMMING PROCESS (Phases)
20
Understand the problem
21
Plan the logic
22
Code the program
23
Use software to translate the program to machine language
24
Test the program
25
Putting the Program into Production
26
3
ALGORITHM CONCEPT
Programming Concept
27
ALGORITHM
28
EXAMPLE OF • What is an Algorithm? - D
efinition & Examples - Vid
ALGORITHM eo & Lesson Transcript |
Study.com
Click the following link
for video presentation • https://youtu.be/6hfOvs8
about algorithm pY1k
29
Problem-Solving Process
1. Analyze the problem and outline the problem and its solution requirements
2. Design an algorithm to solve the problem
3. Implement the algorithm in a programming language
4. Verify that the algorithm works
5. Maintain the program by using and improving it and modifying it if the problem
domain changes
30
REFERENCES
Books:
▰ Farrell, J. (2018). Programming Logic and Design, Comprehensive, 9th Ed. Cengage Learning.
▰ Malik, D.S. (2012). Java Programming: From Problem Analysis to Program Design. Course Technology, Cengage
Learning.
▰ Zak, D. (2016). An Introduction to Programming with C++, Sixth Edition. Cengage Learning.
31
REFERENCES
Website/Online Resources:
▰ https://lawtomated.com/coding-for-beginners-what-to-learn-where-how-and-why-part-2/
▰ https://study.com/academy/lesson/what-is-an-algorithm-definition-examples.html
Videos:
▰ https://youtu.be/Pn5znSOGHcs
▰ https://youtu.be/mhpslN-OD_o
▰ https://youtu.be/6hfOvs8pY1k
32
THANKS!
Any questions?
33
CREDITS
34