SlideShare a Scribd company logo
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education
McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education
Chapter 13A
Creating Computer
Programs
13A-3
What Is a Computer Program?
• Computer programs
– Also called software
– Computer programs are the list of
instructions. Instructions are called code
– CPU execute the instructions
– Three types of computer programs
• Operating system
• Utility
• Application
13A-4
Software Is Stored In Many Files
• Executable files
– Contain the instructions for the CPU
– Have extensions of .exe
• Many other extensions are commonly found
.dll extension
.ini extension
.hlp extension
13A-5
Hardware/Software Interaction
• Program execution
– Software executes at the CPU level
– Code to play a sound
• Code generates an interrupt
• CPU tells the sound card to play
• Sound card plays the file
– Programmer creates the code
13A-6
Hardware/Software Interaction
• Code
– Statements written in a programming
language
– Writing code can be tedious
• Code must be perfect
• Order of steps must be exact
– Writing code is quite exciting
• Problems are solved
• New ideas are formed
13A-7
Writing Code
13A-8
Hardware/Software Interaction
• Machine code
– Recall that computers think in binary
– Code is translated into machine code
• CPU executes the machine code
– CPUs have a unique machine code
13A-9
Hardware/Software Interaction
• Compilers and interpreters
– Converts source code into binary
• Allows code to execute
– Checks source code for correctness
13A-10
Hardware/Software Interaction
• Compiler
– Creates an executable file
• Contents are called object code
– Executable can run on its own
– Each language has its own compiler
– C++ and Java are compiled languages
13A-11
Hardware/Software Interaction
• Interpreter
– Runs program one line at a time
– More flexible than compilers
– Slower than compilers
– Always needed to execute program
– Visual Basic and Perl are interpreted
13A-12
Planning a Computer Program
• Plans
– The steps to solve a problem
– Describe the expected results
– Programming without a plan is difficult
13A-13
Planning Tools
• Pseudo code
– Natural language statements that
resemble code
– Describes what must be done
– Can be written by non programmers
– Programmers develop unique versions
13A-14
How Programs Solve Problems
• Program control flow
– Order program statements are executed
– Typically executed in order
– Constructs can change the flow
• Decision statements
• Loops
13A-15
How Programs Solve Problems
• Algorithm
– Set of steps
– Always leads to a solution
– Steps are always the same
– Flowcharts can describe algorithms
• Structured tool for drawing algorithms
– Algorithms appear in all programs
13A-16
Hardware/Software Interaction
• Programming languages
– Simplifies the writing of code
• English is used to describe the binary
– Original code is called source code
– Several hundred languages exist
PROGRAMING LANGUAGES
13A-17
13A-18
Low Level Language
• A low-level language is a programming
language is very close to writing actual
machine instructions.
• Low-level languages are considered more
difficult to use, however, because they require
a deeper knowledge of the computer's inner
workings.
• Two good examples of low-level languages
are assembly and machine code.
13A-19
1. Machine language
• Programming language that can be directly
understood and obeyed by a machine
(computer) without conversion.
• It is different for each type of CPU
• it is the native binary language (comprised
of only characters: 0 and 1) of the computer
and is difficult to be read and understood by
humans
• Hardware dependent: Could be performed
by only one type of computer with a
particular CPU.
13A-20
2. Assembly Language
• An assembly language is a low-level
programming language for microprocessors
and other programmable devices.
• Assembly language implements a symbolic
representation of the machine code needed to
program a given CPU architecture.
• It is not just a single language, but rather a
group of languages.
• Examples: x86
13A-21
Higher level Language
• High-level language is any programming language
that enables development of a program in much
simpler programming context and is generally
independent of the computer's hardware
architecture.
• High-level language has a higher level of abstraction
from the computer, and focuses more on the
programming logic rather than the underlying
hardware components such as memory addressing
and register utilization.
• C/C++ and Java are popular examples of high-level
languages.
13A-22
Procedural Languages
• Procedural programming language is
a list or set of instructions telling a
computer what to do step by step and
how to perform from the first code to the
second code.
• Procedural programming languages
include C, Go, Fortran, Pascal, and
BASIC.
13A-23
Non-Procedural Languages
– A computer language that does not require
writing traditional programming logic.
– Also known as a "declarative language,"
users concentrate on defining the input
and output rather than the program steps
required in a procedural programming
language
– Many are associated with specific
application packages.
• Query Languages:
• Report Writers:
• Application Generators:13A-24
Object-oriented programming (OOP)
• It is a programming language model
organized around objects rather than
"actions" and data.
• Historically, a program has been
viewed as a logical procedure that takes
input data, processes it, and produces
output data.
• Examples: C++/JAVA, Smalltalk
13A-25

