Thursday, 11 September 2014

Decimal to any base conversion & Hexa to any base conversion (Class on 11-09-14 for CSE-A &B)


Decimal to any base (Radix) conversion:
1.      Decimal to binary number conversion                         * * * * * * * * * * * * * * * * * *


Take the remainders from bottom to top,
The result of 5710 is =(111001)2

Ex:2 Convert 0.7510to binary
            Multiply the given fraction by 2.
Keep the integer in the product as it is and multiply the new fraction in the product by 2. Continue this process & read the integers in the products from the top to bottom.
             
                 Given fraction                    0.75

            Multiply 0.75 by 2                  1.50
            Multiply 0.50 by 2                  1.00
Reducing the integers from top to bottom (0.75)10=(0.11)2

Ex (3): Convert (105.15)10 to binary.
Sol:      Conversion of integer 105

Remainder from bottom to Top = 1101001   

This particular fraction can never be expressed exactly in binary. This process may be terminated after few steps.
                        Therefore (105.15)10= (1101001.001001)2

Ex (4): Convert (13)10 to an equivalent base-2 number.


Ex (5): Convert (0.65625)10 to an equivalent base-2 number.


1.      Decimal to Octal number conversion                         * * * * * * * * * * * * * * * * * * *

  Ex (1): (574)10  

                                            Thus  (574)10  = (1076)8
Ex (2): (247)10  


Ex (3): Convert (0.6875)10 into Octal number.

Ex (4): Convert (3287.5100098)10  into Octal number.


Fractional Part 0.5100098

1.      Decimal to Hexadecimal number conversion                         * * * * * * * * * * * * * * *
Ex (1):    (95.5)10
Ex (2):    (675.625)10


Hexa decimal to any base (Radix) conversion:
1.      Hexadecimal to binary number conversion                                * * * * * * * * * * * * *



1.      Hexadecimal to Octal number conversion                                * * * * * * * * * * * * *

Ex 1:convert (A72E)16 to octal number
                    A      7       2       E
   
     1010  0111 0010 1110

  = 001 010 011 100 101 110
        1     2     3    4     5    6

   = (123456)8

Ex 2: Convert (0.BF85)16 to octal number
            0.1011111110000101
           
            0.101|111|111|000|010|100
           
           0.   5    7     7    0      2    4

Thus (0.BF85)16=(0.577024)8

Ex 3: Convert B9F.AE16 to octal
Given hex number is              B        9        F       .    A           E

Convert hex digit to binary  1011  1001   1111   .  1010     1110

Groups of three bits are                   101 110 011 111. 101 011 100

Convert each 3 bit group to octal      5     6      3     7   .   5      3      4
           
The result is (5637.534)8

Ex 4: (2AB)16 -------(  )8

             

Ex 5: (42FD)16--------(   )8
                
          =   4        2         F        D
            0100   0010  1111  1101
            
          = 000|100|001|011|111|101
            
              0      4     1    3      7    5

Thus (42FD)16=(41375)8


2.      Hexadecimal to decimal number conversion                                * * * * * * * * * * * * *

Ex 1: convert 5C716 to decimal
            =(5x162)+(12x161)+(7x160)
            =1280+192+7             
            =(1479)10
Ex 2: convert A0FP.0EB16 to decimal
            =(10x163)+(0+162)+(15x161)+(9x160).(0x16-1)+(14x16-2)+(11x16-3)
            =(40960+0+240+9)+(0+0.0546+0.0026)
            =(41209.0572)10
Ex 3: convert AB6 to decimal
            =10x162+11x161+6x160
             =(2742)10
Ex 4: convert 2EB7 to decimal
            =2x163+14x162+11x161+7x160            
            =(11959)10
Ex 5: convert A08F.EA to decimal
            =(10x163+0x162+8x161+15x160 ) + (14x16-1+11x16-2)
            =(41103.0.917)10
