Introduction to Programming
Vikram Neerugatti
Department of Computer Science and Engineering
Sri Venkateswara University, Tirupati.
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
1
What is programming?
• Person to person communication
• Language-English
• To share information
• Person to machine communication
• To solve human problems
• Language-programming
• C, c++, java
• High, middle, low level languages
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
2
Components of a Machine
• Computer systems
• Hardware
• Software-system-application
• Operating system
• Input-process-output
• Memory
• Low to high, vice versa-compilers
• Interpreters
• Applications/apps
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
3
Algorithm
• Problem-solution
• How we will prepare a Tea?
• Tele phone conversation-friends
• How to come to online class
• Step by step procedure
• Any language-user understanding
• Pseudo code
• design
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
4
Flow chart
• Representation of algorithm
• Pictorial representation of algorithm
• Start/stop
• Input/output
• Process
• Branching
• Looping
• connector
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
5
Program
• Source code
• Any language
• Syntax and semantics
• C-compiler-structured
• Data-need to understand to machine
• datatypes- variables-identifiers-keyword
• File extensions-.c-.obj-.exe
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
6
Expressions
• Operators and operands
• Operators
• Arithmetic
• Logical
• Comparative
• Assignment
• Precedence
• associativity
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
7
Any questions
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
8
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
9
15-05-2020
Vikram Neerugatti, Research Scholar, Department of CSE, SVU,
Tirupati.
10

Introduction to programming

  • 1.
    Introduction to Programming VikramNeerugatti Department of Computer Science and Engineering Sri Venkateswara University, Tirupati. 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 1
  • 2.
    What is programming? •Person to person communication • Language-English • To share information • Person to machine communication • To solve human problems • Language-programming • C, c++, java • High, middle, low level languages 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 2
  • 3.
    Components of aMachine • Computer systems • Hardware • Software-system-application • Operating system • Input-process-output • Memory • Low to high, vice versa-compilers • Interpreters • Applications/apps 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 3
  • 4.
    Algorithm • Problem-solution • Howwe will prepare a Tea? • Tele phone conversation-friends • How to come to online class • Step by step procedure • Any language-user understanding • Pseudo code • design 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 4
  • 5.
    Flow chart • Representationof algorithm • Pictorial representation of algorithm • Start/stop • Input/output • Process • Branching • Looping • connector 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 5
  • 6.
    Program • Source code •Any language • Syntax and semantics • C-compiler-structured • Data-need to understand to machine • datatypes- variables-identifiers-keyword • File extensions-.c-.obj-.exe 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 6
  • 7.
    Expressions • Operators andoperands • Operators • Arithmetic • Logical • Comparative • Assignment • Precedence • associativity 15-05-2020 Vikram Neerugatti, Research Scholar, Department of CSE, SVU, Tirupati. 7
  • 8.
    Any questions 15-05-2020 Vikram Neerugatti,Research Scholar, Department of CSE, SVU, Tirupati. 8
  • 9.
    15-05-2020 Vikram Neerugatti, ResearchScholar, Department of CSE, SVU, Tirupati. 9
  • 10.
    15-05-2020 Vikram Neerugatti, ResearchScholar, Department of CSE, SVU, Tirupati. 10