SlideShare ist ein Scribd-Unternehmen logo
1 von 26
By
Mrs. Venkata Sushma Chinta
Assistant Professor
Mechanical Engineering Department
CBIT.
Difference between a calculator and computer
Difference between a calculator and computer
************************************************************************************
Computer Calculator
************************************************************************************
1. Computer is an electronic machine 1. Calculator is device used to
which can accept input, Process data and do basic Mathematics
gives desires result as Output operations.
2. Computer has a temporary and 2. Calculator has a Temporary
Permanent memory . Memory.
3.Computer can be used to 3. Calculator cannot be used
to send messages, email, text ,Video for communication
Chatting. purposes.
4. Computer Can support Graphics. 4. It cannot support Graphics.
5.Computer Can be used with Gadgets 5. Calculator cannot support
like Pen drive, Speakers, Printers,Projector. gadgets.
6.Computer screen can show Images 6.Calculator shows only
Video and Number. Numbers.
Program:
A program is a set of logically related instruction that are arranged in a
sequence that directs the computer in solving a problem.
Programming:
The process of writing a program is called programming.
Programming Language
To communicate with computers, programmers need a language is called
Programming language.
Machine language (1st Generation language)
Advantages:
As CPU directly understand machine instructions it takes less execution time.
Disadvantages:
It is not user-friendly language.
The binary code is very difficult to learn and use.
Difficult to understand, modify and debug errors.
Difficult to remember machine instructions.
Machine dependent
Machine language is a collection of binary digits or bits that the computers reads and
interprets.
Assembly Language
In Assembly language symbols such as letters , digits or special characters are
used as a part of instructional code. Such a representation is called Mnemonics
codes.
It is also called second generation language.
Sum of two numbers
Program in Assembly Language
A 7
B 10
A 17
By using mnemonics like LD,ADD the readability of the program increased
significantly
LD A,7
LD B,10
ADD A,B
Program in Machine Language
Mnemonics
Machine code
0011 1100
0000 0111
0000 0110
0000 1010
1000 0000
An assembler (translator) is needed:
to translate an assembly language program in to object code.
Program
In Assembly
Language
(Source Code)
Assembler
Object
code
In Machine
Language
Assembler
Assembly language (2nd Generation language)
Advantages:
Writing program in assembly language is more convenient than writing program in Machine
language.
Disadvantages:
Assembly Language is Machine dependent (Not portable).
Programmer should know the logical structure of the computer.
The programming is difficult and time consuming.
Assembly
Language
Machine
Language
Low level
Language
Machine and Assembly languages are referred to as low-level languages since the
coding for a problem is dependent on the internal architecture of the processor.
High level language
• High level language have instructions that are similar to human language.
• High level language have a set of grammar that makes it easy for a programmer
to write programs and identify errors in them.
Sum of two numbers (In BASIC language)
Program statement:
LET X=7
LET Y=10
LET SUM=X+Y
PRINT SUM
END
A compiler (translator) is needed:
To translate a program in high level language to object code in machine
Language
Source
Program in
High
level
Compiler
Object
code
In Machine
Language
Compiler
Compiler and interpreter have different approaches to translate.
Compiler
• Compiler scans the entire program and
translates the whole of it into machine code
at once.
• A compiler takes a lot of time to analyze the
source code. However, the overall time taken
to execute the process is much faster.
• Compliers are used by programming
languages like C and C++ for example.
Interpreter
• Interpreter translates just one statement of
the program at a time into machine code.
• An interpreter takes very less time to analyze
the source code. However, the overall time to
execute the process is much slower.
• Interpreters are used by programming
languages like Ruby and Python.
High level language (3GL)
Advantages:
• Readability
• Portability
• Easy debugging
• Used in the development of software.
Examples: C, C++, Java, LATEX, MATLAB, COBOL, FORTRAN
Classification of Programming language
i. Procedural Oriented programming language
• It divides a program into small procedures called routines or functions.
• it helps programmers to easily track the program flow
• code can be reused in different parts of the program.
• Follow Top-down approach
Example: C, FORTRAN, Basic, Pascal, etc.
ii. Object-Oriented Programming language
• Object-Oriented Programming (OOP) language is based upon the objects.
• In this programming language, programs are divided into small parts called
objects.
• It is used to implement real-world entities like inheritance, polymorphism, abstraction,
etc in the program to makes the program reusable, efficient, and easy-to-use.
• OOP is faster and easier to execute, maintain, modify, as well as debug.
• Bottom-up approach
• Example: C++, Java, Python, C#, etc.
iii. Natural language
• Natural language is a part of human languages such as English, Russian, German,
and Japanese.
• The main advantage of natural language is that it helps users to ask questions in any
subject and directly respond with in seconds.
• It is used by machines to understand, manipulate, and interpret human's language.
• It is used by developers to perform tasks such as translation, automatic
summarization, Named Entity Recognition (NER), relationship extraction, and
topic segmentation.
C language
The C Language is developed by Dennis Ritchie for creating system applications that directly interact with
the hardware devices such as drivers, kernels, etc.
C programming is considered as the base for other programming languages, that is why it is known as
mother language.
It can be defined by the following ways:
1. Mother language
2. System programming language
3. Procedure-oriented programming language
4. Structured programming language
5. Mid-level programming language
Creating and Running Programs Computer hardware understands
a program only if it is coded in its
machine language.
It is the job of the programmer to
write and test the program.
There are four steps in this process:
(1)writing and editing the program,
(2) compiling the program,
(3) linking the program with the
required library modules, and
(4) executing the program.
Compiling and executing High level Language programs
A linker is special program that combines several object files, and libraries to
form a single executable program.
Loaders are a part of operating system that brings an executable file residing
on disk in to memory starts it running
• Suggested Reading:
1. M.T.Somashekar“ProblemSolvingwithC”,2nd Edition,PrenticeHallIndiaLearningPrivateLimited2018
2. AKSharma“ComputerFundamentalsandProgramming”, 2nd Edition,UniversityPress, 2018
3. PradeepDeyandManasGhosh, “ProgramminginC”,OxfordPress,2ndEdition, 2017
• References:
1. ByronGottfried, Schaum’s”Outline ofProgramming withC”,McGraw- Hill.
2. Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language, Prentice Hall of India.
3. E. Balaguruswamy, Programming inANSI C, Tata McGraw-Hill.
4. ReemaTharaja “Introduction to C Programming”, Second Edition, OXFORD Press, 2015.
5. https://www.tutorialspoint.com/cprogramming/index.htm.
6. https://onlinecourses.nptel.ac.in/noc18-cs10/preview.

