Question: 1. Write a program to output the SIGNED range of numbers for 8 bits. Show the numbers in both hex and decimal formatted as such

1. Write a program to output the SIGNED range of numbers for 8 bits. Show the numbers in both hex and decimal formatted as such below: ( You may use Python or C/C++) Additionally, print the 16 most negative numbers for 32 bits and the 16 most positive 32 bit numbers. There is no input. You run the program, it outputs a list. A partial list is shown below. The point of the assignment is for YOU to see the two's complement hexadecimal representation of positive and negative numbers. Turn in a soft copy of your source code and your output. Ox80000000 -2,147,483,648 0x80000001 -2,147,483,647 OxFFFFFF80 -128 OxFFFFFF81 -127 OxFFFFFFFF -1 Ox0000000000 Ox000000001 1 Ox0000007E 126 Ox0000007F 127 Ox7FFFFFFE 2,147,483,646 Ox7FFFFFFF 2,147,483,647
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