More Related Content

What's hot

Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
fazli khaliq
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
Sangheethaa Sukumaran
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions
ray143eddie
 
Evolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/SystemEvolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/System
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Concepts
imtiazalijoono
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
REHAN IJAZ
 
Programming languages and paradigms
Programming languages and paradigmsProgramming languages and paradigms
Programming languages and paradigms
John Paul Hallasgo
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
REHAN IJAZ
 
Programming Languages An Intro
Programming Languages An IntroProgramming Languages An Intro
Programming Languages An IntroKimberly De Guzman
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpretersRAJU KATHI
 
Introduction to programing languages part 1
Introduction to programing languages   part 1Introduction to programing languages   part 1
Introduction to programing languages part 1
university of education,Lahore
 
La 5 Pl Translator
La 5   Pl TranslatorLa 5   Pl Translator
La 5 Pl TranslatorCma Mohd
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
Neeru Mittal
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming ConceptsJussi Pohjolainen
 
Logical programming languages and functional programming languages
Logical programming languages and functional programming languagesLogical programming languages and functional programming languages
Logical programming languages and functional programming languages
nahianzarif
 
Introduction to compilers
Introduction to compilersIntroduction to compilers
Introduction to compilers
Bilal Maqbool ツ
 
Lecture 1 introduction to language processors
Lecture 1  introduction to language processorsLecture 1  introduction to language processors
Lecture 1 introduction to language processors
Rebaz Najeeb
 
Computer programming programming_langugages
Computer programming programming_langugagesComputer programming programming_langugages
Computer programming programming_langugages
eShikshak
 
Ch1 language design issue
Ch1 language design issueCh1 language design issue
Ch1 language design issue
Jigisha Pandya
 

What's hot (20)

Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions
 
Evolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/SystemEvolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/System
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Concepts
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
Programming languages and paradigms
Programming languages and paradigmsProgramming languages and paradigms
Programming languages and paradigms
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
 
Programming Languages An Intro
Programming Languages An IntroProgramming Languages An Intro
Programming Languages An Intro
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpreters
 
Introduction to programing languages part 1
Introduction to programing languages   part 1Introduction to programing languages   part 1
Introduction to programing languages part 1
 
La 5 Pl Translator
La 5   Pl TranslatorLa 5   Pl Translator
La 5 Pl Translator
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
 
Logical programming languages and functional programming languages
Logical programming languages and functional programming languagesLogical programming languages and functional programming languages
Logical programming languages and functional programming languages
 
Introduction to compilers
Introduction to compilersIntroduction to compilers
Introduction to compilers
 
Lecture 1 introduction to language processors
Lecture 1  introduction to language processorsLecture 1  introduction to language processors
Lecture 1 introduction to language processors
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Computer programming programming_langugages
Computer programming programming_langugagesComputer programming programming_langugages
Computer programming programming_langugages
 
Ch1 language design issue
Ch1 language design issueCh1 language design issue
Ch1 language design issue
 

Viewers also liked

Introduction of Functional Programming
Introduction of Functional ProgrammingIntroduction of Functional Programming
Introduction of Functional Programming
☁️ Mikhail Shilkov
 
Internet 2 (IT) Lecture Slide
Internet 2 (IT) Lecture SlideInternet 2 (IT) Lecture Slide
Internet 2 (IT) Lecture Slide
Muhammad Talha Zaroon
 
Programming languages ms harsha
Programming languages ms harshaProgramming languages ms harsha
Programming languages ms harsha
Harsha Batra
 
programing laugauge
programing laugaugeprograming laugauge
programing laugauge
skylink_developer
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
2nd Law of Thermodynamics + Doppler (Physics) Assig # 2
2nd Law of Thermodynamics + Doppler (Physics) Assig # 22nd Law of Thermodynamics + Doppler (Physics) Assig # 2
2nd Law of Thermodynamics + Doppler (Physics) Assig # 2
Muhammad Talha Zaroon
 