Ex 6: (8E47.AB)16------(   )10
            =(8x163+14x162+4x161+7x160 ) + (10x16-1+11x16-2)
            =(36423.667)10

Ex 7: obtain decimal equivalent of hexadecimal(3A.2F)16
            =(3x161+10x160)  + (2x16-1+15x16-2)
            =48+10+(2/16)+(15/162)
            =(58.1836)10





Attendance on 11-09-14 (CSE-A)


Attendance on 11-09-14  (CSE-A)

Absentees: 6, 8, 33, 42 ,43, 45 ,52, 58

Wednesday, 10 September 2014

Attendance on 11-09-2014 (CSE-B)

Attendance on 11-09-2014 (CSE-B)

DLD lab

Total Strength : (561-590)

Absentees: 63, 67, 72, 73, 74, 77, 79, 81, 89

Topic : Introduction to DLD lab


Class:

Absentees: 63, 67, 71, 72, 74, 79, 91, A3, A4, B4, B8, B9 

Topics:  (1).Octal to any base conversion
              (2). Hexa to any base conversion

Class on 10-09-2014 ( CSE -A & B)


 Binary to any base (Radix) conversion:
1.      Binary to decimal number conversion                 * * * * * * * * * * * * * * * * * * * * *
Ex(1): Convert  (11111)2 to decimal
Sol:  The equivalent decimal number is
                  = 1x24 + 1x23 + 1x22 + 1x21 + 1x20
                  = 16+8+4+2+1             = (31)10
Ex(2): Convert decimal equivalent of the number 10101
Sol:  The equivalent decimal number is
=  1x24 + 0x23 + 1x22 + 0x21 + 1x20
                  = 16+4+1
                  = (21)10
Ex(3): Find the decimal equivalent of the binary number (110101)
Sol:  The equivalent decimal number is
                  = 1x25 +1x24 + 0x23 + 1x22 + 0x21 + 1x20
                                    =32+16+4+1
                  = (53)10
Ex(4):  Convert (101101)2 to decimal
Sol:   The equivalent decimal number is
                  =1x25 + 0x24 + 1x23 + 1x22 + 0x21 + 1x20
                                    =32+8+4+1  = (45)10
Ex(5): Determine the decimal number of the following binary number
             (101101.10101)
Sol:      The equivalent Decimal number is
             = 1x25+0x24+1x23+1x22+0x21+1x20. 1x2-1+0x2-2+1x2-3+0x2-4+1x2-5
             = 32 + 8 +4 +1 + (1/2) + (1/8) + (1/32)
             = (45.65625)10
 Ex(6): Convert decimal equivalent of the number (0.1011)
         Sol:      The equivalent Decimal number is
                    = 1x2-1+0x2-2+1x2-3+1x2-3+1x2-4
                    = (1/2) + 0 + (1/8) + (1/16)
                    = (0.6875)10                  
      Ex (7): convert 1101110.011 to decimal
       Sol: 
                =1x26  + 1x2+ 0x24 + 1x23 + 1x22 + 1x21 +0x20 .0x2-1 + 1x2-2 + 1x2-3
                = 64+32+0+8+4+2+0.0+1/4+1/8
                = (110.375)10
       Ex (8): (1001.0101)2  to decimal form
       Sol:  
                       = 1x23 + 0x2+ 0x21 + 1x20 .0x2-1 + 1x2-2 + 0x2-3 + 0x2-4
                      =    8+0+0+1.0+1/4+0+1/16
              = (9.3125)10

2.      Binary to Octal number conversion                          * * * * * * * * * * * * * * * * * * * *

Ex 1 : convert the 1010110 to  octal number
Sol :  given number
           001|  010 | 110
           1          2        6
     Thus (1010110)2 = (126)8
Ex 2: 1110001 to octal number
Sol:   given number
            001|110|001
            1        6       1
     Thus (1110001)2=(161)8
Ex 3: 0001101 to octal number
Sol:   given number
            000|001|101
              0       1      5
       Thus   (0001101)2 = (15)8

