SlideShare une entreprise Scribd logo
1  sur  38
Instructor : HUSSAIN IBRAHIM
Govt: College of Technology Hyderabad.
Email: amur.hb@gmail.com
INTRODUCTION TO COMUTER PROGRAMMING
(COMP-112)
 What is a programming language?
Why are there so many programming languages?
What are the types of programming languages?
Does the world need new languages?



A programming language is a set of rules that
provides a way of telling a computer what
operations to perform.
A programming language is a set of rules for
communicating an algorithm
It provides a linguistic framework for
describing computations



A programming language is a notational system for
describing computation in a machine-readable and
human-readable form.
A programming language is a tool for developing
executable models for a class of problem domains.
PS — Introduction
A programming language is a tool for developing
executable models for a class of problem domains.
A programming language is a notational system for
describing computation in a machine-readable and
human-readable form.
English is a natural language. It has words,
symbols and grammatical rules.
A programming language also has words,
symbols and rules of grammar.
The grammatical rules are called syntax.
Each programming language has a different
of syntax rules.


 set
Why does some people speak French?
Programming languages have evolved over time as
better ways have been developed to design them.
◦ First programming languages were developed in the
1950s
◦ Since then thousands of languages have been developed
Different programming languages are designed for
different types of programs.



class Triangle {
...
float surface()
return b*h/2;
}
LOAD r1,b
LOAD r2,h
MUL r1,r2
DIV r1,#2
RET
0001001001000101
0010010011101100
10101101001...
High-level program
Low-level program
Executable Machine code 0001001001000101
0010010011101100
10101101001...
LOAD r1,b
LOAD r2,h
MUL r1,r2
DIV r1,#2
RET
class Triangle {
...
float surface()
return b*h/2;
}
First Generation Languages
Second Generation Languages
Third Generation Languages
Fourth Generation Languages
Fifth Generation Languages





Machine language
◦
◦
◦
Operation code – such as addition or subtraction.
Operands – that identify the data to be processed.
Machine language is machine dependent as it is the
only language the computer can understand.
Very efficient code but very difficult to write.◦
Assembly languages
◦ Symbolic operation codes replaced binary operation
codes.
Assembly language programs needed to be “assembled”◦
for execution by the computer. Each assembly language
instruction is translated into one machine language
instruction.
Very efficient code and easier to write.◦
Closer to English but included simple
mathematical notation.

◦ Programs written in source code which must be
translated into machine language programs called object
code.
The translation of source code to object code is
accomplished by a machine language system program
called a compiler.
◦
Alternative to compilation is interpretation which is
accomplished by a system program called
interpreter.
an
Common third generation languages
◦
◦
◦
◦
FORTRAN
COBOL
C and C++
Visual Basic
A high level language (4GL) that requires fewer
instructions to accomplish
generation language.
Used with databases
a task than a third

◦
◦
◦
◦
Query languages
Report generators
Forms designers
Application generators
Declarative languages
Functional(?): Lisp, Scheme,
◦ Also called applicative
◦ Everything is a function

SML
Logic: Prolog
◦ Based on mathematical logic
◦ Rule- or Constraint-based
Though no clear definition at present, natural
language programs generally can be interpreted
and executed by the computer with no other
action by the user than stating their question.
Limited capabilities at present.


Imperative Programming (C)
Object-Oriented Programming (C++)
Logic/Declarative Programming (Prolog)
Functional/Applicative Programming (Lisp)




Two broad groups
◦ Traditional programming languages


Sequences of instructions
First, second and some third generation languages
◦ Object-oriented languages


Objects are created rather than sequences of instructions
Some third generation, and fourth and fifth generation
languages
FORTRAN
◦
◦
◦
FORmula TRANslation.
Developed at IBM in the mid-1950s.
Designed for scientific and mathematical applications by
scientists and engineers.
COBOL
◦
◦
◦
◦
COmmon Business Oriented Language.
Developed in 1959.
Designed to be common to many different computers.
Typically used for business applications.
BASIC
◦
◦
◦
Beginner’s
Developed
Developed
All-purpose Symbolic Instruction Code.
at Dartmouth College in mid 1960s.
as a simple language for students to write
programs with which they could interact through
terminals.
C
◦
◦

