L1 - Introduction - CS1010E: Programming Methodology...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: CS1010E: Programming Methodology Introduction In the beginning….. [ CS1010E AY1112S1 Lecture 1 ] Lecture Overview Computers and Computing Fundamentals Programming Languages Problem Solving Writing Algorithms in pseudo code 2 [ CS1010E AY1112S1 Lecture 1 ] Computers as Information Processors (1/2) Computer = Hardware + Software . Hardware : physical components for computation/processing; should be simple, fast, reliable. Software : set of instructions to perform tasks to specifications; should be flexible, user-friendly, sophisticated. Programs are thus software. [ CS1010E AY1112S1 Lecture 1 ] 3 Computers as Information Processors (2/2) Computer are Information Processors 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 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. Computer Processor Memory Input Output 5 [ CS1010E AY1112S1 Lecture 1 ] Computer: Hardware Components Keyboard and mouse (input) Monitor and speaker (output) Contains processor, memory, buses, etc. 6 [ CS1010E AY1112S1 Lecture 1 ] Software Related terms: 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 Software is a written program that directs the operation of computer 7 [ CS1010E AY1112S1 Lecture 1 ] Software (1/4) Program Sequence of instruction that tells a computer what to do Execution Performing the instruction sequence Programming language Language for writing instructions to a computer Major flavors Machine language or object code Assembly language High-level [ CS1010E AY1112S1 Lecture 1 ] 8 Software (2/4) Program Sequence of instruction that tells a computer what to do Execution Performing the instruction sequence Programming language Language for writing instructions to a computer Major flavors Machine language or object code Assembly language High-level Program to which computer can respond directly. Each instruction is a binary code that corresponds to a native instruction. Example: 0001001101101110 [ CS1010E AY1112S1 Lecture 1 ] 9 Software (3/4) Program Sequence of instruction that tells a computer what to do Execution Performing the instruction sequence Programming language Language for writing instructions to a computer Major flavors Machine language or object code Assembly language High-level Symbolic language for coding machine language instructions....
View Full Document

Page1 / 34

L1 - Introduction - CS1010E: Programming Methodology...

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

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