When a school computer says “Hello, Sam”, which parts actually make it happen?
You type your name on a school computer and it replies, ‘Hello, Sam’. You can point to the keyboard and the screen, but can you point to the instruction that makes the greeting appear?
Here’s the program that greets you by name. The first line waits while you type your name and press Enter, then stores what you typed. The second line joins ‘Hello, ’ to your name and displays the greeting.
Watch what happens when you type Sam. The keyboard sends your input. The processor carries out instructions that use your name to make a greeting. The display shows the result. The keyboard, processor and display are physical parts of the computer. We call those parts hardware.
The greeting is on the screen. You can see both the greeting and the screen itself. Which option is a physical component of the computer? Pick one.
Software means the programs that run on a computer system. Your greeting program is software: it gives instructions to read a name and show a greeting. When you run it, the processor is the physical part that carries out instructions.
A teacher saves the greeting program on a USB drive. Classify the drive first. It’s a physical storage device, so it’s hardware. Now classify the saved program. It contains the instructions for reading the name and showing the greeting, so it’s software.
The school copies the greeting program from the USB drive to a laptop’s solid-state drive. How would you classify the solid-state drive and the copied program? Pick the option that gets both right.
A common mistake is to think saving a program makes it hardware. That mixes up the storage device with what it holds. The saved program is still software. If you delete that copy, the physical drive is still there.
If an exam asks you to explain how hardware and software work together to display a greeting, make the link clear. The program provides instructions to show the greeting. It needs the processor to carry out instructions and the display to show you the result.