L4 Homework - Computing Systems - Y8
L4 Homework - Computing Systems - Y8
Homework
Task .
The logical variable raining is true when it is raining outside and false otherwise. The
logical variable homework is true when you have finished your homework and false
otherwise.
The expression below determines if you are allowed to play outside:
The table below contains different combinations of the possible values for homework
and raining. For each of these combinations, fill in the table with the missing Boolean
values (i.e. true/false).
false false
false true
true false
true true
The (2)
as well as the (4)
are represented by patterns of (7)
.
Match the numbered gaps with the words in the right-hand column.
(1) Processor
Memory
(2) Data
Program
(3)
Instructions
(4) Operating system
Bits (binary digits)
(5) Switch/Switches
(Boolean) logic operations
(6) (Boolean) logic circuits
(7)
(8)
(9)
(10)
You can use the outputs of this device to build a logic circuit that computes whether or
not a year is a leap year, i.e. a year that has 366 days, instead of 365.
● Any year that can be divided by 400 is a leap year.
Example: 2000 is a leap year.
● Any year that can be divided by 4 but cannot be divided by 100 is a leap year.
Examples: 2016, 2020, and 2024 are leap years.
1900 is not a leap year. It is divisible by 4, but it is also divisible by 100. (Unlike 2000, 1900 is
not also divisible by 400, so the previous rule cannot apply).
This is the logic circuit that performs this computation. In order for it to work, you need to
connect the outputs D4, D100, and D400 from the device to the inputs of the logic circuit.
Resources are updated regularly — the latest version is available at: ncce.io/tcc.
This resource is licensed under the Open Government Licence, version 3. For more information on this
licence, see ncce.io/ogl.