Department of Computer Engineering 2140101 Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY.

Slides:



Advertisements
Similar presentations
Calera High School Dawn Bone
Advertisements

Introduction to Computer Hardware and Software. Definition of a Computer “A computer is an electronic device, operating under the control of instructions.
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Introduction to Computer Systems
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
COMPUTER SYSTEM COMPONENTS ACTIVITY
Introduction to Computers Essential Understanding of Computers and Computer Operations.
Chapter 2: Hardware Basics Section I: Preparing to Use Technology.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
Information Technology Ms. Abeer Helwa. Computer Generations First Generation (Vacuum Tubes) -They relied on the machine language to perform operations.
 What is a Computer What is a Computer  Functions of Computer Functions of Computer  Input Device of a Computer Input Device of a Computer  Output.
BLOCK DIAGRAM OF COMPUTER
Computer Systems I’m ONLY a machine! Standard Grade Revision.
Computer Basics An overview of computer hardware ICT Tools: Computer Basics.
Computer Hardware and Software Jinchang Wang. Hardware vs. Software Hardware is something tangible. Computer hardware includes electronic circuitry and.
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Introduction to Computers
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
2.0 Computer System.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
The 4 functions of a computer are 1.Input 2.Output 3.Storage 4.Processing.
Computer Hardware Introduction. Computer Hardware Introduction The basic form of a computer is this: PROCESSING MEMORY INPUTOUTPUT But let’s look inside.
Computer Hardware Information Technology Week 5 and 6
Intro to Computers Computer Apps 1.
The Four Parts of a Computer. Definition of a Computer A computer is an electronic device used to process data, converting the data into information that.
An overview of Computer System
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Computers Are Your Future Chapter 1 Slide 1 Introduction to the Computers & Internet Chapter 1 Concepts of Information Technology IT.
Hardware Components Stuff you can touch and feel Input devices Keyboard, mouse, digital camera, mic Output devices Monitor (screen), printer, projector,
Parts of the Computer System
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
© 2006 Pearson Education Chapter 1: Computer Systems.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Kaaba Technosolutions Pvt Ltd1 Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components.
Business Technology Applications Computer Basics Vocab.
The Computer System CS 103: Computers and Application Software.
Exploring Windows and Essential Computing Concepts - Getting Started 1 Getting Started Essential Computing Concepts.
1 Objectives Discuss reasons for taking this course on computers Outline the scope of this course Define the computer Differentiate between hardware and.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Computer Components. ● Many people believe that knowing how to use a computer is one of the basic skills needed to succeed in the workplace. ● In order.
Introduction to Computers. What is a computer? An electronic device, operating under the control of instructions stored in its own memory unit, that can.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
COMPUTER HARDWARE & SOFTWARE INTRODUCTION TO LIBRARY & INFORMATION SCIENCES (5501) WORKSHOP SPRING 2013 By: Huma Malik Librarian, Preston University, Islamabad.
Computer Architecture and Number Systems
Java Programming: From the Ground Up
Chapter 1: An Overview of Computers and Programming Languages
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Introduction to Computer Architecture
Introduction to Computers
Introduction to Computers
Introduction to Computing Lecture # 1
PARTS OF THE COMPUTER squires productions.
Computer Electronic device Accepts data - input
PARTS OF THE COMPUTER.
Computer Basics Hardware and Software.
Introduction to Computers
Computer Basics Hardware and Software.
Logical Computer System
Computer Electronic device Accepts data - input
4. Computer system.
Presentation transcript:

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Introduction to Computer Systems

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Objectives Students should: Be familiar with computer components and understand their main functionalities. Be able to conceptually explain how to solve problems using computers.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Computers A machine capable of automatically processing data according to instruction lists given. Computer

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Data Processing Arithmetic Operations Logical Comparison Transmitting Info. Receiving Info. Storing Info. and etc ……

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Benefits work fast. work consistently. remember a lot of stuffs. are loyal. work hard. Computers

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY But… Computers DO NOT THINK!!. Computers work as instructed. Right on, sir! Programs are needed!

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Many Forms of Computers Desktop ComputerNotebook ComputerTablet Embedded Computer PDA Game Console

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY What Computers Do InputOutputMemory Processor data

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Computer Components Hardware: Electronic devices and mechanical parts. Software: Instructions Information or messages that do not directly control computer hardware are considered “Data”.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Hardware 3 groups according to functionalities: Central Processing Unit (CPU) Memory Input/Output (I/O)

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY CPU The “brain” of a computer. responsible for execute given instructions. arithmetic & logical processing control other hardware Intel  Pentium  M, Intel  Core TM Solo, Intel  Core TM Duo, Intel  Core TM 2 Duo, AMD Athlon TM 64, AMD Opteron TM, Sun UltraSPARC, PowerPC etc.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Memory store data and program. 2 types: –Main memory Temporary storage (e.g. current program) Faster More expensive –Secondary storage Store data Slower Cheaper

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Memory Main Memory: RAM Secondary Storage: – Floppy disks – Hard Disk Drives – Compact Disc (CD) such as CD-ROM, CD-R, CD-RW, etc. – Digital Video Disc (DVD) such as DVD-ROM, DVD-R, DVD+R, DVD-RW, etc. – flash memory devices

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY I/O Input devices take data into computer systems. –Keyboard, mouse, joystick etc. Output devices provide data to outside of the systems. –Monitor, printer etc. Some devices act as both. –Touch-screen monitor, etc. Devices that transmit data are also considered I/O.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Data of Many Forms mechanical output sound input/output

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Software a set of instructions that used for controlling computer hardware. Hardware System software Application software User

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Applications vs. System SWs Application software is a program that helps user in accomplishing specific tasks productively. – word processors – spreadsheet – games – instant messenger – etc.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Applications

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Applications vs. System SWs System software is a program that is not directly intended to help accomplishing the user’s task but supports other application software. – operating systems – system tools (e.g. antivirus, archiving tools, disk defragmenter) – software development tools (e.g. compiler, debugger, integrated development environment suite).

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Binary Code Programs and data are represented using “ binary code ”  String of binary digits For example: Each binary digit = one bit eight bits = one byte The simplest building block of a computer is a switch.  ‘on’ / ‘off’ state

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Binary  Decimal Conversion     2 0 = =9 n2n2n n2n2n :: :: :: :: ::

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Decimal  Binary Conversion n2n2n n2n2n :: :: :: :: :: = =1      2 0 =

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Units of Measure PrefixPower of twoValue kilo (K)2 10 1,024 mega (M)2 20 1,048,576 giga (G)2 30 1,073,741,824 tera (T)2 40 1,099,511,627,776 E.g.: The capacity 1 gigabyte (Gb) equals to 1,073,741,824 bytes

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Problem Solving using Comp. Problem Defining Analysis Design Implementation Testing

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Problem Solving using Comp. Problem Defining Analysis Design Implementation Testing Understand what to be solved.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Problem Solving using Comp. Problem Defining Analysis Design Implementation Testing Determine inputs, outputs, and relevant factors.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Problem Solving using Comp. Problem Defining Analysis Design Implementation Testing Provide detailed process from inputs to outputs.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Problem Solving using Comp. Problem Defining Analysis Design Implementation Testing Write code.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Problem Solving using Comp. Problem Defining Analysis Design Implementation Testing Make sure the program deliver correct result. Fix “ bugs”.

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Example Problem defining: Find the amount of electrical current flowing through a resistant of R ohm when the circuit is driven a power source of 220 volts. V volts R I

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Example Analysis: R is input by the user via keyboard. The voltage is fixed at 220 volts. The resulting current I will be shown on screen. Design: The current can be calculated from I = V / R

Department of Computer Engineering Computer Programming for International Engineers I NTERNATIONAL S CHOOL OF E NGINEERING C HULALONGKORN U NIVERSITY Example Implementation: Write the code. Testing: