Programming Fundamentals Lecture #2 Overview of Computer Programming

Slides:



Advertisements
Similar presentations
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Advertisements

Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
CS2301:Computer Programming 2
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
ICT PROGRAMMING INTRODUCTION. WHAT & WHY PROGRAMMING Programming is a process of developing computer programs Computer program is a set of instructions.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Introduction to Programming in C++ Seventh Edition Chapter 1: An Introduction to Programming.
A LECTURE NOTE. Introduction to Programming languages.
Software Development Environment
Why don’t programmers have to program in machine code?
 2001 Prentice Hall, Inc. All rights reserved.
Unit 2 Technology Systems
Introduction to Computers, the Internet and the Web
Topic: Programming Languages and their Evolution + Intro to Scratch
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Chapter 1: Introduction to computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Sections Basic Concepts of Programming
CSCI-235 Micro-Computer Applications
Computer Programming.
© by Pearson Education, Inc. All Rights Reserved.
GC101 Introduction to computers and programs
Introduction to Programming
Intro to Programming Week # 1 Hardware / Software Lecture # 2
A451 Theory – 7 Programming 7A, B - Algorithms.
What is a computer? A computer is a device capable of performing computations and making logical decisions at speeds millions and even billions of times.
1.6 Machine Languages, Assembly Languages, and High-level Languages
Introduction CSE 1310 – Introduction to Computers and Programming
Chapter 4 Computer Software.
Translators & Facilities of Languages
Assembler, Compiler, Interpreter
Programming languages and software development
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
COMPUTER SOFT WARE Software is a set of electronic instructions that tells the computer how to do certain tasks. A set of instructions is often called.
Introduction to C Programming
CS105 Introduction to Computer Concepts Intro to programming
Programming Fundamentals Lecture #3 Overview of Computer Programming
Outline Introduction What Is a Computer? Computer Organization
Programming What?! How?!.
Assembler, Compiler, Interpreter
Introduction to Visual Basic and Object Oriented Programming
Introduction to Computer Programming
ICT Gaming Lesson 2.
Tonga Institute of Higher Education IT 141: Information Systems
An Introduction to Programming with C++ Fifth Edition
Tonga Institute of Higher Education IT 141: Information Systems
Chapter 1 Introduction to Programming
Introduction to Computers, Internet and the World Wide Web
Programming language translators
CS105 Introduction to Computer Concepts Intro to programming
Chapter 1 Introduction.
Presentation transcript:

Programming Fundamentals Lecture #2 Overview of Computer Programming Junaid Hassan Lecturer CS & IT Department UOS MBDIN junaidte14@gmail.com

Programming/Coding Set of rules to instruct computers to perform certain tasks is called as programming. A language which is understandable by computers is called as programming language

Purpose of the course To understand different programming concepts and to familiarize students with the basic structured programming skills. Problem analysis, algorithm designing, program development and testing/debugging

Overview of Computer Programming Set of instructions/statements we write to command computers to perform actions & make decisions is called a computer program/software Programming language that we will use (in this course) is C/C++ C++ is the next version or superset of C C does not support classes & objects because C is a procedural programming language, whereas C++ is a combination of both procedural and object oriented programming capabilities

Overview of Computer Programming A computer is a device that can perform computations & make decisions billions of times faster than humans can. Computers process data under the control of sets of instructions called computer programs People who write these computer programs are called as computer programmers

Machine Languages, Assembly Languages & High Level Languages Some programming languages are directly understandable by computers but some languages require intermediate translation steps There are hundreds of computer languages in use today These computer programming languages can be divided into three general types: 1) Machine Languages 2) Assembly Languages 3) High Level Languages

Machine Languages A language which is directly understandable by computers is called as machine language. It’s also called as natural language of computers. Machine languages generally consits of strings of numbers (ultimately reduced to 1’s & 0’s) that instruct computers to perform their most elementary operations one at a time Machine language programming was too slow, tedious & error prone for most programmers

Assembly Languages Istead of using strings of numbers that computers could directly understand, programmers began using English- Like abbreviations to represent elementary operations These abbreviations formed the basis of assembly languages To convert assembly language code to machine language code, translator programs called assemblers were developed

Assembly Languages Although assembly language code is clearer to humans but it’s not understandable by computers until translated to machine language code In assembly language, programmers still need to use many instructions to accomplish even the simplest tasks That’s why we moved to next level i.e High level languages

High Level Languages To speed up the programming process, high level languages were developed in which single statements could be written to accomplish substantial tasks Translator programs used to convert high level language code to machine language code are called compilers. Advantage of high level language is that we can write instructions like every day English & with commonly used mathematical notations

Machine Languages, Assembly Languages, High Level Languages Requirement: Add overtime pay to base pay & store the result in gross pay Machine Language Code: +1300042774 +1400593419 +1200274027

Machine Languages, Assembly Languages, High Level Languages Requirement: Add overtime pay to base pay & store the result in gross pay Assembly Language Code: Load basepay Add overpay Store grosspay

Machine Languages, Assembly Languages, High Level Languages Requirement: Add overtime pay to base pay & store the result in gross pay High Level Language Code: grosspay = basepay + overpay ;

Machine Languages, Assembly Languages, High Level Languages From programmer’s point of view high level languages are preferable to machine & assembly languages C, C++, Microsoft’s .NET languages (e.g visual basic, visual c++ & visual c#) & java are among the most widely used high level programming languages

Real World Application Areas of C/C++ Operating systems Development of new languages e.g python, php Computation platforms e.g matlab Graphics, games, GUI based apps Web browsers Database softwares e.g mysql and many more.....