3.      Binary to Hexadecimal number conversion                        * * * * * * * * * * * * * * * *
Ex 1:  (101011)2 to hexa decimal
Sol:    0010|1011
               2         B
        Thus (101011)2 =(2B)16
Ex 2: (1101110)2 to hexa decimal
Sol:   0110|1110
            6        E
         Thus (1101110)2 =(6E)16
Ex 3: (1010101)2 to hexa decimal
Sol:   101|0101
            6       5
        Thus (1010101)2=(65)16
Ex 4: (11101010)2 to hexa decimal
Sol:   1110|1010
            E        A
         Thus (11101010)2 = (EA)16

Octal to any base (Radix) conversion:
1.Octal to decimal number conversion                         * * * * * * * * * * * * * * * * * * * * * *
Ex 1) (152)8 to (   )10
Sol:-   =82x1 +81x5 +80x2
          =64+40+2
          =(106)10

Ex 2) (1054)8    to      (       )10
Sol:-    =83x1 + 82x0 + 81x5 + 80x4
         = 512+0+40+4
         =(556)10

Ex 3) convert  (6327.4051)8 in to its equivalent decimal number
Sol:- = (6x83 + 3x82 + 2x81 + 7x80) . (4x8-1 + 0x8-2 + 5x8-3 +1x8-4)
            = (3072+192+16+7) . (4/8+0+5/512+1/4096)
        = (3287.5100098)10

Ex 4) convert  (4057.06)8 in to its equivalent decimal number
Sol:- =4x83 +0x82 + 5x81 + 7x80 . 0x8-1 + 6x 8-2  
         =(2048 + 0 + 40 + 7) . (0 + 0.0937)
         =(2095 .0937)10
1.      Octal to binary number conversion                                 * * * * * * * * * * * * * * * * * *

Ex 1) convert (721)8 to binary number
Sol:- Given number        7       2         1
                                     (111)   (010)   (001)
So, therefore (721)8 = (111010001)2
Ex 2) convert (1263)8 to binary number
Sol:- Given number  
  1             2           6               3
(001)     (010)   (110)        (011)
So, therefore (1263)8=(001010110011)2
Ex 3) convert (425)8 to binary number
Sol:- Given number
    4             2          5
(100)      (010)    (101)
So,  therefore (425)8 =(100010101)2
Ex 4) (71)8 to binary number
Sol:-  Given number  
    7            1
(111)      (001)
So, therefore (71)8=(111001)2

2.    1.      Octal to Hexadecimal number conversion                     * * * * * * * * * * * * * * * * * *

     Ex.1)  (467)8 to (___)16
     
           4         6          7
        Here, we have to write the each digit in 3-bit binary form.

       Now divide the values with 4 digits, from right to left
       
                                                      Thus  (467)8  =  (137)16
      Ex.2)  (761)8 to (___)16


                      7            6              1
               Here, we have to write the each digit in 3-bit binary form.
  
          Now divide the values with 4 digits, from right to left

              


         Ex.3)  (6531)8 to (___)16

                   6         5         3         1
         Here, we have to write the each digit in 3-bit binary form.

          
 Now divide the values with 4 digits, from right to left

       


     
Thus  (6531)8 =  (D59)16







Attendance on 10-09-2014 ( CSE-A & B)

Attendance on 10-09-2014  CSE-A class

Absentees: 2,36,8,25,27,31,42,43,45,48,50,52


Attendance on 10-09-2014  CSE-A  DLD Lab

Attended:  (501-560)
Absentees: 2,36,8,25,27,31,42,43,45,48,50,52 

Attendance on 10-09-2014  CSE-B               

Absentees: 74, 79, 84, 85, 91, A4, B3, B4, B9   

Tuesday, 9 September 2014

Attendance on 09-09-2014 (CSE-A & B)


 Attendance on 09-09-2014 CSE-A

Total Strength: (501-560)

