Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A structure diagram for a home weather station has the top box "Weather station". Below it are three sub-systems: "Read sensors", "Process readings" and "Show results".
How many boxes does the diagram have in all? How many boxes are on the lowest level?
Every computer system is made of sub-systems, which are made of further sub-systems. Decompose a problem into its inputs, processes, outputs and storage. Abstraction keeps only the details that matter. A structure diagram shows the system at the top and its parts on each level below.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Top level. box.
Step 2. Sub-systems. boxes.
Step 3. Lowest level. boxes.
Step 4. In all. boxes.
Answer: boxes in all, on the lowest level.
What if? If "Read wind speed" were split again into "Read the sensor" and "Change to kilometres per hour", the diagram would gain boxes and a fourth level.
Log in to join the discussion.
Loading…