We want to build an adder to simultaneously add three
multi-digit binary numbers. Design a single bit of that adder. It
has three inputs for that digit, x, y, and z, plus two carry
inputs, u and v (since you may have a carry of 0, 1, or 2). There
are three outputs, a sum, s, and two carries, f, and g. Show a
truth table and find the minimum sum of products expressions for
the three outputs.
I need...
(i) Design an 8-bit ripple adder which can add together two
8-bit numbers, inside a hierarchical block. Explain your design.
Name your block with your student number: eg “123456 ripple adder”.
(ii) Test your circuit in block form, showing four example
additions with manual calculations to show they are correct. [
Question1: How many of the 5-digit numbers that can be
written with the numbers 1, 2, 3, 4 contain both numbers 1 and
2?
question2: 3 married couples shown as a1a2, b1b2, c1c2 want to sit
in a row. How many different ways can these married couples sit in
a row, without a husband and a wife from the same couple coming
together?
Design a simple calculator program using C++ which is able
to:
1. ADD two decimal numbers
2. MULTIPLY two decimal numbers.
The following features must be incorporated in your
program.
1. Must have an interface for the user to be able to either select
the ADD option or MULTIPLY option or
to EXIT the program.
NOTE: If the user makes a wrong selection, a display must be shown
to inform the user and the user
must be given a choice...
a) How many 3-digit numbers are there?
b) How many 3-digit numbers can you make with all three digits
different?
c) How many of the numbers is part b) are odd?
Convert a list of decimal numbers into their binary and
hexadecimal equivalents
Add the elements of each of these lists to generate a total
sum
Print the lists, and the total sum of each value
C++ contains some built-in functions (such as itoa and std::hex)
which make this assignment trivial. You may NOT use these in your
programs. You code must perform the conversion through your own
algorithm.
The input values are:
5
9
24
2
39
83
60
8...
How many 4 digit numbers can be formed using only the numbers 3
2 7 6 5 4 9 if:
a) there are no repeats allowed?
b) the number is odd and no repeats allowed?
c) the number is greater than 4000 and no repeats are
allowed?
d) the number is greater than 4000 and repeats are allowed?
The standard method of representing negative numbers in the
binary system is with 2's complement notation. What are the
advantages and disadvantages of using this method to represent
negative numbers?
(a) Convert the decimal numbers, 70 and -26 to binary in the
signed 2’s complement system. Make sure there are enough digits in
the results to be able to perform arithmetic operations with these
two numbers.
(b) Perform in the signed 2’s complement system, (+70) +
(-26)
(c) Perform in the signed 2’s complement system, (-70) -
(-26)
(d) Perform in the signed 2’s complement system, (+70) +
(+26)