SlideShare a Scribd company logo
1 of 16
Download to read offline
Introduction to Computer Programming
Introduction
Overview of Computers and
Programming Languages
C++ Programming: From Problem Analysis to Program Design
Overview of Computers and Programming
Languages
Chapter Contents
• Computer History
• Elements of a Computer System
– Hardware
– Software
• Language of a Computer
• Evolution of Programming Languages
• High Level Languages
• Analysis‐Coding‐Execution
• Object Oriented Programming
Computer History
• 1950's
– Large devices, accessible to few people
• 1960's
– Commercial usage emerges
– Operated by experts
• 1970's
– Computers cheaper, smaller
• 1990's
– Computers fast, small, inexpensive
– Owned and used by many people
Elements of a Computer System
Hardware CPU
The "brain" of
the computer
Main Memory
Data and
instructions stored
to, fetched from
• Keyboard
• Disk drive
• Scanner
• Mouse
• Screen
• Printer
• Plotter
• Hard drive
• Zip‐Disk
• CD‐Rom
• Tape Backup
Elements of a Computer System
Software
• Systems programs
– Control the computer
– Includes Operating System (ex: windows, Apple Mac,
Chrome OS etc..)
• Applications programs
– Word processors (wordpad, MS Word)
– Compilers (MSVS, C++ Builder)
– Spreadsheets (MS Excel)
– Data Bases (MS Access)
The Language of a Computer
• Uses digital signals
– all 0's and 1's (binary)
– bits (BInary digiTs)
• Data and commands stored in binary
– 8 bits in a byte
– ASCII character stored in a byte
– Integers stored in 2 or 4 bytes
ASCII Code
American Standard Code for Information
Interchange
Evolution of Programming Languages
• Early computers programmed in machine languages
– All binary numbers
• Assembly language used mnemonic codes
– Codes translated
into machine
language by a
program called
the "assembler"
Evolution of Programming Languages
• High level languages read like combination of English
and algebra
– Translated into machine language by a program called a
compiler
Analysis‐Coding‐Execution
Problem solving process
1. Analyze problem, design solution algorithm
2. Implement algorithm in a programming language,
verify
3. Maintain program, adapting it to changes in
problem requirements
Analysis‐Coding‐Execution
• Algorithm : A step‐by‐step problem‐solving process
in which a solution is arrived at in a finite amount of
time
– Steps must be simple, unambiguous
– Steps must be performed in specified order
– Steps must solve the problem
Analysis‐Coding‐Execution
Analysis and
algorithm design
done apart from
any specific
programming
language
Processing of the
high‐level language
programming
language
Processing a High‐Level Language Program
1. Source program created with an editor
2. Source code translated into machine language by
compiler
‐ Results in a “.obj” file (object code)
3. Linker combines common library routines with
object code
‐ Results in a “.exe” file (executable code)
4. Loader brings executable code into memory and it
is run
Processing a High‐Level Language Program
Structured Programming
• Thoroughly understand the problem
• Determine
– the output desired
– the required input
– processing that will occur
• Divide the problem into sub‐problems

More Related Content

Similar to Overview of computers and programming

9781285852744 ppt ch01
9781285852744 ppt ch019781285852744 ppt ch01
9781285852744 ppt ch01Terry Yoast
 
Computer-charecteristics,types of languages,translators
Computer-charecteristics,types of languages,translatorsComputer-charecteristics,types of languages,translators
Computer-charecteristics,types of languages,translatorsVarshaSivashanker
 
Week 08_Basics of Compiler Construction.pdf
Week 08_Basics of Compiler Construction.pdfWeek 08_Basics of Compiler Construction.pdf
Week 08_Basics of Compiler Construction.pdfAnonymousQ3EMYoWNS
 
9781285852751 ppt c++
9781285852751 ppt c++9781285852751 ppt c++
9781285852751 ppt c++umair khan
 
