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.
This program converts an integer to binary and hex.
Enter an integer: 205
Enter an integer: 14