Database (IT) Lecture Slide
Database (IT) Lecture SlideDatabase (IT) Lecture Slide
Database (IT) Lecture Slide
Muhammad Talha Zaroon
 
Conversion (IT) Slide # 3
Conversion (IT) Slide # 3Conversion (IT) Slide # 3
Conversion (IT) Slide # 3
Muhammad Talha Zaroon
 
Internet 1 (IT) Lecture Slide
Internet 1 (IT) Lecture SlideInternet 1 (IT) Lecture Slide
Internet 1 (IT) Lecture Slide
Muhammad Talha Zaroon
 
Algoritma dan-pemrograman
Algoritma dan-pemrogramanAlgoritma dan-pemrograman
Algoritma dan-pemrogramanimmunandar
 
Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16
Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16
Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16
Steffany Sanchez
 
Go programing language
Go programing languageGo programing language
Go programing language
Ramakrishna kapa
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
kasenerd
 
Futuristic programing language
Futuristic programing languageFuturistic programing language
Futuristic programing languageMohamed Zaki
 
Data Backup (IT) Lecture Slide # 5
Data Backup (IT) Lecture Slide # 5Data Backup (IT) Lecture Slide # 5
Data Backup (IT) Lecture Slide # 5
Muhammad Talha Zaroon
 
Latihan Soal Jawab Coreldraw Dasar (Part1)
Latihan Soal Jawab Coreldraw Dasar (Part1)Latihan Soal Jawab Coreldraw Dasar (Part1)
Latihan Soal Jawab Coreldraw Dasar (Part1)
Machfud Huda
 
Kumpulan contoh-program-pascal
Kumpulan contoh-program-pascalKumpulan contoh-program-pascal
Kumpulan contoh-program-pascalrey25
 
Describe professional programing languages and talks
Describe professional programing languages and talks Describe professional programing languages and talks
Describe professional programing languages and talks Ed Bray
 
Intro to functional programming
Intro to functional programmingIntro to functional programming
Intro to functional programming
Assaf Gannon
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
Tarun Sharma
 

Viewers also liked (20)

Introduction of Functional Programming
Introduction of Functional ProgrammingIntroduction of Functional Programming
Introduction of Functional Programming
 
Internet 2 (IT) Lecture Slide
Internet 2 (IT) Lecture SlideInternet 2 (IT) Lecture Slide
Internet 2 (IT) Lecture Slide
 
Programming languages ms harsha
Programming languages ms harshaProgramming languages ms harsha
Programming languages ms harsha
 
programing laugauge
programing laugaugeprograming laugauge
programing laugauge
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
2nd Law of Thermodynamics + Doppler (Physics) Assig # 2
2nd Law of Thermodynamics + Doppler (Physics) Assig # 22nd Law of Thermodynamics + Doppler (Physics) Assig # 2
2nd Law of Thermodynamics + Doppler (Physics) Assig # 2
 
Database (IT) Lecture Slide
Database (IT) Lecture SlideDatabase (IT) Lecture Slide
Database (IT) Lecture Slide
 
Conversion (IT) Slide # 3
Conversion (IT) Slide # 3Conversion (IT) Slide # 3
Conversion (IT) Slide # 3
 
Internet 1 (IT) Lecture Slide
Internet 1 (IT) Lecture SlideInternet 1 (IT) Lecture Slide
Internet 1 (IT) Lecture Slide
 
Algoritma dan-pemrograman
Algoritma dan-pemrogramanAlgoritma dan-pemrograman
Algoritma dan-pemrograman
 
Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16
Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16
Glosario de-términos-especificos-utilizados-en-la-red-5-oct-16
 
Go programing language
Go programing languageGo programing language
Go programing language
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
 
Futuristic programing language
Futuristic programing languageFuturistic programing language
Futuristic programing language
 
Data Backup (IT) Lecture Slide # 5
Data Backup (IT) Lecture Slide # 5Data Backup (IT) Lecture Slide # 5
Data Backup (IT) Lecture Slide # 5
 
Latihan Soal Jawab Coreldraw Dasar (Part1)
Latihan Soal Jawab Coreldraw Dasar (Part1)Latihan Soal Jawab Coreldraw Dasar (Part1)
Latihan Soal Jawab Coreldraw Dasar (Part1)
 
Kumpulan contoh-program-pascal
Kumpulan contoh-program-pascalKumpulan contoh-program-pascal
Kumpulan contoh-program-pascal
 
