Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 360720 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0760 1210824 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0760 1210824 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1462 4109464 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1476 4137048 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1484 4154760 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1484 4171768 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1491 4179504 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1492 4179504 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2010 4803032 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2036 4888264 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2042 4909192 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.2149 5066416 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.2149 5066672 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182

The Half Adder

We can construct a half adder, an essential component of binary arithmetic, which take a two one bit binary numbers – 0's or 1's – add the result and outputs the result as a two bit binary number (CARRY BIT)( SUM BIT) (the SUM is like the units in decimal arithmetic) where the CARRY and SUM BIT's are either 0's or 1's.The SUM BIT is the output of a XOR gate. In binary arithmetic, a 1 is left in the units column as a result of adding 0 and 1 or 1 and 0 and a carry is only produced if both A and B are 1.

The truth table for a half adder is shown below.

A

B

CARRY BIT

SUM BIT

0

0

0

0

1

0

0

1

0

1

0

1

1

1

1

0

 

Add comment

Security code
Refresh