lec01-intro

lec01-intro - CSC 1111 Introduction to Computing using C+...

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

View Full Document Right Arrow Icon
1 CSC 1111 Introduction to Computing using C++ Intro. to Computers and C++ Programming
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Outlines What is a computer? What is programming? Why C++? Programming and Problem Solving First C++ Program
Background image of page 2
3 What is a computer? What are the different kinds of computers? What are the common components among most of the computers? What are the basic components of a computer?
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 CPU Computer Organization Input Unit Output Unit Memory Unit Storage Unit Control Unit Arithmetic Unit Flow of data
Background image of page 4
5 Bits and Bytes Computers understand only 0's and 1's. Data and instructions are all represented as a series of 0's and 1's 1 binary digit = 0 or 1 = 1 bit 1 byte = 8 bits
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 Memory Organization Computer memory is organized into sequence of cells. Size of one cell = 1 byte Each cell has a unique address for identification. Data may occupies multiple cells.
Background image of page 6
7 What is programming? Writing instructions to command the computer to perform some tasks A form of communication Need a language to establish communication ….. …..
Background image of page 7

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

View Full DocumentRight Arrow Icon
8 Machine Language 101010101010 101011111111 111110001011 Made up of 0's and 1's. Difficult to understand Machine dependent
Background image of page 8
9 Natural Language Lack of specific rules Computer do not understand natural languages. Compute the sum of 1 and 2 for me. Please! ?
Background image of page 9

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

View Full DocumentRight Arrow Icon
10 High-level Language Easy for human being to understand Conforms to specific set of rules Need to be translated into the equivalent machine language 011 2 Interpreter or Compiler A = 1 + 2; print A; 10111111 10101011 11010110 10101111 11110101 00101101 10101111 01110101 00111101 11011110 10101100 11100000 10101111
Background image of page 10
11 High Level Languages Different high-level languages were designed to serve different purposes BASIC, Pascal, C, C++, C#, Java, Fortran, Perl, Lisp, Cobol, JavaScript, …
Background image of page 11

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

View Full DocumentRight Arrow Icon
12 History of C and C++ History of C Created by Dennis Ritchie (Bell Laboratories) at around 1970
Background image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.

Page1 / 33

lec01-intro - CSC 1111 Introduction to Computing using C+...

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

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