These are all the gates which we wired on the breadboard
The image above is the wiring for the half adder. The components on the half adder are the AND gate and the XOR gates including the switch ,battery and wires.
The image above shows a full adder that i wired the gates used were the AND gate, XOR gate and the OR gate to combine the carry outputs of two half adders so that it can be combined to make a full adder.
The image above is for the 2 bit adder that i wired and the 2 bit adder also uses the AND gate and OR gate including the XOR gate and the truth table for the 2 bit adder is:
The image above this is the wiring of my transistor to work with a program turn on and off the lights and buzzer. The program used was:
Program:
var input, s3, s4, s5, s6 : int
put " Please input the paralell get buffer"
loop
input := parallelget ()
s3 := (input div 8) mod 2
s4 := (input div 16) mod 2
s5 := (input div 32) mod 2
s6 := (input div 64) mod 2
/* First set */
if (s6 = 0 and s5 = 0 and s4 = 0 and s3 = 0) then
parallelput (0)
elsif (s6 = 0 and s5 = 0 and s4 = 0 and s3 = 1) then
parallelput (1)
elsif (s6 = 0 and s5 = 0 and s4 = 1 and s3 = 0) then
parallelput (2)
elsif (s6 = 0 and s5 = 0 and s4 = 1 and s3 = 1) then
parallelput (3)
elsif (s6 = 0 and s5 = 1 and s4 = 0 and s3 = 0) then
parallelput (4)
elsif (s6 = 0 and s5 = 1 and s4 = 0 and s3 = 1) then
parallelput (5)
elsif (s6 = 0 and s5 = 1 and s4 = 1 and s3 = 0) then
parallelput (6)
elsif (s6 = 0 and s5 = 1 and s4 = 1 and s3 = 1) then
parallelput (7)
/* second set*/
elsif (s6 = 1 and s5 = 0 and s4 = 0 and s3 = 0) then
parallelput (8)
elsif (s6 = 1 and s5 = 0 and s4 = 0 and s3 = 1) then
parallelput (9)
elsif (s6 = 1 and s5 = 0 and s4 = 1 and s3 = 0) then
parallelput (10)
elsif (s6 = 1 and s5 = 0 and s4 = 1 and s3 = 1) then
parallelput (11)
elsif (s6 = 1 and s5 = 1 and s4 = 0 and s3 = 0) then
parallelput (12)
elsif (s6 = 1 and s5 = 1 and s4 = 0 and s3 = 1) then
parallelput (13)
elsif (s6 = 1 and s5 = 1 and s4 = 1 and s3 = 0) then
parallelput (14)
elsif (s6 = 1 and s5 = 1 and s4 = 1 and s3 = 1) then