What is a computer? Hardware, software and how it works
A computer is an electronic machine that accepts data, processes it following instructions, stores it and gives results. Your laptop, your phone, an ATM, a supermarket till and a car's engine controller are all computers.
Data vs information
- Data: raw facts.
78, 84, 90, Amina - Information: processed data that means something. "Amina's average is 84, grade A."
The IPO cycle: Input → Process → Output (+ Storage)
INPUT ──► PROCESS ──► OUTPUT
keyboard CPU screen
mouse (+ memory) printer
microphone speakers
▲ │
└─ STORAGE ◄────┘
(hard disk, SSD, flash)Example: paying for groceries at a supermarket till.
| Stage | What happens |
|---|---|
| Input | The barcode scanner reads each item; the cashier types the quantity |
| Process | The computer looks up prices, adds them, applies VAT |
| Output | The screen shows the total; the printer prints a receipt |
| Storage | The sale is saved for stock and accounting |
Hardware and software
| Hardware | Software |
|---|---|
| The physical parts you can touch | Programs: instructions that tell hardware what to do |
| Keyboard, CPU, screen, printer, hard disk | Windows, Android, Word, Chrome, WhatsApp |
Software comes in two main types:
- System software runs the computer: the operating system (Windows, macOS, Linux, Android, iOS), drivers and utilities.
- Application software does tasks for you: word processing (Word), spreadsheets (Excel), browsers (Chrome), accounting (QuickBooks), games.
Types of computers
| Type | Examples | Used for |
|---|---|---|
| Supercomputers | Weather forecasting centres | Huge scientific calculations |
| Mainframes | Large banks, KRA, airlines | Millions of transactions |
| Servers | Machines hosting websites, M-Pesa systems | Serving many users over a network |
| Personal computers | Desktops, laptops | Work, study |
| Mobile devices | Phones, tablets | Communication, apps |
| Embedded computers | ATMs, smart TVs, cars, washing machines | One dedicated job |
Characteristics of computers
- Speed: billions of operations per second.
- Accuracy: correct results if the input and instructions are correct. ("Garbage in, garbage out.")
- Storage: huge amounts of data kept for years.
- Diligence: never tired or bored by repetitive work.
- Versatility: the same machine can type a letter, play music and do accounts.
But computers can't think for themselves: they only follow instructions.
A tiny bit of history
| Generation | Technology | Example |
|---|---|---|
| 1st (1940s–50s) | Vacuum tubes | ENIAC: filled a room |
| 2nd (1950s–60s) | Transistors | Smaller, cheaper |
| 3rd (1960s–70s) | Integrated circuits (chips) | Minicomputers |
| 4th (1970s–now) | Microprocessors | Personal computers, phones |
| 5th (now/future) | AI and parallel processing | Voice assistants, AI tools |
Today's phone is millions of times more powerful than the computers that guided the Apollo moon landing.
Computers in Kenya today
M-Pesa, eCitizen, KRA iTax, hospital records, school management systems, farming apps and online jobs all depend on computers. Basic computer skills are now needed in almost every job, and deeper skills (coding, networking, data) are in high demand.
Why everyone needs to understand computers
Computers are no longer only for offices. A boda boda rider uses a smartphone (a computer) for maps and M-Pesa, a farmer checks prices and weather, a teacher enters marks into a school system, a nurse records patients on a tablet, and a shopkeeper uses a till that's really a small computer. Understanding how computers work helps you choose the right device, use it confidently, fix simple problems, protect your data and learn more advanced skills like programming and networking.
Inside the box: the main components
| Component | What it does | Everyday comparison |
|---|---|---|
| CPU (processor) | Carries out instructions and calculations | The brain or the cook in a kitchen |
| RAM (memory) | Holds what you're working on right now; cleared when power goes off | The kitchen counter: more space, more dishes at once |
| Storage (SSD/HDD) | Keeps files and programs permanently | The store or fridge |
| Motherboard | Connects all the parts | The kitchen floor and wiring |
| Power supply / battery | Provides electricity | The gas or power |
| GPU (graphics) | Draws images, video and games; helps with AI | A specialist for presentation |
| Network card / Wi-Fi | Connects to the internet and other devices | The delivery door |
| Ports (USB, HDMI, audio) | Connect external devices | Doors for accessories |
When people say a computer is "slow", the cause is usually too little RAM, a nearly full or old hard disk (HDD), too many programs starting automatically, or malware, not always the CPU.
Reading a computer advert
Laptop: Intel Core i5 (12th gen), 8 GB RAM, 512 GB SSD, 15.6" Full HD, Windows 11
| Part of the advert | Meaning | Is it good? |
|---|---|---|
| Core i5, 12th gen | Mid-range processor; the generation number matters as much as i3/i5/i7 | Good for office work, programming, light design |
| 8 GB RAM | Memory for running programs | Minimum comfortable today; 16 GB for design, video or heavy development |
| 512 GB SSD | Fast storage | SSD is much faster than HDD; 256 GB fills quickly |
| 15.6" Full HD | Screen size and resolution (1920 × 1080) | Standard |
| Windows 11 | Operating system | Check it's genuine and activated |
When buying second-hand (ex-UK, refurbished), also check battery health, the keyboard, ports, screen for dead pixels and whether the charger is original.
Input and output devices in detail
| Input | Output | Both (input and output) |
|---|---|---|
| Keyboard, mouse, touchpad | Monitor, projector | Touchscreen |
| Microphone, webcam | Speakers, headphones | Headset with mic |
| Scanner, barcode reader | Printer, plotter | Multifunction printer (scan + print) |
| Fingerprint reader, card reader | Network card (sends and receives) | |
| Sensors (temperature, GPS) | External storage (read and write) |
Think about a supermarket till: barcode scanner (input), CPU looks up the price (process), screen and receipt printer (output), sales saved (storage), and the M-Pesa payment confirmation arrives over the network.
Software layers
You (the user)
↓
Application software: Word, Chrome, WhatsApp, games, accounting software
↓
System software: Operating system (Windows, Android), drivers, utilities
↓
Firmware: BIOS/UEFI built into the motherboard; starts the computer
↓
Hardware: CPU, RAM, storage, devicesWhen you press the power button, the firmware checks the hardware (POST), finds the operating system on the storage drive and loads it into RAM. This is called booting.
How a computer represents everything with 0s and 1s
Computers store everything (numbers, text, photos, music) as binary: patterns of 0s and 1s (bits), because electronic switches are either off or on.
| Data | How it's stored |
|---|---|
| The number 5 | 101 in binary |
| The letter A | 01000001 (code 65 in ASCII/Unicode) |
| A photo | Millions of pixels, each a number for red, green and blue |
| Music | Thousands of sound measurements per second |
Eight bits make a byte, enough for one simple character. You'll learn more in the storage units lesson.
Computers and society: benefits and challenges
| Benefits | Challenges |
|---|---|
| Faster, more accurate work | Job changes as tasks are automated |
| Mobile money and online services (eCitizen, KRA iTax) | Cybercrime and fraud |
| Access to learning (online courses, YouTube) | Digital divide: cost of devices and data, rural connectivity |
| Remote and online work | Health: eye strain, posture, screen addiction |
| Better healthcare and agriculture information | E-waste from old devices |
| Communication with family anywhere | Privacy and misuse of personal data |
Dispose of old phones and computers through registered e-waste collectors; they contain materials harmful to soil and water.
Careers that start with computer basics
- Computer operator, data entry clerk, cyber café attendant
- ICT support technician (repair, networks, help desk)
- Web designer and developer, software developer, mobile app developer
- Data analyst, digital marketer, graphic designer
- Online freelancer: transcription, virtual assistance, writing
- Cybersecurity analyst, network administrator, cloud engineer
Practice
- Find the specifications of a computer or phone you use (processor, RAM, storage, OS) and write them down.
- List five input, five output and two storage devices you've used this week.
- Describe the IPO cycle for withdrawing cash from an ATM.
- Compare two laptop adverts and explain which you'd buy for a student learning programming, and why.
Think about it: A shop owner says, "My computer has a 1 TB hard disk, so it must be fast." What would you explain?Show answer
Storage size (1 TB) is how much it can keep, not how fast it works. A large spinning HDD can still be slow; speed depends more on having an SSD, enough RAM (8 GB or more), a reasonably recent processor and a clean system without too many startup programs or malware.
Check yourself
What does IPO stand for in the IPO cycle? (write it as three words)
Show answer
input process output
Is Windows system software or application software?
Show answer
system software
Is a keyboard an input or output device?
Show answer
input
What are the physical parts of a computer called?
Show answer
hardware
What do we call raw facts before they are processed?
Show answer
data
Which component holds the work you're doing now and is cleared when power goes off?
Show answer
RAM
What is the process of starting a computer and loading the operating system called?
Show answer
booting
Is a touchscreen an input device, an output device, or both?
Show answer
both
What number system do computers use to store data?
Show answer
binary