Question: CSE 2 2 1 - Principles of Logic Design - 2 0 2 4 Spring Homework 2 You will use a key to solve the
CSE Principles of Logic Design Spring
Homework
You will use a "key" to solve the questions in this homework. The key is the number formed by
the last two digits of your student id If your key is less than add to itSo for example,
if your student id was your key would be ; if your student id was
your key would be We will assume that the key is while explaining the
questions you should replace it with your own key
So first write down your id and key: Student Id: Key:
p Write your first name in lowercase letters Example: aliIf you have two names, use
only the first one; for Turkish characters use the corresponding English characters: sg
etc. Find the ASCII code for your name; use hexadecimal notation. ali: C Then, do
the same with your name in capital letters. ALI: C
Name lowercase: ASCII Code:
Name CAPITAL: ASCII Code:
key mod If is odd, add to it
Find your dots.moddots if odd, then add dotsdots
Design a selfcomplementing coding system to represent the digits in base numbering system. For
a code system to be "selfcomplementing", the number obtained by complementing each bit of the
original code of a number should be equal to s complement of the original number.
For example, for base numbering system, let's say digit has the code and digit
has the code Then the code for is When we complement each bit, we
obtain and this is the code for is the s complement of
Write down the codes for your digits on the table below. On the right of the table, give a
partial proof that your code is self complementing: Take a digit number in base as an
example, write down its code, then complement this code and show that it is s
complement of the original number.
Example digit number :
Code of :
Complemented Code :
is the code of :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
