Chapter 1: Introductory Concepts Dr. Ameer Ali. Overview Introduction to computers Computer characteristics Modes of operation Types of programming languages.

Slides:



Advertisements
Similar presentations
C++ Introduction.
Advertisements

Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Fundamentals and a Brief History of Computer Systems.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
Ceng 230 Programming with C
‘C’ LANGUAGE PRESENTATION.  C language was introduced by Dennis Ritchie..  It is a programming language, which can make a interaction between user and.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Chapter 1: An Introduction to Computers and Programming Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
BLOCK DIAGRAM OF COMPUTER
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Topics Introduction Hardware and Software How Computers Store Data
INTRODUCTION TO COMPUTING
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
INTRODUCTION TO COMPUTERS The personal computer was far from reality in Computer users were limited to specially trained operators and engineers.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Assembly Language for x86 Processors 7th Edition
Introduction to Python
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
CISC105 General Computer Science Class 1 – 6/5/2006.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
Introduction to Computer Systems and the Java Programming Language.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
What is programming? Steps to solve a problem. Repeatable by executing or “doing” the steps again. UWP - Landgraf Some slides are from Dr. Qi Yang's notes.
Course Title: Introduction to C++ Course Instructor: ADEEL ANJUM Chapter No: 01 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Chapter 17 Looking “Under the Hood”. 2Practical PC 5 th Edition Chapter 17 Getting Started In this Chapter, you will learn: − How does a computer work.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
An Example Architecture. A Paper Computer - Woody Woody's characteristics Word size – 8 bits One word.
Agenda Computer Languages How to Write a Simple C Program
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
Chapter 1 Getting Acquainted With Computers, Programs, and C++
The single most important skill for a computer programmer is problem solving Problem solving means the ability to formulate problems, think creatively.
Course Title Object Oriented Programming with C++ instructor ADEEL ANJUM Chapter No: 03 Conditional statement 1 BY ADEEL ANJUM (MSc-cs, CCNA,WEB DEVELOPER)
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Chapter 1 Coding Introduction.
Chapter 3 Data Representation
Chapter 1 Introduction 2nd Semester H
Computer basics.
Chapter 1: An Overview of Computers and Programming Languages
Assembly Language (CSW 353)
Topics Introduction Hardware and Software How Computers Store Data
Overview of Computers and Programming Chapter 1
CSCI 161: Introduction to Programming
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Topics Introduction Hardware and Software How Computers Store Data
Introduction CSC 111.
SME1013 PROGRAMMING FOR ENGINEERS
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Introduction to computers
Computer Electronic device Accepts data - input
SME1013 PROGRAMMING FOR ENGINEERS
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
C – Programming Language
Presentation transcript:

Chapter 1: Introductory Concepts Dr. Ameer Ali

Overview Introduction to computers Computer characteristics Modes of operation Types of programming languages Introduction to C Sample C program Chapter 5: Preparing and running a complete C programming

Introduction to Computers History

Computer Characteristics Basically electronic devices that can transmit, store, and manipulate information Different types of data can be processed by a computer Numeric data, character data, graphic data, sound. To process a set of particular data, the computer must be given an appropriate set of instructions called program. This program is entered into the computer and then stored into memory.

Computer Characteristics A stored program can be executed at any time and followings are happen: Input data is entered into the computer Input data are process to get desired result or output Processed output can be displayed into the monitor

Memory Stored as 0 and 1 and known as bit (binary digit) 8 bit is one bit 2 10 Byte= 1024 byte=1KB 2 10 KB= 1024 KB=1MB 2 10 MB= 1024 MB=1GB

Speed and Reliability High speed and takes approximately sec for one instruction High reliable and can never mistake with its own accord

Modes of Operation Batch Processing Time sharing Interactive Computing: commercial time sharing

Types of Programming Language Low level: machine language Very detailed, cryptic instructions that control computer’s internal circuitry Very few computer programs are written in machine language due to: (i) very cumbersome to work with it and (ii) different type of computers has its own instructions High Level: C language Compatible with human language

High Level: C language Compatible with human language Significant advantages over machine language: simplicity, uniformity and portability i.e. machine independence

Introduction to C Structured programming languages Developed in 1970’s at bell telephone laboratories Confined until 1978 and then published After this, development of computer grown rapidly Used for system programming and application programming

Introduction to C Large number of operators included with C and ability to write very concise source program Features and capabilities can easily be extended Available for all size computers Highly portable

Structure of C program Include header file Define constant values Write Main program

Sample C program Add two numbers a and b #include void main (void) {int a, b, sum; printf(“take input for a=“); scanf(“%d”,&a); printf(“take input for b=“); scanf(“%d”,&b); sum=a+b; printf(“The sum is sum=“, sum); getch(); }

Preparing and Running Save it into specific directory as test.cpp Compile and check error Cursor will indicate where the error is After successful compilation, run from the toolbar or ctrl+F9 Give proper input if required and then you will get output

Preparing and Running If the program is not giving you the proper output, then debug program using debugger. Practice: Calculate P=C(1+i) n Calculate addition, subtraction, multiplication, and division