Developed by Bell Laboratories in the early 1970s.
Provides control and efficiency of assembly language
while having third generation language features.
Often used for system programs.
UNIX is written in C.
◦
◦
Simula
◦ First object-oriented language
◦ Developed by Ole Johan Dahl in the 1960s.
Smalltalk


◦
◦
◦
First purely object-oriented language.
Developed by Xerox in mid-1970s.
Still in use on some computers.
C++
◦
◦
It is C language with additional features.
Widely used for developing system and application
software.
Graphical user interfaces can be developed easily with
visual programming tools.
◦
JAVA
◦ An object-oriented language similar to C++ that
eliminates lots of C++’s problematic features
Allows a web page developer to create programs for
applications, called applets that can be used through a
browser.
Objective of JAVA developers is that it be machine,
platform and operating system independent.
◦
◦
Scripting Languages
◦
◦
◦
JavaScript and VBScript
Php and ASP
Perl and Python
Command Languages
◦ sh, csh, bash
Text processing Languages
◦ LaTex, PostScript

HTML
◦
◦
◦
HyperText Markup Language.
Used on the Internet and the World Wide Web (WWW).
Web page developer puts brief codes called tags in the
page to indicate how the page should be formatted.
XML
◦ Extensible Markup Language.
◦ A language for defining other languages.

Programming languages are languages
When it comes to mechanics of the task,
learning to speak and use a programming
language is in many ways like learning to speak
a human language
In both kind of languages you have to learn new
vocabulary, syntax and semantics (new words,
sentence structure and meaning)
And both kind of language require considerable
practice to make perfect.




Computer languages
vagueness
In English sentences
lack ambiguity and
such as I saw the man with a
telescope (Who had the telescope?) or Take a
pinch of salt (How much is a pinch?)
In a programming language a sentence either
means one thing or it means nothing

Formerly: Run-time performance
◦ (Computers were more expensive than programmers)
Now: Life cycle (human) cost is more important
◦
◦
◦
◦
Ease of designing,
Debugging
Maintenance
Reusability
coding
FADS
Writability: The quality of a language that enables a
programmer to use it to express a computation clearly,
correctly, concisely, and quickly.
Readability: The quality of a language that enables a
programmer to understand and comprehend the nature of a
computation easily and accurately.
Reliability: The quality of a language that assures a program
will not behave in unexpected or disastrous ways during
execution.
Maintainability: The quality of a language that eases errors
can be found and corrected and new features added.





ProgrammingCycleSteps
1. TrytounderstandandanalyzetheProblem.
2. Writethealgorithmordrawtheflowchartfortheproblem
3. CreateTheSourcefileusingeditorandthecodeaccordingtothe
flowchartoralgorithm.
4. CompileTheprogramusingsystemsoftwareandtheobjectfileis
created.
5. Step4isrepeatdtillthesourceprogramcontainsnocompilation
errorsthanstep6.
6. Linkthenecessarylibraryfilesneededforthecompilationerrors.
7. Loadthefileforexecution.
8. Executetheprogramusingtherunoption.
Flowchart
 A flowchart is a type of diagram that
represents a workflow or process. A flowchart
can also be defined as a diagrammatic
representation of an algorithm, a step-by-step
approach to solving a task.
 The flowchart shows the steps as boxes of
various kinds, and their order by connecting
the boxes with arrows.
 Flowcharts are used in analyzing, designing,
