0% found this document useful (0 votes)
8 views

Coding Exercises

The document contains examples of coding exercises that involve converting between decimal, binary, BCD, and ASCII numeric representations. It includes converting numbers to natural, binary coded decimal, and Aiken binary coded decimal formats. It also covers determining ASCII values from binary and converting characters to binary. Additional examples demonstrate converting decimal numbers to two's complement and sign-self value forms with seven bits.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Coding Exercises

The document contains examples of coding exercises that involve converting between decimal, binary, BCD, and ASCII numeric representations. It includes converting numbers to natural, binary coded decimal, and Aiken binary coded decimal formats. It also covers determining ASCII values from binary and converting characters to binary. Additional examples demonstrate converting decimal numbers to two's complement and sign-self value forms with seven bits.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Coding exercises:

Convert numbers to natural (8421) BCD number

23410 =BCD

64110=BCD

39610=BCD

Convert decimal number to 5311 BCD

23410 =BCD

64110=BCD

39610=BCD

Convert decimal number to 2421 BCD (Aiken)

23410 =BCD

64110=BCD

39610=BCD

What ASCII code do the following binary numbers mean:

0011 0011 0101 01002= 16 16=

0111 1000 0011 00002= 16 16 =

0010 0101 0110 10102= 16 16 =

Code ASCII characters into binary


A62 =16 16 16=2

+5/2=16 16 16 16 = 2

HELLO! =16 16 16 16 =2
Convert decimal numbers to two complements number with seven bit

1510 = 2

-1510 = 2

+00000012

2 ==

10010012= =10

1001101102= =10

Sign self-value form

10011112 = 10

00011112= 10

1000002 = 10

0000002 = 10

You might also like