📘 CodingMarble Learn

Computing Systems: From Apps Down to Logic Gates

A computing system takes input, processes it, gives output and stores data. Hardware is the physical parts; software is the instructions. Systems are built in layers of abstraction: apps on top, the operating system in the middle, hardware at the bottom, and logic gates inside the hardware. Each layer hides its details from the one above. The operating system manages memory, shares CPU time, organises files, controls devices through drivers and keeps the system secure. Logic gates (AND, OR, NOT and others) turn 1s and 0s into decisions. Good devices are designed for usability, and good users troubleshoot systematically: describe, check simple things, change one thing at a time, test, and record.

đŸŽŦ Step-by-step story

  1. A system takes input, processes it, gives output and stores data.
  2. Layers of abstraction: app on OS on hardware, each hiding details.
  3. The operating system manages memory, CPU, files, devices and security.
  4. Inside hardware, logic gates turn 1s and 0s into decisions.
  5. Troubleshoot like a detective: one change at a time.
  6. Try it: pick a gate, flip the inputs, predict the lamp.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is the operating system hardware or software?

Software. It is the main system software that sits between the apps and the hardware.

Why do we need layers at all?

Each layer hides its messy details, so programmers can build apps without knowing about voltages, and hardware can change without breaking apps.

How can on/off switches do maths?

Gates combine 1s and 0s. A few gates together can add two bits; millions together add big numbers and run programs.

How do many apps run at once on one CPU?

The OS gives each app a tiny turn, switching thousands of times a second, so it looks like they all run together.

Is restarting really a fix?

Often yes. A restart clears memory and stuck processes. But it is a first check; if the problem returns, keep troubleshooting.

What makes XOR different from OR?

OR gives 1 when one or both inputs are 1. XOR gives 1 only when the inputs are different, so 1,1 gives 0. Try it in the free-play step.

What is a computing system?

A computing system is any device that follows instructions to work with data: a laptop, phone, washing machine, car or smart watch.

Hardware is the physical parts you can touch. Software is the programs: the step-by-step instructions. Neither is useful without the other.

An embedded system is a small computer inside another device, built to do one job, like the controller in a microwave.

Layers of abstraction

Abstraction means hiding details that you do not need right now, so you can focus on what matters. A car driver uses the steering wheel and pedals without knowing how the engine works.

Computers are built in layers:

  1. User: you, tapping and typing.
  2. Applications (apps): browser, games, word processor.
  3. Operating system: manages everything and gives apps simple ways to use hardware.
  4. Hardware: CPU, memory, storage, input/output devices.
  5. Logic gates and circuits: tiny switches handling 1s and 0s.

Each layer talks only to the next one. An app says "save this file"; it does not need to know how the disk stores bits. This makes systems easier to build, fix and change: you can swap the hardware and the app still works.

Roles of the operating system

The operating system (OS) is the main system software. Examples: Windows, macOS, Linux, Android, iOS. Its jobs:

Logic gates: how hardware decides

Inside the hardware every signal is a bit: 1 (on, high voltage) or 0 (off). A logic gate takes one or two input bits and gives one output bit.

A truth table lists every input and its output. For AND: 0,0 → 0; 0,1 → 0; 1,0 → 0; 1,1 → 1.

Example: a car warning beep = (door open) AND (engine on). Gates are joined into circuits that add numbers, store bits and run the CPU.

Designing usable devices and troubleshooting

Usability

A usable device is easy to learn, quick to use and hard to use wrongly. Designers think about who will use it (children, older people, people with disabilities), make buttons big and clear, give feedback (a beep, a light) and test with real users, then improve the design.

Projects that combine hardware and software

A simple project: a microcontroller board, a sensor (input), a program (process) and an LED or buzzer (output). Example: a plant-watering alarm that beeps when soil is dry. Plan → build → test → improve.

Systematic troubleshooting

  1. Describe the problem exactly: what happens, when, any error message.
  2. Check simple things first: power, cables, Wi-Fi, volume, restart.
  3. Change one thing at a time, so you know what fixed it.
  4. Test after each change.
  5. Record the problem and fix, and ask for help if needed.

Hardware or software? If the fault follows the part (try another keyboard), it is hardware. If it happens in only one app, or after an update, it is likely software.

Try it: trace the layers on your phone

  1. Open the camera app and take a photo. Write the I-P-O-S: input (camera sensor, tap), process (CPU makes the image), output (screen), storage (gallery).
  2. Find your phone's Settings → About. Note the OS name and version: that is the middle layer.
  3. Open Settings → Storage. See how the OS manages files for each app.
  4. In 3D step 6, fill in the full truth table for OR and XOR by flipping A and B. Predict before you tap.

Key formulas and definitions

Worked examples

1. Classify each as input, output or storage for a smart watch: heart-rate sensor, vibration motor, flash memory, touch screen.

Heart-rate sensor: input. Vibration motor: output. Flash memory: storage. Touch screen: both input (touch) and output (display).

2. A security light should switch on when it is dark AND movement is detected. Inputs: dark (1/0), motion (1/0). Which gate, and what is the output for dark = 1, motion = 0?

An AND gate. With dark = 1 and motion = 0, output = 0, so the light stays off.

3. Work out the output of NOT(A OR B) for A = 0, B = 1.

A OR B = 0 OR 1 = 1. NOT 1 = 0. Output = 0.

4. A printer prints nothing from one laptop but works from another. Using systematic troubleshooting, where is the fault likely and what would you check?

The printer hardware works (another laptop can print), so the fault is likely on the first laptop: check the cable or Wi-Fi connection, the selected printer, and the driver (reinstall or update it). Change one thing at a time and test after each.

Common mistakes

Practice quiz

1. Which of these is an output device?
2. Hiding details you do not need so you can focus on the main idea is called:
3. Which is NOT a job of the operating system?
4. An OR gate with inputs 0 and 1 gives:
5. The first step of systematic troubleshooting is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a computing system?

A computing system is hardware plus software working together to take input, process it, give output and store data, from phones to washing machines.

What does abstraction mean in computing?

Abstraction means hiding details that are not needed at a given level, so you can use or build something without knowing how every lower part works.

What are the main roles of an operating system?

Managing memory, sharing CPU time between programs, organising files, controlling devices through drivers, providing a user interface, and keeping the system secure.

Where this is taught

England (GCSE, A level)Year 9Computer science
USA (Common Core, NGSS, AP)Grade 8Computing Systems
USA (Common Core, NGSS, AP)Grade 9Computing Systems
USA (Common Core, NGSS, AP)Grade 11Computing Systems

Learn first

Learn next

Related lessons

All Computer Science lessons