documenting or managing a process or
program in various fields.
Common symbols
Rectangle Shape - Represents a process
Oval or Pill Shape - Represents the start
or end
Diamond Shape - Represents a decision
Parallelogram - Represents input/output
Example
Terms
HARDWARE – Computer hardware includes
the physical, tangible parts or components of
a computer, such as the cabinet, central processing
unit, monitor, keyboard, computer data
storage, graphics card, sound
card, speakers and motherboard
software, is a collection of data or computer instructions
that tell the computer how to work.
Peopleware is a term used to refer to one of the three core
aspects of computer technology, the other two being hardware
and software .
Peopleware can refer to anything that has to do with the role of
people in the development or use of computer software and
hardware systems, including such issues as developer
productivity, teamwork, group dynamics, the psychology of
programming, project management, organizational factors,
human interface design, and human-machine-interaction.
Peopleware
Introduction To Computer Programming

Contenu connexe

Tendances

Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programmingmshellman
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languagesjocleph
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)Maliha Jahan
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming LanguagesTarun Sharma
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming ConceptsJussi Pohjolainen
 
Grade 8: Introduction To Java
Grade 8: Introduction To JavaGrade 8: Introduction To Java
Grade 8: Introduction To Javanandanrocker
 
Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)guest251d9a
 
Programming languages
Programming languagesProgramming languages
Programming languagesAsmasum
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compilerIffat Anjum
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c languageIndia
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design BasicsAkhil Kaushik
 
Programming Languages An Intro
Programming Languages An IntroProgramming Languages An Intro
Programming Languages An IntroKimberly De Guzman
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languageskitturashmikittu
 
The analysis synthesis model of compilation
The analysis synthesis model of compilationThe analysis synthesis model of compilation
The analysis synthesis model of compilationHuawei Technologies
 

Tendances (20)

JAVA
JAVAJAVA
JAVA
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languages
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languages
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
 
Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++
 
Grade 8: Introduction To Java
Grade 8: Introduction To JavaGrade 8: Introduction To Java
Grade 8: Introduction To Java
 
Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compiler
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c language
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design Basics
 
Programming Languages An Intro
Programming Languages An IntroProgramming Languages An Intro
Programming Languages An Intro
 
C/C++ History in few slides
C/C++ History in few slides C/C++ History in few slides
C/C++ History in few slides
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languages
 
The analysis synthesis model of compilation
The analysis synthesis model of compilationThe analysis synthesis model of compilation
The analysis synthesis model of compilation
 

Similaire à Introduction To Computer Programming

English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacionVillalba Griselda
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming LanguagesManish Kharotia
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxChewe Lulembo
 
Programing paradigm & implementation
Programing paradigm & implementationPrograming paradigm & implementation
Programing paradigm & implementationBilal Maqbool ツ
 
maincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxmaincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxKaruthayya
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generationMunawar Bukhari
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptxPmarkNorcio
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1 ITNet
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programminghamza239523
 
Program & language generation
Program & language generationProgram & language generation
Program & language generationBuxoo Abdullah
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdfKINGZzofYouTube
 

Similaire à Introduction To Computer Programming (20)

English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming Languages
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Programing paradigm & implementation
Programing paradigm & implementationPrograming paradigm & implementation
Programing paradigm & implementation
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
maincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxmaincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptx
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generation
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programming
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
 
Notacd07
Notacd07Notacd07
Notacd07
 
Nota programming
Nota programmingNota programming
Nota programming
 
Notacd071
Notacd071Notacd071
Notacd071
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdf
 

