SlideShare a Scribd company logo
1 of 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.

More Related Content

What's hot

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
 

What's hot (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
 

Similar to 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
 

Similar to 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
 

More from 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
 

More from 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
 

Recently uploaded

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 

Recently uploaded (20)

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 

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.

Editor's Notes

  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