chapter1lecturenotes sdsdasdddadad(2).ppt
chapter1lecturenotes sdsdasdddadad(2).pptchapter1lecturenotes sdsdasdddadad(2).ppt
chapter1lecturenotes sdsdasdddadad(2).pptmeharikiros2
 
Computer, generations, languages, soft wares
Computer, generations, languages, soft waresComputer, generations, languages, soft wares
Computer, generations, languages, soft wareskiranmohan42
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computersLearn By Watch
 
Python-L1.pptx
Python-L1.pptxPython-L1.pptx
Python-L1.pptxDukeCalvin
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design IntroductionKuppusamy P
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptxcrAmth
 
4_5802928814682016556.pptx
4_5802928814682016556.pptx4_5802928814682016556.pptx
4_5802928814682016556.pptxAshenafiGirma5
 
Cd ch1 - introduction
Cd   ch1 - introductionCd   ch1 - introduction
Cd ch1 - introductionmengistu23
 
CD - CH1 - Introduction to compiler design.pptx
CD - CH1 - Introduction to compiler design.pptxCD - CH1 - Introduction to compiler design.pptx
CD - CH1 - Introduction to compiler design.pptxZiyadMohammed17
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python ProgrammingAkhil Kaushik
 

Similar to Overview of computers and programming (20)

9781285852744 ppt ch01
9781285852744 ppt ch019781285852744 ppt ch01
9781285852744 ppt ch01
 
Computer-charecteristics,types of languages,translators
Computer-charecteristics,types of languages,translatorsComputer-charecteristics,types of languages,translators
Computer-charecteristics,types of languages,translators
 
01CHAP_1.PPT
01CHAP_1.PPT01CHAP_1.PPT
01CHAP_1.PPT
 
Fb
FbFb
Fb
 
Week 08_Basics of Compiler Construction.pdf
Week 08_Basics of Compiler Construction.pdfWeek 08_Basics of Compiler Construction.pdf
Week 08_Basics of Compiler Construction.pdf
 
9781285852751 ppt c++
9781285852751 ppt c++9781285852751 ppt c++
9781285852751 ppt c++
 
chapter1lecturenotes sdsdasdddadad(2).ppt
chapter1lecturenotes sdsdasdddadad(2).pptchapter1lecturenotes sdsdasdddadad(2).ppt
chapter1lecturenotes sdsdasdddadad(2).ppt
 
Computer, generations, languages, soft wares
Computer, generations, languages, soft waresComputer, generations, languages, soft wares
Computer, generations, languages, soft wares
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Python-L1.pptx
Python-L1.pptxPython-L1.pptx
Python-L1.pptx
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
 
4_5802928814682016556.pptx
4_5802928814682016556.pptx4_5802928814682016556.pptx
4_5802928814682016556.pptx
 
Cd ch1 - introduction
Cd   ch1 - introductionCd   ch1 - introduction
Cd ch1 - introduction
 
CD - CH1 - Introduction to compiler design.pptx
CD - CH1 - Introduction to compiler design.pptxCD - CH1 - Introduction to compiler design.pptx
CD - CH1 - Introduction to compiler design.pptx
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
Caim ppt
Caim pptCaim ppt
Caim ppt
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
Computer software
Computer softwareComputer software
Computer software
 

More from Jason J Pulikkottil

More from Jason J Pulikkottil (12)

Repetition, Basic loop structures, Loop programming techniques
Repetition, Basic loop structures, Loop programming techniquesRepetition, Basic loop structures, Loop programming techniques
Repetition, Basic loop structures, Loop programming techniques
 
Selection
SelectionSelection
Selection
 
Input and Output
Input and OutputInput and Output
Input and Output
 
Basic Elements of C++
Basic Elements of C++Basic Elements of C++
Basic Elements of C++
 
Computer Architecture Performance and Energy
Computer Architecture Performance and EnergyComputer Architecture Performance and Energy
Computer Architecture Performance and Energy
 
ARM 7 and 9 Core Architecture Illustration
ARM 7 and 9 Core Architecture IllustrationARM 7 and 9 Core Architecture Illustration
ARM 7 and 9 Core Architecture Illustration
 
