1 nd Semester Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Create by: Aphirak Jansang Computer Engineering Department Kasetsart University, Bangkok THAILAND
1 nd Semester Outline Introduction to Computer Programming Languages
1 nd Semester 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”
1 nd Semester 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)
1 nd Semester Computer Categories Personal Computer Desktop Computer Notebook PDA – Personal Digital Assistant Supercomputer Mainframe High Computation Power
1 nd Semester Computer Components Input Devices Output Devices Computing & Processing Unit
1 nd Semester Input Devices HD CPU Main Memory Secondary Memory (DVD, FDD, HDD) Computer Components (details) *CPU= Central Processing Unit Output Devices
1 nd Semester Computer Components (pictures) Hard discCPU
1 nd Semester Computer Memory 1.Main Memory 2.Secondary Memory
1 nd Semester Main Memory Can be divided into 2 Categories RAM (Random Access Memory) ROM (Read Only Memory) Memory Cell -> Byte -> bit 1 Byte = 8 bits
1 nd Semester Secondary Memory Floppy disk Hard disk CD-ROM, CD-R, CD-RW DVD-ROM, DVD-R, DVD-RW Etc… 1 Kbyte = 2 10 = 1024 bytes 1 Mbyte = 2 20 = 1,048,576 bytes 1 Gbyte = 2 30 = 1,073,741,824 bytes
1 nd Semester 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 = the above 1 byte means, “a” or 97 the meaning of 1 byte depends on the program
1 nd Semester Main Memory VS Secondary Memory Main Memory Much faster More expensive Volatile Secondary Memory Slower Less expensive Permanent
1 nd Semester Outline Introduction to Computer Programming Languages
1 nd Semester 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
1 nd Semester 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 MULL3A, #2, R ADDL3R6, R7, SUM Machine Language Only “0” and “1” Computer itself understands only Machine language
1 nd Semester High-Level Languages Procedural Language Fortran Cobol Basic C Pascal Object-Oriented Language C++ Java C# C# Functional Language Lisp Logic Language Prolog
1 nd Semester Summary Basis of Computer Programming Language
1 nd Semester Tips Links How to check MAC address of your PC Click “run” (from start button) “ cmd ” Type “ ipconfig /all ” Physical address : E5-xx-xx-xx