Describe professional programing languages and talks
Describe professional programing languages and talks Describe professional programing languages and talks
Describe professional programing languages and talks
 
Intro to functional programming
Intro to functional programmingIntro to functional programming
Intro to functional programming
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
 

Similar to 13 A Programing Languages (IT) Lecture Slide

Introduction to Creating Computer Programs.ppt
Introduction to Creating Computer Programs.pptIntroduction to Creating Computer Programs.ppt
Introduction to Creating Computer Programs.ppt
Abbas Hyder , Assistant Professor
 
Week - 04, 05 Software Chapter 2 info sys.ppt
Week - 04, 05 Software Chapter 2 info sys.pptWeek - 04, 05 Software Chapter 2 info sys.ppt
Week - 04, 05 Software Chapter 2 info sys.ppt
TALHA RIAZ PERSOTA
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
Hossam Hassan
 
Programming languages
Programming languagesProgramming languages
Programming languages
Simon Mui
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
SegezzBrian
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
VanessaBuensalida
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
BakhatAli3
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
DarianElmyra
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
Froilan Cantillo
 
Session01 basics programming
Session01 basics programmingSession01 basics programming
Session01 basics programming
HarithaRanasinghe
 
Lesson 2.pptx
Lesson 2.pptxLesson 2.pptx
Lesson 2.pptx
AlinaMishra7
 
C++ Training - Lecture 01
C++ Training - Lecture 01C++ Training - Lecture 01
C++ Training - Lecture 01
Babak Farhang
 
Computer languages
Computer languagesComputer languages
Computer languages
AqdasNoor
 
Python-L1.pptx
Python-L1.pptxPython-L1.pptx
Python-L1.pptx
DukeCalvin
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
Azimjon Khamdamov
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
Christ Association
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
PROG0101_CH02.pptx
PROG0101_CH02.pptxPROG0101_CH02.pptx
PROG0101_CH02.pptx
AnjaliPandey439257
 
introductiontocomputerprogramming-140713205433-phpapp02.pptx
introductiontocomputerprogramming-140713205433-phpapp02.pptxintroductiontocomputerprogramming-140713205433-phpapp02.pptx
introductiontocomputerprogramming-140713205433-phpapp02.pptx
ummeafruz
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNSU-Biliran Campus
 

Similar to 13 A Programing Languages (IT) Lecture Slide (20)

Introduction to Creating Computer Programs.ppt
Introduction to Creating Computer Programs.pptIntroduction to Creating Computer Programs.ppt
Introduction to Creating Computer Programs.ppt
 
Week - 04, 05 Software Chapter 2 info sys.ppt
Week - 04, 05 Software Chapter 2 info sys.pptWeek - 04, 05 Software Chapter 2 info sys.ppt
Week - 04, 05 Software Chapter 2 info sys.ppt
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
Session01 basics programming
Session01 basics programmingSession01 basics programming
Session01 basics programming
 
Lesson 2.pptx
Lesson 2.pptxLesson 2.pptx
Lesson 2.pptx
 
C++ Training - Lecture 01
C++ Training - Lecture 01C++ Training - Lecture 01
C++ Training - Lecture 01
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Python-L1.pptx
Python-L1.pptxPython-L1.pptx
Python-L1.pptx
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
PROG0101_CH02.pptx
PROG0101_CH02.pptxPROG0101_CH02.pptx
PROG0101_CH02.pptx
 
introductiontocomputerprogramming-140713205433-phpapp02.pptx
introductiontocomputerprogramming-140713205433-phpapp02.pptxintroductiontocomputerprogramming-140713205433-phpapp02.pptx
introductiontocomputerprogramming-140713205433-phpapp02.pptx
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 

More from Muhammad Talha Zaroon

Viruses (Lecture) IT Slides # 3
Viruses (Lecture) IT Slides # 3Viruses (Lecture) IT Slides # 3
Viruses (Lecture) IT Slides # 3
Muhammad Talha Zaroon
 
Derivative and Integeration Formulas
Derivative and Integeration FormulasDerivative and Integeration Formulas
Derivative and Integeration Formulas
Muhammad Talha Zaroon
 
Input & output devices (IT lab) assig # 1
Input & output devices (IT lab) assig # 1Input & output devices (IT lab) assig # 1
Input & output devices (IT lab) assig # 1
Muhammad Talha Zaroon
 