Dernier

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Dernier (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Introduction To Computer Programming

  • 1. Instructor : HUSSAIN IBRAHIM Govt: College of Technology Hyderabad. Email: amur.hb@gmail.com INTRODUCTION TO COMUTER PROGRAMMING (COMP-112)
  • 2.  What is a programming language? Why are there so many programming languages? What are the types of programming languages? Does the world need new languages?   
  • 3. A programming language is a set of rules that provides a way of telling a computer what operations to perform. A programming language is a set of rules for communicating an algorithm It provides a linguistic framework for describing computations   
  • 4. A programming language is a notational system for describing computation in a machine-readable and human-readable form. A programming language is a tool for developing executable models for a class of problem domains. PS — Introduction A programming language is a tool for developing executable models for a class of problem domains. A programming language is a notational system for describing computation in a machine-readable and human-readable form.
  • 5. English is a natural language. It has words, symbols and grammatical rules. A programming language also has words, symbols and rules of grammar. The grammatical rules are called syntax. Each programming language has a different of syntax rules.    set
  • 6. Why does some people speak French? Programming languages have evolved over time as better ways have been developed to design them. ◦ First programming languages were developed in the 1950s ◦ Since then thousands of languages have been developed Different programming languages are designed for different types of programs.   
  • 7. class Triangle { ... float surface() return b*h/2; } LOAD r1,b LOAD r2,h MUL r1,r2 DIV r1,#2 RET 0001001001000101 0010010011101100 10101101001... High-level program Low-level program Executable Machine code 0001001001000101 0010010011101100 10101101001... LOAD r1,b LOAD r2,h MUL r1,r2 DIV r1,#2 RET class Triangle { ... float surface() return b*h/2; }
  • 8. First Generation Languages Second Generation Languages Third Generation Languages Fourth Generation Languages Fifth Generation Languages     
  • 9. Machine language ◦ ◦ ◦ Operation code – such as addition or subtraction. Operands – that identify the data to be processed. Machine language is machine dependent as it is the only language the computer can understand. Very efficient code but very difficult to write.◦
  • 10. Assembly languages ◦ Symbolic operation codes replaced binary operation codes. Assembly language programs needed to be “assembled”◦ for execution by the computer. Each assembly language instruction is translated into one machine language instruction. Very efficient code and easier to write.◦
  • 11. Closer to English but included simple mathematical notation.  ◦ Programs written in source code which must be translated into machine language programs called object code. The translation of source code to object code is accomplished by a machine language system program called a compiler. ◦
  • 12. Alternative to compilation is interpretation which is accomplished by a system program called interpreter. an Common third generation languages ◦ ◦ ◦ ◦ FORTRAN COBOL C and C++ Visual Basic
  • 13. A high level language (4GL) that requires fewer instructions to accomplish generation language. Used with databases a task than a third  ◦ ◦ ◦ ◦ Query languages Report generators Forms designers Application generators
  • 14. Declarative languages Functional(?): Lisp, Scheme, ◦ Also called applicative ◦ Everything is a function  SML Logic: Prolog ◦ Based on mathematical logic ◦ Rule- or Constraint-based
  • 15. Though no clear definition at present, natural language programs generally can be interpreted and executed by the computer with no other action by the user than stating their question. Limited capabilities at present.  
  • 16. Imperative Programming (C) Object-Oriented Programming (C++) Logic/Declarative Programming (Prolog) Functional/Applicative Programming (Lisp)    
  • 17. Two broad groups ◦ Traditional programming languages   Sequences of instructions First, second and some third generation languages ◦ Object-oriented languages   Objects are created rather than sequences of instructions Some third generation, and fourth and fifth generation languages
  • 18. FORTRAN ◦ ◦ ◦ FORmula TRANslation. Developed at IBM in the mid-1950s. Designed for scientific and mathematical applications by scientists and engineers.
  • 19. COBOL ◦ ◦ ◦ ◦ COmmon Business Oriented Language. Developed in 1959. Designed to be common to many different computers. Typically used for business applications.
  • 20. BASIC ◦ ◦ ◦ Beginner’s Developed Developed All-purpose Symbolic Instruction Code. at Dartmouth College in mid 1960s. as a simple language for students to write programs with which they could interact through terminals.
  • 21. C ◦ ◦  Developed by Bell Laboratories in the early 1970s. Provides control and efficiency of assembly language while having third generation language features. Often used for system programs. UNIX is written in C. ◦ ◦
  • 22. Simula ◦ First object-oriented language ◦ Developed by Ole Johan Dahl in the 1960s. Smalltalk   ◦ ◦ ◦ First purely object-oriented language. Developed by Xerox in mid-1970s. Still in use on some computers.
  • 23. C++ ◦ ◦ It is C language with additional features. Widely used for developing system and application software. Graphical user interfaces can be developed easily with visual programming tools. ◦
  • 24. JAVA ◦ An object-oriented language similar to C++ that eliminates lots of C++’s problematic features Allows a web page developer to create programs for applications, called applets that can be used through a browser. Objective of JAVA developers is that it be machine, platform and operating system independent. ◦ ◦
  • 25. Scripting Languages ◦ ◦ ◦ JavaScript and VBScript Php and ASP Perl and Python Command Languages ◦ sh, csh, bash Text processing Languages ◦ LaTex, PostScript 
  • 26. HTML ◦ ◦ ◦ HyperText Markup Language. Used on the Internet and the World Wide Web (WWW). Web page developer puts brief codes called tags in the page to indicate how the page should be formatted.
  • 27. XML ◦ Extensible Markup Language. ◦ A language for defining other languages. 
  • 28. Programming languages are languages When it comes to mechanics of the task, learning to speak and use a programming language is in many ways like learning to speak a human language In both kind of languages you have to learn new vocabulary, syntax and semantics (new words, sentence structure and meaning) And both kind of language require considerable practice to make perfect.    
  • 29. Computer languages vagueness In English sentences lack ambiguity and such as I saw the man with a telescope (Who had the telescope?) or Take a pinch of salt (How much is a pinch?) In a programming language a sentence either means one thing or it means nothing 
  • 30. Formerly: Run-time performance ◦ (Computers were more expensive than programmers) Now: Life cycle (human) cost is more important ◦ ◦ ◦ ◦ Ease of designing, Debugging Maintenance Reusability coding FADS
  • 31. Writability: The quality of a language that enables a programmer to use it to express a computation clearly, correctly, concisely, and quickly. Readability: The quality of a language that enables a programmer to understand and comprehend the nature of a computation easily and accurately. Reliability: The quality of a language that assures a program will not behave in unexpected or disastrous ways during execution. Maintainability: The quality of a language that eases errors can be found and corrected and new features added.     
  • 32. ProgrammingCycleSteps 1. TrytounderstandandanalyzetheProblem. 2. Writethealgorithmordrawtheflowchartfortheproblem 3. CreateTheSourcefileusingeditorandthecodeaccordingtothe flowchartoralgorithm. 4. CompileTheprogramusingsystemsoftwareandtheobjectfileis created. 5. Step4isrepeatdtillthesourceprogramcontainsnocompilation errorsthanstep6. 6. Linkthenecessarylibraryfilesneededforthecompilationerrors. 7. Loadthefileforexecution. 8. Executetheprogramusingtherunoption.
  • 33. Flowchart  A flowchart is a type of diagram that represents a workflow or process. A flowchart can also be defined as a diagrammatic representation of an algorithm, a step-by-step approach to solving a task.  The flowchart shows the steps as boxes of various kinds, and their order by connecting the boxes with arrows.  Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields.
  • 34. Common symbols Rectangle Shape - Represents a process Oval or Pill Shape - Represents the start or end Diamond Shape - Represents a decision Parallelogram - Represents input/output
  • 36. Terms HARDWARE – Computer hardware includes the physical, tangible parts or components of a computer, such as the cabinet, central processing unit, monitor, keyboard, computer data storage, graphics card, sound card, speakers and motherboard software, is a collection of data or computer instructions that tell the computer how to work.
  • 37. Peopleware is a term used to refer to one of the three core aspects of computer technology, the other two being hardware and software . Peopleware can refer to anything that has to do with the role of people in the development or use of computer software and hardware systems, including such issues as developer productivity, teamwork, group dynamics, the psychology of programming, project management, organizational factors, human interface design, and human-machine-interaction. Peopleware