--:-- --
โ†“ Scroll for more

Unit 1.4

Functions of a Computer

IT 231: IT and Application

Learning Objectives

By the end of this chapter, you will be able to:

  • โœ… Explain the four primary functions of a computer.
  • โœ… Describe the IPOS cycle and how the functions interconnect.
  • โœ… Identify examples of input, output, and storage devices.
  • โœ… Differentiate between soft copy and hard copy output.
  • โœ… Distinguish between primary and secondary storage, and volatile vs. non-volatile memory.

The Four Functions of a Computer

Every computer, from a smartphone to a supercomputer, performs exactly four fundamental functions.

1. Input

Accepting raw data from the user or environment.

2. Processing

Transforming raw data into meaningful information.

3. Output

Presenting the processed result to the user.

4. Storage

Retaining data and information for future use.

Together, these form the IPOS Cycle โ€” the foundation of all computing.

The IPOS Cycle

The four functions work together in a continuous cycle:

๐Ÿ“ฅ Input โ†’ โš™๏ธ Process โ†’ ๐Ÿ“ค Output โ†• ๐Ÿ’พ Storage

Real-world example: You type a search query (Input) โ†’ The search engine finds results (Process) โ†’ Results appear on screen (Output) โ†’ Your history is saved (Storage).

Interactive: Arrange the IPOS Cycle

Click each function below to place it in order (1โ†’4). Then check your answer.

๐Ÿ“ค Output
โš™๏ธ Process
๐Ÿ’พ Storage
๐Ÿ“ฅ Input
1
โ†’
2
โ†’
3
โ†•
4

The Input Function

Input is any raw data or instruction entered into the computer from the outside world.

Types of Input

Data Input

  • Text (keyboard)
  • Numbers (keyboard, numpad)
  • Images (scanner, camera)
  • Audio (microphone)

Command Input

  • Mouse clicks
  • Touch gestures
  • Voice commands
  • Sensor signals

Input Devices

Input devices convert real-world signals into digital data the CPU can process.

Manual Input

  • Keyboard
  • Mouse / Trackpad
  • Touchscreen
  • Joystick / Gamepad

Direct Input

  • Scanner
  • Digital Camera
  • Barcode Reader
  • Biometric Scanner

Sensor Input

  • Microphone
  • Temperature Sensor
  • GPS Receiver
  • Webcam

Data Conversion to Binary

Computers only understand binary (0s and 1s). All input โ€” text, images, audio โ€” must be converted into binary form before it can be processed.

  • The letter 'A' becomes 01000001 (ASCII code 65 in binary)
  • The number 5 becomes 00000101
  • Colors in images are represented as binary values for red, green, and blue components
  • The conversion happens automatically โ€” input devices and the OS handle this for you

Interactive: Classify the Device

Classify each device: is it primarily an Input, Output, or Storage device?

Device 1 of 8
โŒจ๏ธ Keyboard
Score: 0/0

The Processing Function

Processing is the transformation of raw input data into meaningful output. This is performed by the Central Processing Unit (CPU).

The CPU's Role

  • The CPU is the "brain" of the computer โ€” it executes instructions.
  • It performs billions of operations per second (measured in GHz).
  • It fetches instructions from memory, decodes them, executes them, and stores results.

Inside the CPU: ALU and Control Unit

Arithmetic Logic Unit (ALU)

  • Performs all arithmetic operations: +, โˆ’, ร—, รท
  • Performs all logical operations: AND, OR, NOT, comparisons
  • The "calculator" inside the CPU

Control Unit (CU)

  • Directs the flow of data between the CPU, memory, and I/O devices
  • Fetches and decodes instructions from memory
  • The "manager" inside the CPU

Together, the ALU and CU execute the Fetch-Decode-Execute cycle millions of times per second.

Processing Speed Concepts

Clock Speed

Measured in GHz. A 3 GHz CPU can execute 3 billion cycles per second.

Cores

Modern CPUs have multiple cores โ€” each can process tasks independently, enabling parallel processing.

Cache

A small, very fast memory inside the CPU that stores frequently used data to avoid waiting for RAM.