Weitere ähnliche Inhalte

Was ist angesagt?

Machine language
Machine languageMachine language
Machine languageRipal Dhruv
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine CodeProject Student
 
Computer programming programming_langugages
Computer programming programming_langugagesComputer programming programming_langugages
Computer programming programming_langugageseShikshak
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Md Hossen
 
Computer programming language concept
Computer programming language conceptComputer programming language concept
Computer programming language conceptAfiq Sajuri
 
High level languages representation
High level languages representationHigh level languages representation
High level languages representationgaurav jain
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)Suneel Dogra
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clSaumya Sahu
 
computer languages
computer languagescomputer languages
computer languagesRajendran
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language adnan usmani
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpretersRAJU KATHI
 
Computer languages
Computer languagesComputer languages
Computer languagesAqdasNoor
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages BakhatAli3
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Md. Imran Hossain Showrov
 

Was ist angesagt? (20)

Machine language
Machine languageMachine language
Machine language
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Computer Programming - Lecture 1
Computer Programming - Lecture 1Computer Programming - Lecture 1
Computer Programming - Lecture 1
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Lecture1
Lecture1Lecture1
Lecture1
 
Computer programming programming_langugages
Computer programming programming_langugagesComputer programming programming_langugages
Computer programming programming_langugages
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
 
Computer programming language concept
Computer programming language conceptComputer programming language concept
Computer programming language concept
 
High level languages representation
High level languages representationHigh level languages representation
High level languages representation
 
Computer Languages
Computer Languages Computer Languages
Computer Languages
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 cl
 
computer languages
computer languagescomputer languages
computer languages
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpreters
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Computer languages
Computer languagesComputer languages
Computer languages
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 

Ähnlich wie Programming languages

Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming VanessaBuensalida
 
1.Overview of Programming.pptx
1.Overview of Programming.pptx1.Overview of Programming.pptx
1.Overview of Programming.pptxVishwas459764
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Conceptsimtiazalijoono
 
week 2 - INTRO TO PROGRAMMING.pptx
week 2 - INTRO TO PROGRAMMING.pptxweek 2 - INTRO TO PROGRAMMING.pptx
week 2 - INTRO TO PROGRAMMING.pptxnuruddinnnaim
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computerzaheeriqbal41
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptxPmarkNorcio
 
Programming language
Programming languageProgramming language
Programming languageShuja Qais
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSsonalikharade3
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdfRakibRahman19
 

Ähnlich wie Programming languages (20)

sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
Language processors
Language processorsLanguage processors
Language processors
 
1.Overview of Programming.pptx
1.Overview of Programming.pptx1.Overview of Programming.pptx
1.Overview of Programming.pptx
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Concepts
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
week 2 - INTRO TO PROGRAMMING.pptx
week 2 - INTRO TO PROGRAMMING.pptxweek 2 - INTRO TO PROGRAMMING.pptx
week 2 - INTRO TO PROGRAMMING.pptx
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Programming language
Programming languageProgramming language
Programming language
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
 
Computer language
Computer languageComputer language
Computer language
 

Mehr von sushma chinta

programming for programs solving using C language
programming for  programs solving using C languageprogramming for  programs solving using C language
programming for programs solving using C languagesushma chinta
 
Shear stresses in beams p
Shear stresses in beams pShear stresses in beams p
Shear stresses in beams psushma chinta
 
Overhanged Beam and Cantilever beam problems
Overhanged Beam and Cantilever beam problemsOverhanged Beam and Cantilever beam problems
Overhanged Beam and Cantilever beam problemssushma chinta
 
Problems on simply supported beams (udl , uvl and couple)
Problems on simply supported beams (udl , uvl and couple)Problems on simply supported beams (udl , uvl and couple)
Problems on simply supported beams (udl , uvl and couple)sushma chinta
 
Problems on simply supported beams
Problems on simply supported beamsProblems on simply supported beams
Problems on simply supported beamssushma chinta
 
Shear force and bending moment diagram for simply supported beam _1P
Shear force and bending moment diagram for simply supported beam _1PShear force and bending moment diagram for simply supported beam _1P
Shear force and bending moment diagram for simply supported beam _1Psushma chinta
 
Relation between load shear force and bending moment of beams
Relation between load shear force and bending moment of  beamsRelation between load shear force and bending moment of  beams
Relation between load shear force and bending moment of beamssushma chinta
 
Simple torsion equation
Simple torsion equationSimple torsion equation
Simple torsion equationsushma chinta
 
Problems on triaxial loading and stresses on inclined planes for uniaxial and...
Problems on triaxial loading and stresses on inclined planes for uniaxial and...Problems on triaxial loading and stresses on inclined planes for uniaxial and...
Problems on triaxial loading and stresses on inclined planes for uniaxial and...sushma chinta
 
Bars with variable cross sections subjected to axial loads 2
Bars with variable cross sections subjected to axial loads 2Bars with variable cross sections subjected to axial loads 2
Bars with variable cross sections subjected to axial loads 2sushma chinta
 
Bars with variable cross sections subjected to axial loads
Bars with variable cross sections subjected to axial loadsBars with variable cross sections subjected to axial loads
Bars with variable cross sections subjected to axial loadssushma chinta
 
Bars subjected to multiple loads
Bars subjected to multiple loadsBars subjected to multiple loads
Bars subjected to multiple loadssushma chinta
 
20 08 2020stress_straincurve_p
20 08 2020stress_straincurve_p20 08 2020stress_straincurve_p
20 08 2020stress_straincurve_psushma chinta
 
Stresses and strains p
Stresses and strains pStresses and strains p
Stresses and strains psushma chinta
 
Development of surfaces
Development of surfacesDevelopment of surfaces
Development of surfacessushma chinta
 

Mehr von sushma chinta (20)

programming for programs solving using C language
programming for  programs solving using C languageprogramming for  programs solving using C language
programming for programs solving using C language
 
Thick cylinders
Thick cylinders Thick cylinders
Thick cylinders
 
Shear stresses in beams p
Shear stresses in beams pShear stresses in beams p
Shear stresses in beams p
 
Problems on Torsion
Problems on TorsionProblems on Torsion
Problems on Torsion
 
Overhanged Beam and Cantilever beam problems
Overhanged Beam and Cantilever beam problemsOverhanged Beam and Cantilever beam problems
Overhanged Beam and Cantilever beam problems
 
Problems on simply supported beams (udl , uvl and couple)
Problems on simply supported beams (udl , uvl and couple)Problems on simply supported beams (udl , uvl and couple)
Problems on simply supported beams (udl , uvl and couple)
 
Problems on simply supported beams
Problems on simply supported beamsProblems on simply supported beams
Problems on simply supported beams
 
Shear force and bending moment diagram for simply supported beam _1P
Shear force and bending moment diagram for simply supported beam _1PShear force and bending moment diagram for simply supported beam _1P
Shear force and bending moment diagram for simply supported beam _1P
 
