Prove the followings--
  1. 4-bit composite circuit for unsigned integers, taught in the class, gives correct result.
  2. 4-bit composite circuit for signed integers, taught in the class, gives correct result.

Overflow Detection:

How can overflow be detected when--
  1. adding unsigned integers using a 4-bit adder constructed only from full adders?
  2. subtracting unsigned integers using a 4-bit adder circuit constructed using full subtractors?
  3. subtracting unsigned integers using a 4-bit adder circuit constructed from full adders?
  4. performing addition and subtraction of unsigned integers in a 4-bit composite circuit implemented using full adders?
  5. performing addition and subtraction of signed integers in a 4-bit composite circuit implemented using full adders?

logic circuit Design

  1. Design a logic circuit for the division algorithm for signed integers. Assume inputs are 8-bit long, and a register memory can be 16 bit long.

C Programming Question

Suppose you are allowed to use only the <stdio.h> library. You are allowed to perform basic operations only and are not allowed to copy exact values from any external source. Write a C program to print the following:

  1. The largest and smallest values of unsigned int and int variables.
  2. The largest and smallest positive values of a float variable.
  3. The largest and smallest negative values of a float variable.