IT semester 1 course outline
IT semester 1 course outlineIT semester 1 course outline
IT semester 1 course outline
Muhammad Talha Zaroon
 
Chap 9A Networks (Lecture) IT Slides # 1
Chap 9A Networks (Lecture) IT Slides # 1Chap 9A Networks (Lecture) IT Slides # 1
Chap 9A Networks (Lecture) IT Slides # 1
Muhammad Talha Zaroon
 
Data Communication (Lecture) IT Slide # 2
Data Communication (Lecture) IT Slide # 2Data Communication (Lecture) IT Slide # 2
Data Communication (Lecture) IT Slide # 2
Muhammad Talha Zaroon
 
Map of UNI TUF
Map of UNI TUFMap of UNI TUF
Map of UNI TUF
Muhammad Talha Zaroon
 
Role of computer (IT-Lab) Presentation # 1
Role of computer (IT-Lab) Presentation # 1Role of computer (IT-Lab) Presentation # 1
Role of computer (IT-Lab) Presentation # 1
Muhammad Talha Zaroon
 
Front Page
Front PageFront Page
Welding (WorkShop) Assig # 1
Welding (WorkShop) Assig # 1Welding (WorkShop) Assig # 1
Welding (WorkShop) Assig # 1
Muhammad Talha Zaroon
 
History of Computer (IT) Assig # 1
History of Computer (IT) Assig # 1 History of Computer (IT) Assig # 1
History of Computer (IT) Assig # 1
Muhammad Talha Zaroon
 

More from Muhammad Talha Zaroon (11)

Viruses (Lecture) IT Slides # 3
Viruses (Lecture) IT Slides # 3Viruses (Lecture) IT Slides # 3
Viruses (Lecture) IT Slides # 3
 
Derivative and Integeration Formulas
Derivative and Integeration FormulasDerivative and Integeration Formulas
Derivative and Integeration Formulas
 
Input & output devices (IT lab) assig # 1
Input & output devices (IT lab) assig # 1Input & output devices (IT lab) assig # 1
Input & output devices (IT lab) assig # 1
 
IT semester 1 course outline
IT semester 1 course outlineIT semester 1 course outline
IT semester 1 course outline
 
Chap 9A Networks (Lecture) IT Slides # 1
Chap 9A Networks (Lecture) IT Slides # 1Chap 9A Networks (Lecture) IT Slides # 1
Chap 9A Networks (Lecture) IT Slides # 1
 
Data Communication (Lecture) IT Slide # 2
Data Communication (Lecture) IT Slide # 2Data Communication (Lecture) IT Slide # 2
Data Communication (Lecture) IT Slide # 2
 
Map of UNI TUF
Map of UNI TUFMap of UNI TUF
Map of UNI TUF
 
Role of computer (IT-Lab) Presentation # 1
Role of computer (IT-Lab) Presentation # 1Role of computer (IT-Lab) Presentation # 1
Role of computer (IT-Lab) Presentation # 1
 
Front Page
Front PageFront Page
Front Page
 
Welding (WorkShop) Assig # 1
Welding (WorkShop) Assig # 1Welding (WorkShop) Assig # 1
Welding (WorkShop) Assig # 1
 
History of Computer (IT) Assig # 1
History of Computer (IT) Assig # 1 History of Computer (IT) Assig # 1
History of Computer (IT) Assig # 1
 

Recently uploaded

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 

Recently uploaded (20)

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

