Upload
georgina-rice
View
224
Download
1
Embed Size (px)
Citation preview
11nd Semester 2007
Module1Module1Introduction to Introduction to
Computer and ProgrammingComputer and Programming
Thanawin RakthanmanonEmail: [email protected]
Create by: Aphirak JansangComputer Engineering Department
Kasetsart University, Bangkok THAILAND
21nd Semester 2007
Outline
Introduction to Computer Programming Languages
31nd Semester 2007
Definition of Computer
Devices for performing computations at high speeds with great accuracy
A machine that can be programmed to manipulate symbols
Physical components are known as “Hardware”
41nd Semester 2007
Computer Systems
Hardware (HW)Actual physical machines
(equipment) that make up the computer (e.g. monitor, keyboard)
Software (SW) Programs written for a specific
application are often called softwares (e.g. Window XP , Linux, Microsoft word)
51nd Semester 2007
Computer Categories
Personal Computer Desktop Computer Notebook PDA – Personal Digital Assistant
Supercomputer Mainframe High Computation Power
61nd Semester 2007
Computer Components
Input Devices Output Devices Computing & Processing Unit
71nd Semester 2007
Input Devices
HD
CPU MainMemory
Secondary Memory (DVD, FDD, HDD)
Computer Components (details)
*CPU= Central Processing Unit
Output Devices
81nd Semester 2007
Computer Components (pictures)
Hard disc CPU
91nd Semester 2007
Computer Memory
1.Main Memory 2.Secondary Memory
101nd Semester 2007
1. Main Memory
Can be divided into 2 Categories RAM (Random Access Memory) ROM (Read Only Memory)
Memory Cell -> Byte -> bit 1 Byte = 8 bits
111nd Semester 2007
2. Secondary Memory
Floppy disk Hard disk CD-ROM, CD-R, CD-RW DVD-ROM, DVD-R, DVD-RWEtc…
1 Kbyte = 210 = 1024 bytes1 Mbyte = 220 = 1,048,576 bytes
1 Gbyte = 230 = 1,073,741,824 bytes
121nd Semester 2007
Data Representation
Data in computer is represented in “bit” bit = binary digit
0 or 1 Byte = 8 bits 1 byte can represent many kids of data
1 byte = 011000012
the above 1 byte means, “a” or 97 the meaning of 1 byte depends on the program
131nd Semester 2007
Main Memory VS Secondary Memory
Main MemoryMuch fasterMore
expensiveVolatile
Secondary MemorySlowerLess expensivePermanent
141nd Semester 2007
Outline
Introduction to Computer Programming Languages
151nd Semester 2007
Programming Languages
Program A set of instructions for a computer to
follow, written in specific programming language
Types of programming language High-Level Language Assembly Language Machine Language
161nd Semester 2007
High-level VS Assembly VS Machine Language
High-level Language Nearly like human word
SUM := A * 2 + ALPHA/3; Assembly Language
Some key words are understandable MULL3 A, #2, RADDL3 R6, R7, SUM
Machine Language Only “0” and “1”
0001100001100011001111 10011000111
Computer itself understands only Machine language
171nd Semester 2007
High-Level Languages
Procedural Language Fortran Cobol Basic C Pascal
Object-Oriented Language C++ Java C#C#
Functional Language Lisp
Logic Language Prolog
181nd Semester 2007
Summary
Basis of Computer Programming Language
191nd Semester 2007
Tips
Links http://www.cpe.ku.ac.th/~aphirak/ http://
www.cpe.ku.ac.th/~pattara/ http://smart.ku.ac.th/
http://course.ku.ac.th/
How to check MAC address of your PC Click “run” (from start button) “cmd” Type “ipconfig /all”
Physical address : 00-16-E5-xx-xx-xx