Interactive: The ALU in Action

The ALU performs arithmetic and logic operations on binary numbers. Try it below:

Operand A
00001100
+
Operand B
00000111
19
= 00010011
Select an operation โ€” the ALU executes it instantly using binary logic gates.

The Output Function

Output is the processed result delivered to the user or another system, transforming data inside the computer into something a human can understand.

Soft Copy

Electronic output โ€” exists only in digital form.

  • Text on screen
  • Video / Audio playback
  • PDF on screen

Hard Copy

Physical output โ€” exists in the real world.

  • Printed documents
  • 3D printed objects
  • Blueprints / Technical drawings

Output Devices

Visual Output

  • Monitor / Display
  • Projector
  • LED Display
  • VR Headset

Audio Output

  • Speakers
  • Headphones / Earbuds
  • Piezo Buzzer

Printed Output

  • Inkjet Printer
  • Laser Printer
  • 3D Printer
  • Plotter

Interactive: Soft Copy or Hard Copy?

Is the output a Soft Copy (digital/electronic) or Hard Copy (physical/tangible)?

Item 1 of 8
๐Ÿ“บ Video playing on a monitor
Score: 0/0

The Storage Function

Storage retains data and instructions, both when the computer is running and when it is turned off.

Primary Storage

Directly accessible by the CPU. Also called main memory.

  • RAM (Random Access Memory)
  • ROM (Read-Only Memory)
  • Cache memory

Secondary Storage

Not directly accessible by CPU. Larger capacity, slower speed.

  • Hard Disk Drive (HDD)
  • Solid State Drive (SSD)
  • USB Flash Drive
  • Optical Disc (CD/DVD)

Volatile vs. Non-Volatile Storage

Volatile Memory

Loses data when power is cut.

  • RAM: Working memory โ€” holds programs currently running
  • Cache: CPU ultra-fast scratch pad
  • CPU Registers: Tiny storage cells inside the CPU

Non-Volatile Memory

Retains data without power.

  • HDD / SSD: Long-term file storage
  • ROM: Firmware / BIOS
  • Flash (USB drives, SD cards)
  • Optical (CD, DVD, Blu-ray)

Interactive: Storage Hierarchy Explorer

Click any level to learn about it. Fastest and smallest at the top; slowest and largest at the bottom.

Registers
Cache
RAM
SSD / HDD
External / Optical
Cloud Storage
Click a level above to explore it.

Top = fastest, smallest, most expensive  |  Bottom = slowest, largest, cheapest

The Complete IPOS Cycle

All four functions work together in a continuous, interconnected cycle:

Example: eSewa Digital Payment (Nepal)

  1. Input: You type the recipient's number and payment amount on your phone.
  2. Storage: The app retrieves your account balance from the database.
  3. Processing: The CPU verifies your balance, calculates deductions, and applies the transaction.
  4. Output: A confirmation message is displayed on screen and a notification is sent.
  5. Storage: The updated balances are written back to the database.

Real-World Examples: Data Flow Diagram

How data flows through all four functions:

๐Ÿ“ฅ Input Devices
Keyboard, Mouse, Camera, Scanner
โ†“
โš™๏ธ CPU โ€” ALU + Control Unit
Fetch โ†’ Decode โ†’ Execute
โ†™ to Output โ†• with Storage
๐Ÿ“ค Output Devices
Monitor, Printer, Speakers
๐Ÿ’พ Storage
RAM, HDD, SSD, Cloud

Summary: The Four Functions

  • Input: Accepts raw data from users or the environment through input devices such as keyboard, mouse, and scanner.
  • Processing: The CPU (ALU + Control Unit) transforms input data into information through the Fetch-Decode-Execute cycle.
  • Output: Delivers results as soft copy (screen, audio) or hard copy (printed) through output devices.
  • Storage: Retains data in primary memory (RAM โ€” volatile) or secondary storage (HDD/SSD โ€” non-volatile).

These four functions form the IPOS Cycle โ€” the universal model for every computing task.

Thank You!


Next Up: Unit 1.5 โ€” Computer Classification

Back to Course Home | View Chapter Notes