Either submit the source code files on Ecampus under the "Submit Homework" menu option, or demo the programs to the instructor during lab.

1. Use a tool for designing and simulating logic gates such as Logisim to create a working 4-bit half adder.

2. Using C++, write a program that converts a decimal number from 0-255 to binary and hexadecimal.  Code the algorithm yourself - do not use external libraries that provide the conversions automatically.  Add leading zeroes so the answer is one byte.

Example output
This program converts an integer to binary and hex.

Enter an integer: 205
Binary: 11001101
Hex:    CD

Enter an integer: 14
Binary: 00001110
Hex:    0E