of 20

MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -

Title: No Slide Title Author: Jiawei Han Last modified by: rem Badur Created Date: 6/19/1998 4:38:52 AM Document presentation format: On-screen Show
0 views20 pages
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Documenttranscript
Title: MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 - 1 MIS 131Introduction to Algorithms and Programming2015/2016 Fall- Chapter 1 - 2 Chapter 1 Introduction to Computers and C Programming Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Computer Organization 1.6 Machine Languages, Assembly Languages and High-level Languages 1.7 The History of C 1.8 The C Standard Library 1.13 Structured Programming 1.14 The Basics of a typical C Program Development Environment 3 Outline
  • Outline
  • Introduction
  • What Is a Computer?
  • Computer Organization
  • Machine Languages, Assembly Languages and High-level Languages
  • 4 What is a Computer?
  • Computer
  • Device capable of performing computations and making logical decisions
  • Computers process data under the control of sets of instructions called computer programs
  • Hardware
  • Various devices comprising a computer
  • Keyboard, screen, mouse, disks, memory, CD-ROM, and processing units
  • Software
  • Programs that run on a computer
  • 5 Software
  • System programs
  • Operating systems
  • Microsoft 7,10, Unix, Unix, Android
  • Utility programs - Compilers and interpreters
  • C,C,Java compilers
  • QBasic interpreter
  • Application Programs
  • LOGO accounting
  • SPSS statistics
  • 6 Six logical units in every computer
  • Input unit
  • Obtains information from input devices (keyboard, mouse)
  • Output unit
  • Outputs information (to screen, to printer, to control other devices)
  • Memory unit
  • Rapid access, low capacity, stores input information
  • Arithmetic and logic unit (ALU)
  • Performs arithmetic calculations and logic decisions
  • Central processing unit (CPU)
  • Supervises and coordinates the other sections of the computer
  • Secondary storage unit
  • Cheap, long-term, high-capacity storage
  • Stores inactive programs
  • 7 Three types of programming languages
  • Machine languages
  • Assembly languages
  • High-level languages
  • 8 Machine languages
  • Strings of numbers giving machine specific instructions
  • Natural language of the computer
  • 0-1 corresponding to high or low voltage
  • Instructions and data are encoded into binary numbers
  • Example
  • 100111001011
  • 110010100110
  • 001011100101
  • 9 Assembly languages
  • English-like abbreviations representing elementary computer operations (translated via assemblers)
  • Example
  • LOAD BASEPA
  • ADD OVERPAY
  • STORE GROSSPAY
  • 10 High-level languages
  • Codes similar to everyday English
  • Use mathematical notations (translated via compilers)
  • Example
  • grossPay basePay overTimePay
  • 11
  • grossPay basePay overTimePay
  • one line of a programm
  • Variables
  • grossPay
  • basePay
  • overTimePay
  • Onces compiled turn into machine code
  • after loading each has an adress in main memory of the computer
  • executing the sum instruction
  • basePay and overTimePay has values they are summed and assigned to grossPay
  • 12 Meaning of computer programming
  • Problem solving
  • Problem programmer 13 machine language compiler interpreter high level languages QBasic, C,C,Java,VB.NET programmer natural languages Turkish English 14 What CPU does
  • Reading data or instructions from main memory
  • Performing aritmetic operations
  • Addition, multiplication , division,
  • Performing logical opertations
  • Comparing numbers
  • They are equal, one is lsss then the other
  • Moving results of operation back to main memory
  • 15 Steps of Software Development
  • Problem definition
  • Analysing the problem
  • Development of algorithm, pseudocode and flow chart
  • Programming
  • Testing the program
  • Implementing
  • 16 The text books
  • Java How to Program, 8th or higher Editions
  • Late Object Version
  • by Deitel Deitel
  • Pearson
  • Starting out with Programming Logic and Design
  • 2ed Eddition
  • by Tony Gaddis
  • Pearson
  • 17 Version of Java
  • Java 2 Enterprise Edition (J2EE)
  • Java 2 Micro Edition (J2ME)
  • J2SE Development Kit (JDK)
  • 18 Two Styles of Programming
  • Structured programming MIS 131
  • Introduce structured programming with a pure object oriented language Lava
  • Object oriended programing MIS 132
  • Basic object oriented programming
  • Object oriented capabilities of Java
  • 19 History of Java
  • Java
  • by Sun Microsystems in 1991
  • team leader James Gosling
  • Originally for intelligent consumer-electronic devices
  • Then used for creating Web pages with dynamic content
  • Now also used for
  • Develop large-scale enterprise applications
  • Enhance WWW server functionality
  • Provide applications for consumer devices (cell phones, etc.)
  • Advertisement
    MostRelated
    View more
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x