+ All Categories
Home > Documents > Module in Programming2

Module in Programming2

Date post: 04-Apr-2018
Category:
Upload: josephine-santos-escalante
View: 221 times
Download: 0 times
Share this document with a friend

of 25

Transcript
  • 7/31/2019 Module in Programming2

    1/25

  • 7/31/2019 Module in Programming2

    2/25

  • 7/31/2019 Module in Programming2

    3/25

  • 7/31/2019 Module in Programming2

    4/25

  • 7/31/2019 Module in Programming2

    5/25

  • 7/31/2019 Module in Programming2

    6/25

  • 7/31/2019 Module in Programming2

    7/25

  • 7/31/2019 Module in Programming2

    8/25

  • 7/31/2019 Module in Programming2

    9/25

  • 7/31/2019 Module in Programming2

    10/25

  • 7/31/2019 Module in Programming2

    11/25

    First, we count the number of binary digits in the given

    Let there be n numbers.

    Then, we multiply each digit with the 2n-1 ,

    when n is equal to number of position from right side.

    Then, we add each number.

    the resultant is equal to decimal value of that binary number.

  • 7/31/2019 Module in Programming2

    12/25

  • 7/31/2019 Module in Programming2

    13/25

    4. First write the binary digits in each column of the table, after that write also the base (2)

    in three columns, third write 2, 1, and 0 for the exponent, and lastly write for the

    equivalent 4, 2, and 1 also.

    3. In getting the answer of that problem add the equivalent which in the row that lining in

    the two given 1 digit on a column not in given 0 digit in a column like 4+1=5 because 4

    and 1 are lining in column with given 1 digit.

    2. After adding each equivalent that will be the final answer of the problem.

    1. Lastly change the subscript in to 8 and rewrite again the final answer so that is the final

    stage of this problem.

  • 7/31/2019 Module in Programming2

    14/25

  • 7/31/2019 Module in Programming2

    15/25

    1. First write the binary digits in each column of the table, after that write also the base

    (2) in three columns, third write 3, 2, 1, and 0 for the exponent, and lastly write for the

    equivalent 8, 4, 2, and 1 also.

    2. In getting the answer of that problem add the equivalent which in the row that lining

    in the two given 1 digit on a column not in given 0 digit in a column like 8+2+1=11 or Bbecause 8, 2, and 1 are lining in column with given 1 digit.

    3. After adding each equivalent that will be the final answer of the problem.

    4. Lastly change the subscript in to 16 and rewrite again the final answer so that is the

    final stage of this problem.

  • 7/31/2019 Module in Programming2

    16/25

  • 7/31/2019 Module in Programming2

    17/25

    628to _54_10

    4. First apply the octal to binary conversion to the process # 1 for getting the

    answer of the first table.

    3. When finish getting the answer in table 1 or process 1 that answer will be

    the given digit to get the conversion for decimal.

    2. So for converting to decimal multiply the base 2 to the equivalent of each problem and

    the product of those digits will be the answer in the problem, if the digit is lining in the

    digit 0 put 0 for the answer not the product that you multiplied.

    1. Lastly add the answers that you multiplied and when you finished adding that will be

    the final answer of the problem but is not finish if you did not put the answer in the

    right side on given problem.

  • 7/31/2019 Module in Programming2

    18/25

  • 7/31/2019 Module in Programming2

    19/25

    2318to __001000110001_16

    3. First rewrite the given digits to the two column of the table. Then write for

    equivalent the numbers 8, 4, 2, and 1. For the exponent write the numbers 3, 2,

    1, and 0.

    2. Second for getting the answer of that problem, just do it like in converting binary to

    hexadecimal when adding the two given digits in equivalent the answer will get and if there

    is not needed to add that two or more just put that given digit to the answer and to other

    digits put zero (0) because that digits is did not use to add for getting the answer.

    1. Lastly when finished to get the all answer put that in the right side of the given

    digits so that the final answer will change the subscript to 2.

  • 7/31/2019 Module in Programming2

    20/25

  • 7/31/2019 Module in Programming2

    21/25

    3216to 100000102

    1.First rewrite the given digits to the two column of the table. Then

    write for equivalent the numbers 8, 4, 2, and 1. For the exponent

    write the numbers 3, 2, 1, and 0.

    2. Second for getting the answer of that problem, just do it like in converting binary to

    hexadecimal when adding the two given digits in equivalent the answer will get and if there

    is not needed to add that two or more just put that given digit to the answer and to other

    digits put zero (0) because that digits is did not use to add for getting the answer.

    3. After multiplying those number in weight factor and on their exponent

    it`s time to add the answer and it will get the final answer.

    4. Last copy the final answer and put in the right side of given digits and change the

    subscript to 10.

  • 7/31/2019 Module in Programming2

    22/25

  • 7/31/2019 Module in Programming2

    23/25

    78916to _3611__8

    4. First add the following equivalents which in column are digits that will use to get

    the answer.

    3. After adding those digits put number 1 in the answer box of the table because if you put number it

    says that number in equivalent is used to add and get the sum of a given digit, then if that digit in

    equivalent did not use to add for getting the sum put number 0 to the answer box on the table.

    2. Then after getting the final answer on the first table, so it`s time to go other

    conversion to get the octal create another table for the other problem.

    1. After creating another table the given will be the final answer in other table and to

    get the answer in last table add also the equivalent that in the column had a digit 1

    lining on those digit on equivalent row.

  • 7/31/2019 Module in Programming2

    24/25

  • 7/31/2019 Module in Programming2

    25/25


Recommended