CS302 ASSIGNMENT 1 SOLUTION 2021

CS302 ASSIGNMENT 1 SOLUTION 2021, cs302 assignment 1 solution SPRING 2021 solution

CS302 Assignment 1 solution  spring 2021

 

Question no 1

Perform the following arithmetic operations on given data, you can use indirect conversion or repeated division methods only. Convert the result into Caveman Number system.

Solution:

     5      -4602031 Reminder
     5         920406     1
     5           184081     1
     5      36816   1
     5      7363    1
     5       1472    3
     5        294    2
     5          58    4
     5           11    3
            2    1

 

Convert this base 5 number to Caveman Number System

Question No.2

Convert   into the Grey Code.

Solution:

Convert the hexadecimal number  to binary by replacing the each hexadecimal symbol with appropriate four bits binary number.

Step 1:

Hexa Number    FE45EA
Binary number111111100100010111101010

 

Step 2:

Binary

Number

111111100100010111101010
Gray Code100010010110011110011111

 

So, the Grey Code is = 10001001011001111001111

Question No.2 (Part B)

  • Find the equivalence Excesss-7 code for the number

Solution

Convert octal number to Excess 7

Octal Number     7     6     3    7    2
Adding 8      8     8     8    8     8
We get      15     14     11    15     10
Convert into binary each bit     1111    1110    1011  1111     1010

 

Equivalent Excess-7 code for the number is equal to (11111110101111111010)

Note: For More Opportunities Follow our Facebook Group, Twitter, LinkedIn, & Telegram Group.

Scholarships 2021-2022

Leave a Comment