UltraViolet_TheoCompSci_Theos= Theo Computer Science

UltraViolet_TheoCompSci_LogicGates_0= 

[Granny left normal]

This is an or gate.

[Granny left normal]

It only turns on if atleast one put is pressed.

[Granny left normal]

Once you've pressed your buttons, touch the coin to see the output.

[Granny left normal]

Unforunately, you'll need to pause and try if you want to try another input.

UltraViolet_TheoCompSci_LogicGates_1=

[Granny left normal]

And gate.

[Granny left normal]

It only turns on if both buttons are pressed.

UltraViolet_TheoCompSci_LogicGates_2=

[Granny left normal]

Not gate.

[Granny left normal]

It only turn on if the button isn't pressed.

UltraViolet_TheoCompSci_LogicGates_3=

[Granny left normal]

Nor gate.

[Granny left normal]

It only turns on if no buttons are pressed.

UltraViolet_TheoCompSci_LogicGates_4=

[Granny left normal]

Nand gate.

[Granny left normal]

It turns on as long as both buttons aren't pressed.

UltraViolet_TheoCompSci_LogicGates_5=

[Granny left normal]

Xor gate.

[Granny left normal]

Turns on when either button is pressed but not both.

UltraViolet_TheoCompSci_Adder_0= 

[Granny left normal]

This is a fuller adder. 

[Granny left normal]

Before I explain it here is a quick lesson on binary.

[Granny left normal]

Take the number 1001, for example. 

[Granny left normal]

The right most digit is the first digit of the number and the left most the last.

[Granny left normal]

To convert a binary number to our number system simply assign the numbers as follows.

[Granny left normal]

The first digit stands in for 1. 

[Granny left normal]

Each digit you go over stands in for double the previous.

[Granny left normal]

So the second digit is 2, the third is 4, and the fourth is 8.

[Granny left normal]

Then take the digits with a one and add their stand-ins together.

[Granny left normal]

So for 1001, you get 8 + 1 = 9. 

[Granny left normal]

If you had 0110 instead, you would have 4 + 2 = 6.

[Granny left normal]

In other words, 1001 is binary for 9 and 0110 is binary for 6.

[Granny left normal]

Now a full adder on its own can three one digit numbers and give a two digit number. 

[Granny left normal]

So it could do 1 + 0 + 1 = 10 (binary), for example.

UltraViolet_TheoCompSci_Adder_1= 

[Granny left normal]

This is a 4-bit adder. It can add two 4-bit numbers and return a 5-bit number.

[Granny left normal]

A bit just means a piece of information that is either on or off (0 or 1). So think 4-bit number = 4 digit number. 

[Granny left normal]

This adder is made by chaining together 4 full adders.

[Granny left normal]

You'll see four pairs of buttons ahead of you.

[Granny left normal] 

The right button of each pair is a digit of number A. 

[Granny left normal]

And the left button is a digit of number B. 

[Granny left normal]

Since this is binary, the first digit of A and B are in the right most pair. 

[Granny left normal]

And the last digit of A and B are in the last digit is in the left most pair. 

[Granny left normal]

Try inputing 8 + 8 by pressing the two buttons in front of you and touching the coin.

[Granny left normal]

In binary this would be 1000 + 1000 = 10000. 

UltraViolet_TheoCompSci_Multipler= 

[Granny left normal]

This is a 2-bit multipler. 

[Granny left normal]

It takes in a pair of two bit numbers A and B. 

[Granny left normal]

For this one, the first pair of buttons is number A and the second pair of buttons is number B instead. 

[Granny left normal]
	
Give it a try! 


