Presentation is loading. Please wait.

Presentation is loading. Please wait.

2 nd Semester 2004 1 Module1 Introduction to Computer and Programming อภิรักษ์ จันทร์สร้าง Aphirak Jansang

Similar presentations


Presentation on theme: "2 nd Semester 2004 1 Module1 Introduction to Computer and Programming อภิรักษ์ จันทร์สร้าง Aphirak Jansang"— Presentation transcript:

1 2 nd Semester 2004 1 Module1 Introduction to Computer and Programming อภิรักษ์ จันทร์สร้าง Aphirak Jansang aphirak.j@ku.ac.th http://www.cpe.ku.ac.th/~aphirak Computer Engineering Department Kasetsart University, Bangkok THAILAND

2 1 st Semester 2005 2 Outline  Introduction to Computer  How to run program?  Programming Languages

3 1 st Semester 2005 3 Do you know? THAILAND  How many computers in THAILAND? *http://www.nso.go.th/eng/indicators/core_e.htm 1998199920002001 2002

4 1 st Semester 2005 4 How can we classify computers?  Personal Computer Desktop Computer Notebook PDA – Personal Digital Assistant  Supercomputer  Mainframe High Computation Power

5 1 st Semester 2005 5 Computer Components  Input Devices  Output Devices  Computing & Processing Unit

6 1 st Semester 2005 6 CPU Main Memory Input Devices HD Secondary Memory Output Devices Computer Components

7 1 st Semester 2005 7 Computer Memory  1.Main Memory  2.Secondary Memory

8 1 st Semester 2005 8 1. Main Memory  Can be devided into 2 Categories RAM (Random Access Memory) ROM (Read Only Memory)  Memory Cell -> Byte -> Bit  1 Byte = 8 bits

9 1 st Semester 2005 9 2. Secondary Memory  Floppy disk  Hard disk  CDROM  DVDROM Etc… 1 Kbyte = 2 10 = 1024 bytes 1 Mbyte = 2 20 = 1,048,576 bytes 1 Gbyte = 2 30 = 1,073,741,824 bytes

10 1 st Semester 2005 10 Main Memory VS Secondary Memory  Main Memory Much faster More expensive Volatile  Secondary Memory Slower Less expensive Permanent

11 1 st Semester 2005 11 Do you know ASIMO? *http://world.honda.com/ASIMO/

12 1 st Semester 2005 12 Outline  Introduction to Computer  How to run program?  Programming Languages  Introduction to Pascal Language

13 1 st Semester 2005 13 How to run program?  After boot Process May be Windows XP (Operating System: OS) has been loaded into Main Memory  User tell OS to load program P1  OS Load program P1 from Secondary Memory into Main Memory  OS run program from Main Memory

14 1 st Semester 2005 14 Outline  Introduction to Computer  How to run program?  Programming Languages

15 1 st Semester 2005 15 Programming Languages  Machine Language  Assembly Language  High-Level Language

16 1 st Semester 2005 16 High-level VS Assembly VS Machine Language  High-level Language SUM := A * 2 + ALPHA/3;  Assembly Language MULL3A, #2, R6 DIVL3#3, ALPHA, R7 ADDL3R6, R7, SUM  Machine Language 00011000011 00011001111 10011000111

17 1 st Semester 2005 17 High-Level Languages  Procedural Language Fortran Cobol Basic C Pascal  Object-Oriented Language C++ Java C# C#  Functional Language Lisp  Logic Language Prolog

18 1 st Semester 2005 18 How to execute program from non-machine language?  Interpretation Method  Translation Method

19 1 st Semester 2005 19 Interpretation Method Process Interpreter (on computer) Output Source Program Input

20 1 st Semester 2005 20 Translation Method Process Translator (on computer) File *.exe Source Program Input

21 1 st Semester 2005 21 Translators  Assembler (assembly)  Compiler (High-level language)

22 1 st Semester 2005 22 Quiz1 What will happen to you when our world have no computers?

23 1 st Semester 2005 23 Summary  Computer Basic  Programming Language Interpreter Method Translator Method


Download ppt "2 nd Semester 2004 1 Module1 Introduction to Computer and Programming อภิรักษ์ จันทร์สร้าง Aphirak Jansang"

Similar presentations


Ads by Google