MarzleyTech Learn

Home / Learn / Computer & IT basics / What is a computer? Hardware, software and how it works

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.

StageWhat happens
InputThe barcode scanner reads each item; the cashier types the quantity
ProcessThe computer looks up prices, adds them, applies VAT
OutputThe screen shows the total; the printer prints a receipt
StorageThe sale is saved for stock and accounting

Hardware and software

HardwareSoftware
The physical parts you can touchPrograms: instructions that tell hardware what to do
Keyboard, CPU, screen, printer, hard diskWindows, 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

TypeExamplesUsed for
SupercomputersWeather forecasting centresHuge scientific calculations
MainframesLarge banks, KRA, airlinesMillions of transactions
ServersMachines hosting websites, M-Pesa systemsServing many users over a network
Personal computersDesktops, laptopsWork, study
Mobile devicesPhones, tabletsCommunication, apps
Embedded computersATMs, smart TVs, cars, washing machinesOne 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

GenerationTechnologyExample
1st (1940s–50s)Vacuum tubesENIAC: filled a room
2nd (1950s–60s)TransistorsSmaller, cheaper
3rd (1960s–70s)Integrated circuits (chips)Minicomputers
4th (1970s–now)MicroprocessorsPersonal computers, phones
5th (now/future)AI and parallel processingVoice 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

ComponentWhat it doesEveryday comparison
CPU (processor)Carries out instructions and calculationsThe brain or the cook in a kitchen
RAM (memory)Holds what you're working on right now; cleared when power goes offThe kitchen counter: more space, more dishes at once
Storage (SSD/HDD)Keeps files and programs permanentlyThe store or fridge
MotherboardConnects all the partsThe kitchen floor and wiring
Power supply / batteryProvides electricityThe gas or power
GPU (graphics)Draws images, video and games; helps with AIA specialist for presentation
Network card / Wi-FiConnects to the internet and other devicesThe delivery door
Ports (USB, HDMI, audio)Connect external devicesDoors 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 advertMeaningIs it good?
Core i5, 12th genMid-range processor; the generation number matters as much as i3/i5/i7Good for office work, programming, light design
8 GB RAMMemory for running programsMinimum comfortable today; 16 GB for design, video or heavy development
512 GB SSDFast storageSSD is much faster than HDD; 256 GB fills quickly
15.6" Full HDScreen size and resolution (1920 × 1080)Standard
Windows 11Operating systemCheck 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

InputOutputBoth (input and output)
Keyboard, mouse, touchpadMonitor, projectorTouchscreen
Microphone, webcamSpeakers, headphonesHeadset with mic
Scanner, barcode readerPrinter, plotterMultifunction printer (scan + print)
Fingerprint reader, card readerNetwork 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, devices

When 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.

DataHow it's stored
The number 5101 in binary
The letter A01000001 (code 65 in ASCII/Unicode)
A photoMillions of pixels, each a number for red, green and blue
MusicThousands 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

BenefitsChallenges
Faster, more accurate workJob 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 workHealth: eye strain, posture, screen addiction
Better healthcare and agriculture informationE-waste from old devices
Communication with family anywherePrivacy 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

  1. Find the specifications of a computer or phone you use (processor, RAM, storage, OS) and write them down.
  2. List five input, five output and two storage devices you've used this week.
  3. Describe the IPO cycle for withdrawing cash from an ATM.
  4. 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

  1. What does IPO stand for in the IPO cycle? (write it as three words)

    Show answer

    input process output

  2. Is Windows system software or application software?

    Show answer

    system software

  3. Is a keyboard an input or output device?

    Show answer

    input

  4. What are the physical parts of a computer called?

    Show answer

    hardware

  5. What do we call raw facts before they are processed?

    Show answer

    data

  6. Which component holds the work you're doing now and is cleared when power goes off?

    Show answer

    RAM

  7. What is the process of starting a computer and loading the operating system called?

    Show answer

    booting

  8. Is a touchscreen an input device, an output device, or both?

    Show answer

    both

  9. What number system do computers use to store data?

    Show answer

    binary

Lesson 1 of 13 in Computer & IT basics · Printable course notes