Microprocessors and Microcontrollers 8086 Pin Connections
Microprocessors and Microcontrollers 8086 Pin ConnectionsMicroprocessors and Microcontrollers 8086 Pin Connections
Microprocessors and Microcontrollers 8086 Pin Connections
 
Basic Electronics Theory and Components
Basic Electronics Theory and ComponentsBasic Electronics Theory and Components
Basic Electronics Theory and Components
 
Electronic Circuits
Electronic CircuitsElectronic Circuits
Electronic Circuits
 
Power Amplifier
Power AmplifierPower Amplifier
Power Amplifier
 
E12 Resistor Series
E12 Resistor SeriesE12 Resistor Series
E12 Resistor Series
 
Deep Learning for Health Informatics
Deep Learning for Health InformaticsDeep Learning for Health Informatics
Deep Learning for Health Informatics
 

Recently uploaded

Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
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
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
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
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
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
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
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
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
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
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
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...
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
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
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
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
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 

Overview of computers and programming

  • 1. Introduction to Computer Programming Introduction Overview of Computers and Programming Languages C++ Programming: From Problem Analysis to Program Design
  • 2. Overview of Computers and Programming Languages
  • 3. Chapter Contents • Computer History • Elements of a Computer System – Hardware – Software • Language of a Computer • Evolution of Programming Languages • High Level Languages • Analysis‐Coding‐Execution • Object Oriented Programming
  • 4. Computer History • 1950's – Large devices, accessible to few people • 1960's – Commercial usage emerges – Operated by experts • 1970's – Computers cheaper, smaller • 1990's – Computers fast, small, inexpensive – Owned and used by many people
  • 5. Elements of a Computer System Hardware CPU The "brain" of the computer Main Memory Data and instructions stored to, fetched from • Keyboard • Disk drive • Scanner • Mouse • Screen • Printer • Plotter • Hard drive • Zip‐Disk • CD‐Rom • Tape Backup
  • 6. Elements of a Computer System Software • Systems programs – Control the computer – Includes Operating System (ex: windows, Apple Mac, Chrome OS etc..) • Applications programs – Word processors (wordpad, MS Word) – Compilers (MSVS, C++ Builder) – Spreadsheets (MS Excel) – Data Bases (MS Access)
  • 7. The Language of a Computer • Uses digital signals – all 0's and 1's (binary) – bits (BInary digiTs) • Data and commands stored in binary – 8 bits in a byte – ASCII character stored in a byte – Integers stored in 2 or 4 bytes
  • 8. ASCII Code American Standard Code for Information Interchange
  • 9. Evolution of Programming Languages • Early computers programmed in machine languages – All binary numbers • Assembly language used mnemonic codes – Codes translated into machine language by a program called the "assembler"
  • 10. Evolution of Programming Languages • High level languages read like combination of English and algebra – Translated into machine language by a program called a compiler
  • 11. Analysis‐Coding‐Execution Problem solving process 1. Analyze problem, design solution algorithm 2. Implement algorithm in a programming language, verify 3. Maintain program, adapting it to changes in problem requirements
  • 12. Analysis‐Coding‐Execution • Algorithm : A step‐by‐step problem‐solving process in which a solution is arrived at in a finite amount of time – Steps must be simple, unambiguous – Steps must be performed in specified order – Steps must solve the problem
  • 13. Analysis‐Coding‐Execution Analysis and algorithm design done apart from any specific programming language Processing of the high‐level language programming language
  • 14. Processing a High‐Level Language Program 1. Source program created with an editor 2. Source code translated into machine language by compiler ‐ Results in a “.obj” file (object code) 3. Linker combines common library routines with object code ‐ Results in a “.exe” file (executable code) 4. Loader brings executable code into memory and it is run
  • 15. Processing a High‐Level Language Program
  • 16. Structured Programming • Thoroughly understand the problem • Determine – the output desired – the required input – processing that will occur • Divide the problem into sub‐problems