13 A Programing Languages (IT) Lecture Slide

  • 1. Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.
  • 2. Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education Chapter 13A Creating Computer Programs
  • 3. 13A-3 What Is a Computer Program? • Computer programs – Also called software – Computer programs are the list of instructions. Instructions are called code – CPU execute the instructions – Three types of computer programs • Operating system • Utility • Application
  • 4. 13A-4 Software Is Stored In Many Files • Executable files – Contain the instructions for the CPU – Have extensions of .exe • Many other extensions are commonly found .dll extension .ini extension .hlp extension
  • 5. 13A-5 Hardware/Software Interaction • Program execution – Software executes at the CPU level – Code to play a sound • Code generates an interrupt • CPU tells the sound card to play • Sound card plays the file – Programmer creates the code
  • 6. 13A-6 Hardware/Software Interaction • Code – Statements written in a programming language – Writing code can be tedious • Code must be perfect • Order of steps must be exact – Writing code is quite exciting • Problems are solved • New ideas are formed
  • 8. 13A-8 Hardware/Software Interaction • Machine code – Recall that computers think in binary – Code is translated into machine code • CPU executes the machine code – CPUs have a unique machine code
  • 9. 13A-9 Hardware/Software Interaction • Compilers and interpreters – Converts source code into binary • Allows code to execute – Checks source code for correctness
  • 10. 13A-10 Hardware/Software Interaction • Compiler – Creates an executable file • Contents are called object code – Executable can run on its own – Each language has its own compiler – C++ and Java are compiled languages
  • 11. 13A-11 Hardware/Software Interaction • Interpreter – Runs program one line at a time – More flexible than compilers – Slower than compilers – Always needed to execute program – Visual Basic and Perl are interpreted
  • 12. 13A-12 Planning a Computer Program • Plans – The steps to solve a problem – Describe the expected results – Programming without a plan is difficult
  • 13. 13A-13 Planning Tools • Pseudo code – Natural language statements that resemble code – Describes what must be done – Can be written by non programmers – Programmers develop unique versions
  • 14. 13A-14 How Programs Solve Problems • Program control flow – Order program statements are executed – Typically executed in order – Constructs can change the flow • Decision statements • Loops
  • 15. 13A-15 How Programs Solve Problems • Algorithm – Set of steps – Always leads to a solution – Steps are always the same – Flowcharts can describe algorithms • Structured tool for drawing algorithms – Algorithms appear in all programs
  • 16. 13A-16 Hardware/Software Interaction • Programming languages – Simplifies the writing of code • English is used to describe the binary – Original code is called source code – Several hundred languages exist
  • 19. Low Level Language • A low-level language is a programming language is very close to writing actual machine instructions. • Low-level languages are considered more difficult to use, however, because they require a deeper knowledge of the computer's inner workings. • Two good examples of low-level languages are assembly and machine code. 13A-19
  • 20. 1. Machine language • Programming language that can be directly understood and obeyed by a machine (computer) without conversion. • It is different for each type of CPU • it is the native binary language (comprised of only characters: 0 and 1) of the computer and is difficult to be read and understood by humans • Hardware dependent: Could be performed by only one type of computer with a particular CPU. 13A-20
  • 21. 2. Assembly Language • An assembly language is a low-level programming language for microprocessors and other programmable devices. • Assembly language implements a symbolic representation of the machine code needed to program a given CPU architecture. • It is not just a single language, but rather a group of languages. • Examples: x86 13A-21
  • 22. Higher level Language • High-level language is any programming language that enables development of a program in much simpler programming context and is generally independent of the computer's hardware architecture. • High-level language has a higher level of abstraction from the computer, and focuses more on the programming logic rather than the underlying hardware components such as memory addressing and register utilization. • C/C++ and Java are popular examples of high-level languages. 13A-22
  • 23. Procedural Languages • Procedural programming language is a list or set of instructions telling a computer what to do step by step and how to perform from the first code to the second code. • Procedural programming languages include C, Go, Fortran, Pascal, and BASIC. 13A-23
  • 24. Non-Procedural Languages – A computer language that does not require writing traditional programming logic. – Also known as a "declarative language," users concentrate on defining the input and output rather than the program steps required in a procedural programming language – Many are associated with specific application packages. • Query Languages: • Report Writers: • Application Generators:13A-24
  • 25. Object-oriented programming (OOP) • It is a programming language model organized around objects rather than "actions" and data. • Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data. • Examples: C++/JAVA, Smalltalk 13A-25

Editor's Notes

  1. Teaching tip Chapters 7 and 8 cover software in great detail.
  2. Teaching tip Open a folder and demonstrate each file. Show what happens when you open each file type.
  3. Discussion point Page 501 states “Computers are the reason people purchase computers”. This is an excellent quote. Have students list all the things that they do with computers. When done, point out that the majority of items are handled by a software application.
  4. Teaching tip Figure 13A.4 on page 502 shows an example of binary code.
  5. Teaching tip Imagine driving from New York City to Los Angeles without a map, directions, cell phone or street signs. This is programming without a plan.
  6. Teaching tip Briefly describe a loop and an if statement here.
  7. Teaching tip Figure 13A.8 on page 505 shows a flowchart.
  8. Teaching tip It is a good idea to show a few different programming environments. In particular, show the same program (Hello World works well) in several different languages. Point out that the result is the same, but the syntax is very different.