﻿ ICS 212: Program Structure by William McDaniel Albritton

# Assignment Instructions

• For questions 1-2 and 5-12, show each step of your calculations.
• For questions 3 and 4, use the hexadecimal, decimal, and binary chart in the slides.
• For questions 13-20, use an ASCII chart.

1. Convert the unsigned 8-bit binary number to decimal: 1011 0101
2. Convert the decimal number to 8-bit unsigned binary: 35
3. Convert the hexadecimal number to 16-bit unsigned binary (use the chart in the slides): 0x4A2B
4. Convert the unsigned 16-bit binary number to hexadecimal (use the chart in the slides): 1011 0010 0111 0100
5. Convert the decimal number to hexadecimal: 95
6. Convert the hexadecimal number to decimal: 0x13F
7. Convert the signed 8-bit binary number to decimal: 1001 1001
8. Convert the decimal number to signed 8-bit binary: -35
9. Convert the unsigned 8-bit hexadecimal to unsigned 8-bit binary: 0x80
10. Convert the decimal number to signed 8-bit binary: 127
11. Convert the decimal number to signed 8-bit binary: -100
12. Convert the signed 8-bit binary number to decimal: 1010 1010
13. Convert the hexadecimal number to the corresponding ASCII character: 0x41
14. Convert the ASCII character to the corresponding hexadecimal number: 'a'
15. Convert the hexadecimal number to the corresponding ASCII character: 0x30
16. Convert the ASCII character to the corresponding hexadecimal number: '9'
17. Convert the binary number to the corresponding ASCII character: 0100 0001
18. Convert the ASCII character to the corresponding binary number: 'a'
19. Convert the decimal number to the corresponding ASCII character: 48
20. Convert the ASCII character to the corresponding decimal number: '9'