Could someone help me with these please?
Also, what significance does "signed" vs "unsigned" mean in these
cases below?
Some steps would be very helpful.
Thanks for helping me understand!
Hi, please find the answers below:
When we represent, a number in its decimal form, we generally represent the unsigned form as there is no mention of a positive or negative number. But, in reality, we need to represent signed numbers while working with circuits or hardware, so we need to mention the sign value of the binary. This is called signed form. But we don't have +,- in binary, so we use the MSB(most significant bit). If MSB is 0 it means +ve. If MSB is 1 it means -ve.
1. -35 to signed 8-bit binary:
In 8-bit binary, the most significant bit((MSB) denotes the sign of the number. 0 is for +ve and 1 is for -ve.
binary for 35 is 00100011
covert to 1's complement: 11011100 and add 1 to it: 11011101 which is a 2's compliment. Here the first bit (MSB) which is 1 indicates that the number is a negative number.
2. Unsigned 8-bit hexadecimal to unsigned 8-bit binary: 0x80
0x80 is simply 80 in terms of hexadecimal. To convert hexadecimal to binary we need to get the binary form of each bit in hexadecimal.
So for 0 in hexadecimal, the binary equivalent is 0000
for 8 in hexadecimal, the binary equivalent is 1000
Then, for 0x80 hexadecimal number, it's equivalent unsigned 8-bit binary is 10000000.
3. Convert the decimal number to signed 8-bit binary: 127
The binary representation of decimal value 127 is 01111111. As it is a positive number, no need for any extra modifications.
4. Convert the decimal number to signed 8-bit binary: -100
The binary representation of decimal value 100 is 01100100. Convert the binary value to it's 2's complement form.
Firstly, invert all the bits: 10011011. Add 1 to the last bit: 10011100.
The signed 8-bit representation of -100 is 10011100. The first bit which is 1 represents the number is negative.
5. Convert the signed 8-bit binary number to decimal: 1010 1010
As the given binary starts with 1 it is a negative number. So, first invert all the bits of the binary.
This will result in 01010101. Then, add a 1 to the last bit, which gives 01010110.
Now the decimal equivalent of 01010110 is 86. As it is a negative number, add the sign. This results in -86.
Could someone help me with these please? Also, what significance does "signed" vs "unsigned" mean in...
PLEASE SHOW MATH OF IT ALL Given n bits, how many signed numbers can be represented using the sign-and-magnitude method, the ones’ complement method, and the two’s complement method, respectively? (5 points) Number conversion (2.5 x 22 = 55 points) Convert the following unsigned binary numbers to decimal: 11111 101 Convert the following decimal numbers to binary: 111 35 Convert the following octal numbers to binary: 1111 731 Convert the following unsigned binary numbers to octal: 101010111001 1001 Convert the...
CS 3503-06 Homework 1 Due: 11:59pm, Friday, Jan. 24. Please show the details of your work. Please submit in D2L using the associated link. Problems (total: 100 points) Representation of signed numbers (5 x 4 = 20 points) In an 8-bit system, find out the binary representation for the following numbers using sign-and-magnitude, ones’ complement, and two’s complement, respectively: 55 -47 In a 4-bit system, find out the binary representation for the following numbers using sign-and-magnitude, ones’ complement, and two’s...
Write a program that allows the user to enter an unsigned integer (the maximum value of an unsigned 4-byte int is 232 = 4,294,967,296) and reverses its format (from little to big endian, or vice versa). Print out the user-entered number in hexadecimal and binary, reverse the endianness, and print the reverse in hexadecimal and binary. Integers in most machine architectures are represented in little endian format: the least significant byte is stored in the smallest address; for instance, the...
6 - What decimal number does the bit pattern 0xC0B00000 represent if it is: • [2 pts] A two's complement integer? • [2 pts] An unsigned integer? • [2 pts] A floating point number assuming the IEE 754 single precision format 7 - Perform the following calculations assuming that the values are 8-bit decimal integers stored in two's complement format. Be sure to consider the possibility of overflow. • [2 pts] 10101010 + 00110011 • [2 pts] 10101010 – 00110011...
Could someone help me out with the answering this? Explaining the theory would be very helpful A NumberList is a linked list used to represent the digits of a number. For example 983 is represented as: [ Node(9), Node(8), Node (3) ] Write the pseudocode for an algorithm which performs addition on 2 NumberLists, such that: [ Node (9), Node(8), Node (3) ] + [ Node(1), Node (0), Node (4), Node (3)] = [ Node (2), Node(0), Node(2), Node (6)]...
Hi could someone please help me with these questions. Also, could you write the steps clearly so I understand how you got the answers. Thanks in advance! A road cyclist has a mass of 80 kg. The weight of her bike is-150N. The cyclist is sitting on her bike, stopped at a rec light. What is the combined weight of the bike and the cyclist? 4. 3 athletes are tugging on a ring: #1 pulls with a force of 75...
Hi could someone please help me with these questions. Also, could you write the steps clearly so I understand how you got the answers. Thanks in advance! A road cyclist has a mass of 80 kg. The weight of her bike is-150N. The cyclist is sitting on her bike, stopped at a rec light. What is the combined weight of the bike and the cyclist? 4. 3 athletes are tugging on a ring: #1 pulls with a force of 75...
Hi Guys, Just wondering if someone could help me with the below, specifically detailed so that I can understand in the future. Thanks in advance! he Factor Finder takes a 4 bit binary number entered by the user (representing the values 0 to 15) and tells the user if the number is zero, odd, even or a multiple of 3, 4, or 5 The input and output details are as follows: Digital Inputs: I1: Bit O of the four digit...
Hi could someone please help me with these questions. Also, could you write the steps clearly so I understand how you got the answers. Thanks in advance! FORMULAS W Weight Finding magnitude of diagonal Resultant Finding direction of diagonal resultant mass x g Resultant Square root (opposite? + adjacent) tan (opposite/adjacent) 1. 4 people are having a tug-o-war. The 2 people on the left side pull with forces of 90N and 60N, respectively. The 2 people on the right side...
Hi could someone please help me with questions 2 and 3? Also, could you write the steps clearly so I understand how you got the answers. Thanks in advance! FORMULAS W Weight Finding magnitude of diagonal Resultant Finding direction of diagonal resultant mass x g Resultant Square root (opposite? + adjacent) tan (opposite/adjacent) 1. 4 people are having a tug-o-war. The 2 people on the left side pull with forces of 90N and 60N, respectively. The 2 people on the...