Relation between load shear force and bending moment of beams
Relation between load shear force and bending moment of  beamsRelation between load shear force and bending moment of  beams
Relation between load shear force and bending moment of beams
 
Beams Introduction
Beams IntroductionBeams Introduction
Beams Introduction
 
Simple torsion equation
Simple torsion equationSimple torsion equation
Simple torsion equation
 
Problems on triaxial loading and stresses on inclined planes for uniaxial and...
Problems on triaxial loading and stresses on inclined planes for uniaxial and...Problems on triaxial loading and stresses on inclined planes for uniaxial and...
Problems on triaxial loading and stresses on inclined planes for uniaxial and...
 
Bars with variable cross sections subjected to axial loads 2
Bars with variable cross sections subjected to axial loads 2Bars with variable cross sections subjected to axial loads 2
Bars with variable cross sections subjected to axial loads 2
 
Bars with variable cross sections subjected to axial loads
Bars with variable cross sections subjected to axial loadsBars with variable cross sections subjected to axial loads
Bars with variable cross sections subjected to axial loads
 
Bars subjected to multiple loads
Bars subjected to multiple loadsBars subjected to multiple loads
Bars subjected to multiple loads
 
20 08 2020stress_straincurve_p
20 08 2020stress_straincurve_p20 08 2020stress_straincurve_p
20 08 2020stress_straincurve_p
 
Stresses and strains p
Stresses and strains pStresses and strains p
Stresses and strains p
 
Mom introduction p
Mom introduction pMom introduction p
Mom introduction p
 
Mechanical Members
Mechanical MembersMechanical Members
Mechanical Members
 
Development of surfaces
Development of surfacesDevelopment of surfaces
Development of surfaces
 

Kürzlich hochgeladen

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 

