A photo, a song and a text message all end up as long rows of 0s and 1s inside a computer. This chapter shows how. You count in binary and hexadecimal, add binary numbers and see why a register can overflow. You store negative numbers with two's complement, and turn text, sound and pictures into binary. Then you measure storage in bytes, kibibytes and mebibytes, work out the size of a file, and make files smaller with lossy and lossless compression. It covers the matching units of Cambridge IGCSE Computer Science.
Send a photo to a friend and it crosses many cables and machines in a fraction of a second. How does it arrive whole, in the right order, and unread by anyone else? This chapter shows how data is cut into packets and sent along wires, how the receiver finds errors with parity, checksums, check digits and echo checks, and how encryption keeps the data secret. It covers topic 2 of Cambridge IGCSE Computer Science, and the Python programs let you try each method on real bits.
Press a key, and a letter appears on the screen a moment later. In between, the processor fetched and ran thousands of instructions, the screen redrew its pixels and the file was saved to a drive. This chapter opens the box. You follow one instruction through the processor, meet the devices that take data in and put results out, and see where data is kept and how a computer joins a network. It covers the Hardware section of Cambridge IGCSE Computer Science, for learners aged 14 to 16.
Press the power button and a computer starts up by itself. Open a word processor and it saves your file without you knowing where the file goes on the disk. Software does all of this. This chapter shows the two kinds of software, what the operating system does for every program, and how an interrupt makes the processor stop and deal with a key press or an error. Then it looks at the languages programmers write in, and at the compilers, interpreters, assemblers and editors that turn their code into something a processor can run. It covers units 4.1 and 4.2 of Cambridge IGCSE Computer Science.
You type a web address, press Enter, and a page appears a moment later. What happened in between? This chapter follows a request from the browser to a domain name server and a web server and back, and looks at the cookies that a website leaves behind. Then it explains digital money and the blockchain that keeps its records safe. Last, it looks at the ways attackers try to steal or damage data, and at the defences that stop them. It covers the internet and its uses in Cambridge IGCSE Computer Science.
A street light comes on as the sky gets dark, and nobody presses a switch. A robot arm on a factory line picks up the same part thousands of times a day. A program suggests the next song you may like. Each one is a computer system that senses, decides and acts on its own. This chapter explains how sensors, microprocessors and actuators work together, what makes a machine a robot, and how artificial intelligence reasons with rules and learns from data. You weigh the advantages and disadvantages of each in real settings. It covers topic 6 of Cambridge IGCSE Computer Science.
Before anyone writes a program, someone has to plan it. What must it do? What are its parts? What steps solve each part? This chapter shows how a programmer plans, writes down and checks an algorithm. You break a problem into smaller parts, draw flowcharts and structure diagrams, write pseudocode, follow an algorithm step by step in a trace table, choose test data, and find and fix errors. Then you learn the standard methods that every programmer uses: totals, counts, the largest and smallest values, averages, linear search, bubble sort and checks on input data. It covers unit 7 of Cambridge IGCSE Computer Science, Algorithm design and problem-solving, and it builds on the Python books of the site.
A program that adds up a bill, checks a password or saves a high score uses only a few building blocks. You may already know them in Python. In the written exam you show the same ideas in pseudocode, a careful way of writing a program that every examiner reads the same way. This chapter teaches that pseudocode line by line, beside the Python you can run: variables and data types, selection, loops, procedures and functions, strings, arrays and files. You also practise the exam habits: tracing a program by hand, finding and correcting errors, and writing a full answer to a long scenario question. It covers units 8.1 to 8.3 of Cambridge IGCSE Computer Science.
A school keeps a list of every student, a library keeps a list of every book, and a shop keeps a list of everything it sells. Each list is a table in a database. In this chapter you design a table: you choose its fields, a data type for each field, a primary key and the validation the data needs. Then you write SQL scripts that pick out records, sort them, count them and add them up, and you work out exactly what a script will output. Every query runs in Python on the page, so you can check each answer yourself.
A lift door closes only when nobody stands in the doorway and a button is pressed. A car beeps when a door is open or a seat belt is loose. Each rule is a small piece of logic, and a computer makes these decisions with logic gates that work on 0 and 1. You meet the six gates, draw their symbols, and complete truth tables. Then you build circuits of up to three inputs from a problem, an expression or a table, and turn each one into the others. It covers topic 10 of Cambridge IGCSE Computer Science.