Slide 1 : Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi PROGRAMMING CONCEPTS
Ruchi Sharma
ruchisharma1701@gmail.com
Slide 2 : Contents Quick Recall – Pre Programming Concepts
Natural Vs. Computer Languages
Computer Languages - Classification
HLL Vs. LLL
HLL – Programming Approaches
Understanding Procedural Approach
Understanding Object oriented Approach
HLL & LLL – Bridging the gap Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 3 : Quick Recall - Pre Programming Concepts A computer needs to be instructed to do even a simple task.
We cannot communicate with a computer in the natural language as English.
We need some special computer languages called “Programming Languages” to communicate with the computer. Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 4 : Natural Vs. Computer Language(s) Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 5 : Natural Vs. Computer Language(s) Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 6 : Natural Vs. Computer Language(s) Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 7 : Computer Languages – Classification Computer Languages can be broadly classified as :
Low-level Languages(LLL) – These are more computer friendly & can be further categorised as
Machine Language
Assembly Language
High-level Languages(HLL) – These are mostly english-like, more human friendly languages. Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 8 : HLL
easier to understand
closer to the natural language
needs translation to a computer understandable form.
machine independent (i.e. it can be ported to another computer(& works well there) which has an environment/translator to support it)
LLL
difficult to understand
majorly involves symbols
doesn’t need any translation
machine dependent HLL Vs. LLL Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 9 : There are two basic approaches to write a program :
Procedural approach –
conventional approach
program is written considering the code as the primary entity & the data as a secondary one
works on the principle “Code acting on data”
Object oriented approach –
data is a primary focus while writing the program
objects are identified & accordingly the code is written
works on the principle “Code revolving around data” HLL – Programming Approaches Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 10 : Understanding Procedural approach the problem is broken down into smaller steps & then a code(program) is written to accomplish the task of solving the problem
uses variables, constants & functions to write a program
code is organized as to tell “what is happening ?”
data that will be influenced while executing the program is not considered at the time of coding Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 11 : Understanding Object Oriented approach central idea is to consider the data & organize the code around it
the data is defined along with the code that is permitted to act on that data
coding is done as to tell “who is being affected & how ?” Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 12 : HLL & LLL – Bridging the gap As a program is written in HLL, but the computer understands only the LLL (Machine language), the code written has to be converted into its machine language equivalent. A translator program called a Compiler does it. The HLL program called the source code is to be given to it as the input & it yields the equivalent LLL program called the object code.
Complier Program Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi
Slide 13 : Thank You Ruchi Sharma ruchisharma1701@gmail.com http://www.wiziq.com/tutor-profile/376074-Ruchi