1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email:...
-
Upload
georgina-rice -
Category
Documents
-
view
220 -
download
1
Transcript of 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email:...
![Page 1: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/1.jpg)
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
![Page 2: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/2.jpg)
21nd Semester 2007
Outline
Introduction to Computer Programming Languages
![Page 3: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/3.jpg)
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”
![Page 4: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/4.jpg)
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)
![Page 5: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/5.jpg)
51nd Semester 2007
Computer Categories
Personal Computer Desktop Computer Notebook PDA – Personal Digital Assistant
Supercomputer Mainframe High Computation Power
![Page 6: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/6.jpg)
61nd Semester 2007
Computer Components
Input Devices Output Devices Computing & Processing Unit
![Page 7: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/7.jpg)
71nd Semester 2007
Input Devices
HD
CPU MainMemory
Secondary Memory (DVD, FDD, HDD)
Computer Components (details)
*CPU= Central Processing Unit
Output Devices
![Page 8: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/8.jpg)
81nd Semester 2007
Computer Components (pictures)
Hard disc CPU
![Page 9: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/9.jpg)
91nd Semester 2007
Computer Memory
1.Main Memory 2.Secondary Memory
![Page 10: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/10.jpg)
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
![Page 11: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/11.jpg)
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
![Page 12: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/12.jpg)
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
![Page 13: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/13.jpg)
131nd Semester 2007
Main Memory VS Secondary Memory
Main MemoryMuch fasterMore
expensiveVolatile
Secondary MemorySlowerLess expensivePermanent
![Page 14: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/14.jpg)
141nd Semester 2007
Outline
Introduction to Computer Programming Languages
![Page 15: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/15.jpg)
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
![Page 16: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/16.jpg)
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
![Page 17: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/17.jpg)
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
![Page 18: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/18.jpg)
181nd Semester 2007
Summary
Basis of Computer Programming Language
![Page 19: 1 nd Semester 2007 1 Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Email: fengtwr@ku.ac.th Create by: Aphirak Jansang Computer.](https://reader035.fdocuments.us/reader035/viewer/2022062408/56649e975503460f94b9ab38/html5/thumbnails/19.jpg)
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