L1_-_Introduction_4 - Lecture Overview CS1010E: Programming...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
S1010E: Programming Methodology CS1010E: Programming Methodology Introduction In the beginning…. . gg [ CS1010E AY1112S1 Lecture 1 ] Lecture Overview Computers and Computing Fundamentals rogramming Languages Programming Languages Problem Solving Writing Algorithms in pseudo code 2 [ CS1010E AY1112S1 Lecture 1 ] omputers as Information Processors Computers as Information Processors (1/2) Computer = Hardware + Software . Hardware : physical components for computation/processing; should be simple, fast, reliable. f t tf i t t i t f t kt Software : set of instructions to perform tasks to specifications; should be flexible, user-friendly, sophisticated. Programs are thus software. [ CS1010E AY1112S1 Lecture 1 ] 3 omputers as Information Processors Computers as Information Processors (2/2) Computer are Information Processors omputer aw rocessed Computer system Raw data Processed information Data units Internal representation in machine o 1 bit ( b inary dig it ): 0 or 1 o 1 byte = 8 bits o Floating-point representation, etc. Data types in programs o int , char , float , etc. [ CS1010E AY1112S1 Lecture 1 ] 4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer: Hardware Components Main Components: Processor (controls devices and processes data). Memory : stores programs and intermediate data. Input Devices : accept data from outside world. Output Devices : present data to the outside world. omputer Computer Processor Memory Input Output 5 [ CS1010E AY1112S1 Lecture 1 ] Computer: Hardware Components Monitor and speaker (output) ontains processor Contains processor, memory, buses, etc. Keyboard and mouse (input) 6 [ CS1010E AY1112S1 Lecture 1 ] Software Software is a written program that directs the peration f computer Related terms: operation of computer Program : Sequence of instructions that tells a computer what to do Execution : Performing the instruction sequence Programming language : Language for writing instructions to a computer 7 [ CS1010E AY1112S1 Lecture 1 ] Software (1/4) w( / ) Program Sequence of instruction that tells a computer what to do qp Execution Performing the instruction sequence Programming language Language for writing instructions to a computer ajor flavors Major flavors Machine language or object code Assembly language High-level [ CS1010E AY1112S1 Lecture 1 ] 8
Background image of page 2
Software (2/4) w( / ) Program Sequence of instruction that tells a computer what to do qp Execution Performing the instruction sequence Programming language Language for writing instructions to a computer ajor flavors Major flavors Machine language or object code Assembly language Program to which computer can spond directly Each instruction High-level respond directly. Each instruction is a binary code that corresponds to a native instruction.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/13/2011 for the course ELECTRICAL CS1010E taught by Professor Henrytan during the Spring '11 term at National University of Singapore.

Page1 / 9

L1_-_Introduction_4 - Lecture Overview CS1010E: Programming...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online