Absentees :  1,5,6,7,8,9,10,11,13,15,19,21,25,26,27,30,31,36,37,40,41,42,43,45,46,48,50,52,55,56,58


 Attendance on 09-09-2014 CSE-B

Total Strength: (561-5C0)

DLD Lab: (591-5C0)

Absentees : 
91,96, A1, A2, A3, A8, A9, B1, B8, B9

Sunday, 7 September 2014

Attendance on 08-09-2014 (CSE-B)

CSE-B Attendance on 08-09-2014

Total Strength = 60 members (561 to 5C0)
Today Absentees = 61,65,74,75,78,79,80,81,82,84,89,92,95,96,A2,A3,A4,A5,A8,A9,B2,B4,B8,B9
Today total absentees = 24 members.

Today topics :
Introduction - Number systems - Number systems Conversion -  Binary to decimal number conversion


Number System Conversion - Binary to any base (Radix) conversion:

NUMBER SYSTEMS CONVERSION:

Binary to any base (Radix) conversion:

1.      Binary to decimal number conversion
2.      Binary to Octal number conversion
3.      Binary to Hexadecimal number conversion

Octal to any base (Radix) conversion:

1.      Octal to decimal number conversion
2.      Octal to binary number conversion
3.      Octal to Hexadecimal number conversion

Decimal to any base (Radix) conversion:

1.      Decimal to binary number conversion
2.      Decimal to Octal number conversion
3.      Decimal to Hexadecimal conversion

Hexa decimal to any base (Radix) conversion:

                       1.   Hexadecimal to binary number conversion
                       2.      Hexadecimal to Octal number conversion
                       3.      Hexadecimal to decimal number conversion


 Binary to any base (Radix) conversion:

1.      Binary to decimal number conversion                 * * * * * * * * * * * * * * * * * * * * *

Ex(1): Convert  (11111)2 to decimal
Sol:  The equivalent decimal number is
                  = 1x24 + 1x23 + 1x22 + 1x21 + 1x20
                  = 16+8+4+2+1             = (31)10
Ex(2): Convert decimal equivalent of the number 10101
Sol:  The equivalent decimal number is
=  1x24 + 0x23 + 1x22 + 0x21 + 1x20
                  = 16+4+1
                  = (21)10
Ex(3): Find the decimal equivalent of the binary number (110101)
Sol:  The equivalent decimal number is
                  = 1x25 +1x24 + 0x23 + 1x22 + 0x21 + 1x20
                                    =32+16+4+1
                  = (53)10
Ex(4):  Convert (101101)2 to decimal
Sol:   The equivalent decimal number is
                  =1x25 + 0x24 + 1x23 + 1x22 + 0x21 + 1x20
                                    =32+8+4+1  = (45)10
Ex(5): Determine the decimal number of the following binary number
             (101101.10101)
Sol:      The equivalent Decimal number is
             = 1x25+0x24+1x23+1x22+0x21+1x20. 1x2-1+0x2-2+1x2-3+0x2-4+1x2-5
             = 32 + 8 +4 +1 + (1/2) + (1/8) + (1/32)
             = (45.65625)10
 Ex(6): Convert decimal equivalent of the number (0.1011)
         Sol:      The equivalent Decimal number is
                    = 1x2-1+0x2-2+1x2-3+1x2-3+1x2-4
                    = (1/2) + 0 + (1/8) + (1/16)
                    = (0.6875)10                  
      Ex (7): convert 1101110.011 to decimal
       Sol: 
                =1x26  + 1x2+ 0x24 + 1x23 + 1x22 + 1x21 +0x20 .0x2-1 + 1x2-2 + 1x2-3
                = 64+32+0+8+4+2+0.0+1/4+1/8
                = (110.375)10
       Ex (8): (1001.0101)2  to decimal form
       Sol:  
                       = 1x23 + 0x2+ 0x21 + 1x20 .0x2-1 + 1x2-2 + 0x2-3 + 0x2-4
                      =    8+0+0+1.0+1/4+0+1/16
              = (9.3125)10