Professional Documents
Culture Documents
UNIT 4
COMPUTERS
DR. MAY THU KYAW
Contents
01 Machine and Computational
Models
02 Hardware
03 Logic
04 Software
05 Programming Languages
Machine and Computational Models
Embedded fixed firmly into another object.
CONTENTS A computer is a machine that takes some kind of input from its surroundings,
processes the input according to given rules, and provides some kind of output.
Desktop
Keyboard provides input and the screen provides output
Computer
Sample Answer for Activity 1
1) a. Inputs could include keyboard, mouse, scanner, microphone, camera, interactive whiteboard. Outputs
could include screen, printer, speakers, headphones, interactive whiteboard, projector.
b. Inputs could include sensors (temperature, water level, weight of load, door), touch screen controls,
switches. Outputs could include motor, pump, door lock, heater, detergent mixer.
2) Computing devices that a central heating installer might use could include tablet, exhaust temperature
probe, portable printer, fault-finding equipment, mobile phone, satnav.
3) Categories could include manual input devices, automated input devices, visual output, audio output, actuators,
switches, sensors, input/output.
Computation Model
Computational models
describe how algorithms are executed by a machine, eg, by
processing data using inputs and outputs. There are different
models.
Sequential Model
Instruction in an algorithm step by step, in order, from start to finish.
Multi-Agent
- Separate tasks or algorithms are processed by different system
(agents) to perform a particular function.
17. Hardware
Function of Hardware Component
CPU, main memory, secondary storage, input and output
devices
Components
RAM ROM
Cloud
Storing data in the cloud
von Neumann Architecture
A computer in which the processing instructions are stored in memory with the data is called a stored- program
computer or a von Neumann architecture.
When a computer is turned on, the CPU fetches an instruction from the
memory, carries out the instruction it receives, and then fetches the
next, and so on. This sequence is called the fetch-decode-execute cycle
and it carries on until the power is turned off.
Registers
Fetch-decode-execute cycle
Input and Output Devices
- Input devices such as keyboards, mice and light sensors provide the computer with data it can process.
- Output devices such as monitors, printers and speakers are used by the computer to communicate the results of the
processing.
Hardware Components of a
Computer System
RAM and ROM
Cache Memory
Virtual Memory
CPU
RAM and ROM
RAM
- temporary store that the CPU uses for data and instructions (programs).
- Typically measured in gigabytes (GB).
- Volatile, contents are lost when the power is turned off.
ROM
- Read-only memory
- Non-volatile memory to store any programs that must run when the computer is first turned on.
- Programs permanently stored in ROM are known as firmware.
Firmware
- Programs are small and carry out specific tasks, such as initializing the hardware components and starting
the operating system when a computer is switched on.
- BIOS
- UEFI (unified extensible firmware interface)
Circuit board of 1980 computer Raspberry Pi
Cache Memory