B.Ramamurthy11/9/20151 Computers and Programming Bina Ramamurthy 127 Bell Hall

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
INTRODUCTION OF COMPUTER
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Computer Components.
COMPUTER SYSTEM CAN BE DIVIDED INTO : 1- General Computer 2- Special Computer.
COSC 120 Computer Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Chapter 1: An Overview of Computers and Programming Languages
Introduction to C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Topic 1: Introduction to Computers and Programming
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Introduction to Programming Using C Introduction to Computer Programming.
 Why?  Because it can be programmed to do more than one specific task. ◦ Accountants ~ tax forms etc. ◦ Machinists ~ control drilling, lathes etc. ◦
Intro to Computers Computer Apps 1.
CPS120: Introduction to Computer Science Introduction to Computers.
Chapter 1: An Overview of Computers and Programming Languages
CPSC- 120 Principle of Computer Science I Computer = Hardware + Software.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
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.
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Computer Architecture
12/4/20151 Introduction To Computer Science Bina Ramamurthy.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
CHAPTER 1 OVERVIEW OF COMPUTER AND PROGRAMMING 1.1 Electronic Computer Then and Now 1.2 Computer Hardware 1.3 Computer Software 1.4 The Software Development.
Chapter 1: Introduction to Computers and Programming
BASIC PROGRAMMING C SCP1103 (02)
Engineering Problem Solving With C An Object Based Approach
Chapter 1: An Overview of Computers and Programming Languages
Lecture 1: Introduction to JAVA
BASIC PROGRAMMING C SCP1103 (02)
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Overview of Computers & Programming Languages
Chapter 1: Introduction to Computers and Programming
Computer Electronic device Accepts data - input
National Diploma in Computer Studies
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

B.Ramamurthy11/9/20151 Computers and Programming Bina Ramamurthy 127 Bell Hall

B.Ramamurthy11/9/20152 Introduction u A computer executes the solution designed for a problem. A program expresses the solution in a form that a computer can understand. u In this discussion we will look at the basic components of a computer, the programming environment, the system support, and program development phases.

B.Ramamurthy11/9/20153 Topics for discussion u Basic components of a computer u Operating systems u High level language u Processing a program u Software development stages u Example

B.Ramamurthy11/9/20154 Basic Components of a digital computer INPUT PROCESSOR OUTPUT CONTROL MEMORY DATA CONTROL

B.Ramamurthy11/9/ Components... u Processor = Arithmetic Logic Unit (ALU) u ALU + Control = CPU = Central Processing Unit u Ex: PowerPc 604, Intel Pentium, Motorola 68xxx u Ex: Input : Mouse Output : laser printer u Memory : main memory (RAM) u Secondary memory : Floppy disk, hard disk.

B.Ramamurthy11/9/20156 Operating systems u Provides user interface u Resource management u Security and protection u Provides utility programs and libraries : Editor, math library u Example : unix, MS-DOs, windows-95

B.Ramamurthy11/9/20157 High level language u The hardware underlying a computer communicates and computes in binary code called machine code. u But in order for the humans to effectively communicate the solutions to a computer we need a language that is closer to human language : High Level language (HLL). ex: C++ u Problem : HLL -->machine code u Solution: A translation mechanism : Compiler or an interpreter

B.Ramamurthy11/9/20158

B.Ramamurthy11/9/20159 Steps in software development u Problem analysis –Clear understanding of the problem –identify problem’s input, output, requirements and constraints. u Solution design –Class design : Identify the classes of objects required by the problem and draw relationship among these. –Algorithm design: Stepwise solution to carry out the functionality of the classes.

B.Ramamurthy11/9/ Steps in software development (contd.) u Documentation –Provide information for use and maintenance of the software. Provide an example that gives input and output. u Implementation –Code the algorithms into a programs using a HLL. u Debugging –Compile and execute the software. Remove any errors. u Testing –Execute with various test data and make sure the software works as expected.

B.Ramamurthy11/9/ Example (non-computer problem) Problem 1: You are on your way to visit a friend in Chicago. You are driving in downtown Chicago and are lost. Solve this problem.

B.Ramamurthy11/9/ Example (computer problem) u Problem 2: Count the number of times the letter ‘a’ occurs in a piece of text. u Solution: u 1. Initialize Acounter = 0; // Assignment - memory 2. Input a character from input. //input 3. If it is an “a” then // selection Increment Acounter; // arithmetic - memory 4. Repeat steps until end of input. //repetition 5. Output Acounter. // output 6. Exit