Kürzlich hochgeladen (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 

Programming languages

  • 1. By Mrs. Venkata Sushma Chinta Assistant Professor Mechanical Engineering Department CBIT.
  • 2. Difference between a calculator and computer
  • 3. Difference between a calculator and computer
  • 4. ************************************************************************************ Computer Calculator ************************************************************************************ 1. Computer is an electronic machine 1. Calculator is device used to which can accept input, Process data and do basic Mathematics gives desires result as Output operations. 2. Computer has a temporary and 2. Calculator has a Temporary Permanent memory . Memory. 3.Computer can be used to 3. Calculator cannot be used to send messages, email, text ,Video for communication Chatting. purposes. 4. Computer Can support Graphics. 4. It cannot support Graphics. 5.Computer Can be used with Gadgets 5. Calculator cannot support like Pen drive, Speakers, Printers,Projector. gadgets. 6.Computer screen can show Images 6.Calculator shows only Video and Number. Numbers.
  • 5. Program: A program is a set of logically related instruction that are arranged in a sequence that directs the computer in solving a problem. Programming: The process of writing a program is called programming. Programming Language To communicate with computers, programmers need a language is called Programming language.
  • 6.
  • 7.
  • 8. Machine language (1st Generation language) Advantages: As CPU directly understand machine instructions it takes less execution time. Disadvantages: It is not user-friendly language. The binary code is very difficult to learn and use. Difficult to understand, modify and debug errors. Difficult to remember machine instructions. Machine dependent Machine language is a collection of binary digits or bits that the computers reads and interprets.
  • 9. Assembly Language In Assembly language symbols such as letters , digits or special characters are used as a part of instructional code. Such a representation is called Mnemonics codes. It is also called second generation language.
  • 10. Sum of two numbers Program in Assembly Language A 7 B 10 A 17 By using mnemonics like LD,ADD the readability of the program increased significantly LD A,7 LD B,10 ADD A,B Program in Machine Language Mnemonics Machine code 0011 1100 0000 0111 0000 0110 0000 1010 1000 0000
  • 11. An assembler (translator) is needed: to translate an assembly language program in to object code. Program In Assembly Language (Source Code) Assembler Object code In Machine Language Assembler
  • 12. Assembly language (2nd Generation language) Advantages: Writing program in assembly language is more convenient than writing program in Machine language. Disadvantages: Assembly Language is Machine dependent (Not portable). Programmer should know the logical structure of the computer. The programming is difficult and time consuming.
  • 13. Assembly Language Machine Language Low level Language Machine and Assembly languages are referred to as low-level languages since the coding for a problem is dependent on the internal architecture of the processor.
  • 14. High level language • High level language have instructions that are similar to human language. • High level language have a set of grammar that makes it easy for a programmer to write programs and identify errors in them.
  • 15. Sum of two numbers (In BASIC language) Program statement: LET X=7 LET Y=10 LET SUM=X+Y PRINT SUM END
  • 16. A compiler (translator) is needed: To translate a program in high level language to object code in machine Language Source Program in High level Compiler Object code In Machine Language Compiler
  • 17. Compiler and interpreter have different approaches to translate. Compiler • Compiler scans the entire program and translates the whole of it into machine code at once. • A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster. • Compliers are used by programming languages like C and C++ for example. Interpreter • Interpreter translates just one statement of the program at a time into machine code. • An interpreter takes very less time to analyze the source code. However, the overall time to execute the process is much slower. • Interpreters are used by programming languages like Ruby and Python.
  • 18. High level language (3GL) Advantages: • Readability • Portability • Easy debugging • Used in the development of software. Examples: C, C++, Java, LATEX, MATLAB, COBOL, FORTRAN
  • 20. i. Procedural Oriented programming language • It divides a program into small procedures called routines or functions. • it helps programmers to easily track the program flow • code can be reused in different parts of the program. • Follow Top-down approach Example: C, FORTRAN, Basic, Pascal, etc.
  • 21. ii. Object-Oriented Programming language • Object-Oriented Programming (OOP) language is based upon the objects. • In this programming language, programs are divided into small parts called objects. • It is used to implement real-world entities like inheritance, polymorphism, abstraction, etc in the program to makes the program reusable, efficient, and easy-to-use. • OOP is faster and easier to execute, maintain, modify, as well as debug. • Bottom-up approach • Example: C++, Java, Python, C#, etc.
  • 22. iii. Natural language • Natural language is a part of human languages such as English, Russian, German, and Japanese. • The main advantage of natural language is that it helps users to ask questions in any subject and directly respond with in seconds. • It is used by machines to understand, manipulate, and interpret human's language. • It is used by developers to perform tasks such as translation, automatic summarization, Named Entity Recognition (NER), relationship extraction, and topic segmentation.
  • 23. C language The C Language is developed by Dennis Ritchie for creating system applications that directly interact with the hardware devices such as drivers, kernels, etc. C programming is considered as the base for other programming languages, that is why it is known as mother language. It can be defined by the following ways: 1. Mother language 2. System programming language 3. Procedure-oriented programming language 4. Structured programming language 5. Mid-level programming language
  • 24. Creating and Running Programs Computer hardware understands a program only if it is coded in its machine language. It is the job of the programmer to write and test the program. There are four steps in this process: (1)writing and editing the program, (2) compiling the program, (3) linking the program with the required library modules, and (4) executing the program.
  • 25. Compiling and executing High level Language programs A linker is special program that combines several object files, and libraries to form a single executable program. Loaders are a part of operating system that brings an executable file residing on disk in to memory starts it running
  • 26. • Suggested Reading: 1. M.T.Somashekar“ProblemSolvingwithC”,2nd Edition,PrenticeHallIndiaLearningPrivateLimited2018 2. AKSharma“ComputerFundamentalsandProgramming”, 2nd Edition,UniversityPress, 2018 3. PradeepDeyandManasGhosh, “ProgramminginC”,OxfordPress,2ndEdition, 2017 • References: 1. ByronGottfried, Schaum’s”Outline ofProgramming withC”,McGraw- Hill. 2. Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language, Prentice Hall of India. 3. E. Balaguruswamy, Programming inANSI C, Tata McGraw-Hill. 4. ReemaTharaja “Introduction to C Programming”, Second Edition, OXFORD Press, 2015. 5. https://www.tutorialspoint.com/cprogramming/index.htm. 6. https://onlinecourses.nptel.ac.in/noc18-cs10/preview.

Hinweis der Redaktion

  1. Language is a mode of communication that is used to share ideas, opinions with each other. Long ago people used to remember the  computer code in binary format. That time there is no concept of programming languages. They have to write the program in machine understandable language. I.e., 0 and 1.You can imagine how hard it is to remember the code and write  that code.
  2. 1GL
  3. The time and cost of creating machine and assembly language programs were quite high. This motivated the development of high level languages.
  4. A compiler always generates an intermediary object code. It will need further linking. Hence more memory is needed.. An interpreter does not generate an intermediary code. Hence, an interpreter is highly efficient in terms of its memory. A compiler generates the error message only after it scans the complete program and hence debugging is relatively harder while working with a compiler. An interpreter Keeps translating the program continuously till the first error is confronted. If any error is spotted, it stops working and hence debugging becomes easy.
  5. Email filters, Smart assistants, Search results, Predictive text, Language translation, Digital phone calls, Data analysis, Text analytics