Problem based on conversion of numbers


Question 1: Number Systems

Please answer the following questions, showing all your working out and intermediate steps.

a. Convert the last four digits of your RMIT student number to binary, octal, and hexadecimal. For example, if your student number is "s1234567", then convert 456710 to binary, octal, and hexadecimal.

b. Convert the last four digits of your RMIT student number to base 13, where 1010 = A13, 1110 = B13, 1210 = C13.

c. Consider a base 26 number system wherein the letters of the alphabet represent the digits. That is, A26 = 010, B26 = 110, C26 = 210, ... Z26 = 2510.

Use the first three letters of your given name, and the first three letters of your surname, as numbers in the base 26 system. Add these two base 26 numbers together to obtain the sum (in base 26). Show all your working out and intermediate steps.

Note: If one of these has less than three letters, repeat the last letter, e.g. LI become LII.

Question 2: Binary Addition and Subtraction

Please answer the following questions, showing all your working out and intermediate steps. For this question, use the last two digits of your student number. (For example, if your student number is "s1234567", then A=7 and B=6) If either of these digits is a "0", use 9 instead.

a. Convert the decimal numbers A and B to 4-bit binary numbers. Show how to add together these two 4-bit binary numbers and state whether the answer is valid to 4-bit arithmetic.

b. Convert the decimal numbers A and B to 5-bit binary numbers. Using two's complement representation, show

(i) How to subtract the two 5-bit binary numbers (A-B);

(ii) How to translate the binary result back to decimal.

Question 3: Bitwise Operations

The bitwise operators AND, OR, and XOR allow for bits to be reset (to 0), set (to 1), and inverted (from 0 to 1, and from 1 to 0). Bit masks are strings of bits that allow for a single bitwise operation on particular bits. Commonly a bit string is 8 bits long (referred to as a byte).

Conventionally, bit strings are indexed from 0 staring with the rightmost digit.

Let A = xxxx xxxx2, where each x is a unique bit (0 or 1).

Byte A

x

x

x

x

x

x

x

x

Bit position

7

6

5

4

3

2

1

0

Find the appropriate bitmask(s) M and bitwise operator(s) for ALL byte A for the following cases, showing all your working out and intermediate steps:

a. Reset the 2 bits on each side and make sure that only these 4 bits are reset in the byte.

b. Toggle the values of the middle 4 bits (the opposite of what it currently is), and set the 2 bits on each side.

Question 4: Logic Circuits and Truth Tables

2486_Logic Circuits.png

For each of the above circuits:

a. Write down the equivalent logic expression (simplification is NOT required).

b. Write a truth table that shows the inputs (A, B, C) and the outputs of each gate up to and including the final output (O). Showing all your working out and intermediate steps (the output of each gate) in the truth table.

c. Compare the final output columns in these two truth tables. Do these two expressions give the same output?

Question 5: SECDED code

An even-parity SECDED encoded character has been retrieved, with the hexadecimal value of BE616. Please answer the following questions, showing all your working out and intermediate steps.

a. Was there an error? Explain your answer.

b. If there was an error, either correct it (reporting the corrected ASCII character) or explain why it could not be corrected.

Question 6: Advanced Question

You need to attempt either 6.1 or 6.2 to be eligible for an HD for this assignment, NOT BOTH.

Question 6.1 - Half-precision Floating-point Format

Do some research and find out how real (floating point) numbers are represented in Binary.

a. Devise your own 16-bit representation for floating point numbers, and explain what the various bits are used for. Explain in detail,

(i) How many bits are allocated to the mantissa and the exponent, respectively?

(ii) What defines the range and the precision (or accuracy) of the numbers stored in floating point notation?

b. If your student number is "s1234567", then

A = 7 and B = 6;

x = A+B ÷ 10 = 7+6 ÷ 10 = 7.6

y = B ÷ (A×10) = 6 ÷ (7 × 10) = 0.0857 (rounded to 4 decimal places)

If either of these digits is a "0", use 9 instead.

If both of these digits are the same, use B = A-1.

Show in detail:

(i) How x and y would be represented in binary using your 16-bit representation;

(ii) The steps needed to add together the two numbers x and y in binary;

(iii) The steps needed to convert the binary result obtained to decimal.

(iv) Did you lose precision/accuracy through addition? Discuss what is causing this "loss of precision" error.

c. When adding up a large number of floating point numbers at very different magnitudes, in what order should they be added together to get the most accurate result? Explain why with an example.

Question 6.2 - Logic Simplification using Karnaugh Maps and Boolean Algebra

Do some research and find out how a Karnauph map is used for reducing logic functions into minimal Boolean expressions.

a. Show in detail, how to use the K-map to simplify the logic expression of circuit (1) in Question 4.

b. Show in detail, how to use Boolean Algebra to simplify the logic expression of circuit (1) in Question 4.

c. Compare the above two simplification methods and discuss which is better: Boolean algebra or K-map?

d. What are the limitations of Karnaugh Maps? Explain with an example.

All the tutors associated with our Introduction to Computer Systems Assignment Help service are always by your side to help you out from all your academic worries and woes.

Tags: Introduction to Computer Systems Assignment Help, Introduction to Computer Systems Homework Help, Introduction to Computer Systems Coursework, Introduction to Computer Systems Solved Assignments 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Problem based on conversion of numbers
Reference No:- TGS03054210

Expected delivery within 24 Hours