1(a)
DEC in hex to its decimal
(DEC)16 = ( )10
= D*162 + E*161 + C*160
= 13*256 + 14*16 + 12*1
= 3328 + 224 +12
= (3564)10
b)
(DEC)16 to BCD
(DEC)16 = (3564)10
(3564)10 to BCD
3= 0011
5 = 0101
6 = 0110
4= 0100
BCD = 0011 0101 0110 0100
2(a)
1001 0111 0101 0010 BCD to octal
= 1001 =9, 0111=7, 0101=5, 0010 =2 from BCD to decimal =(9752)10
= (9752)10 to octal
remainders
8|9752
8|1219 0
8|152 3
8|19 0
8|2 3
|0 2
taking remainders in reverse
=(23030)8
b)
(7643)8 to hex
7 = 111
6=110
4=100
3= 011
three bits for octal number
= 111 110 100 011
taking 4 bits to denote hexadecimal number
= 1111 1010 0011
= (FA3) in hexadecimal
=(FA3)16
Computer science digital logics Convert the following as specified DEC in hex to its decimal DEC...
Question (15 pts.) Convert the decimal numbers from 0 to 32 to BCD, Hexadecimal, Octal, and Binary, using the minimum number of bits or digits, and without using calculators Fill your results in the table below. BCD Hex Oct |
1. Perform the following conversions: a. Convert 97 (decimal) to binary and to hex b. Convert $1C4 (hexadecimal) to binary and to decimal c. Convert 01101001 (binary) to hex and to decimal
2. Convert the following numbers from binary to decimal. a. 1100012 = b. 11100112 = 3. Convert the following numbers from decimal to binary. EET 1131 Unit 1 Practice sheet -2 a. 6610 = b. 9210 = 4. Convert the following numbers from binary to hexadecimal. a. 1101010012 = b. 11110112= 5. Convert the following numbers from hexadecimal to binary. a. 6C116= b. 83F16 = 6. Convert the following numbers from hexadecimal to decimal. a. 1A2F16 = b. 83F16 =...
ord Paragrapth Styles 1 Perform the following conversions Convert 51 (decimal) to binary and to hex a b. Convert 0xDI (hexadecimal) to binary and to decimal c. Convert Ob11001001 (binary) to hex and to decimal 2. Find the 2's complement of the following 4 bit numbers a 1101 b 0101 3. Perform the following 4 bit unsigned operations. For each, indicate the 4-bet result and the carry bit, and indicate if the answer is correct or not a. 5+8 b....
Homework 1: Q1: Convert the following binary number to decimal. • 11001100100.00011 Q2: Convert the following decimal number to binary. • 1365.1234 Q3: Convert the following both to octal and hexadecimal. • (10110100000101.1011)2 (16001.567)10 (directly convert to octal and hexadecimal without converting to binary) Q4: Convert the following hexadecimal number to decimal, octal, and base 4. . ABCD.EF Q5: Convert (375, 765)10 to base 7. Q6: Convert (12310)4 to base 5. Q7: Convert (35421)6 to decimal. Q8: Convert (1991)10 first...
Convert the following strings into their ASCII hex representation. Don't use 0x or h with the hex values. The hex for "1+z" is 31 2B 7A Computer Complete Convert the following ASCII hex representations into their string. The hex 31 2B 7A is the string 1+z 4D 65 6D 6F 72 79 43 6F 6D 70 6C 65 74 65
(10pts) Convert the following decimal numbers to binary, octal and hexadecimal numbers a. 27 b. 650 vert the following binary numbers to decimal, octal and numbers a. 1101 b. 10101.11 (10pts) Convert the following octal numbers to decimal, binary and hexadecimal numbers (10pts) Convert the following hexadecimal numbers to decimal, binary and octal numbers a. 4F b. 3D65E
Hi, I need help writing a program that reads in data (hex, octal or decimal values) from an input file and outputs the values in to another base form (hex, octal,decimal) one line at a time depending on the formatting characters provided by the input file. I am posting the code requirements below and an example of what theinput file will look like and what should be output by the program. I only need the one .cpp program file. Thanks...
[Using Python] Write a program to convert a hexadecimal number to its decimal value. (Reminder: hexadecimal numbers are 0 through 9, A,B,C,D,E,F. hex(A) = 10, hex(F) = 15). example outputs: 1. `Enter a hex number: f` `The decimal value for hex number f is 15` 2. `Enter a hex number: g` `Incorrect hex number` 3. `Enter a hex number: 091c` `The decimal value for hex number 091c is 2332` 4. `Enter a hex number: 091g` `Incorrect hex number` Hints: you...
Please show work for each a-f
2. Convert the following decimal numbers to IEEE-754 hex values. While you can use the online tool to check your answers, you must show how each calculations is done by hand. a) -2 b) 0 c) +16 d) +200 e) -50 f) -5888