Question

In: Computer Science

1a. What is the largest positive and negative number that you could represent with 7 bits...

1a. What is the largest positive and negative number that you could represent with 7 bits using signed magnitude? Show your work.

1c. Solve the following decimal notation equation using 8-bit binary numbers and 2’s complement notation: 69 - 7 =

Show your work

Solutions

Expert Solution

1a. What is the largest positive and negative number that you could represent with 7 bits using signed magnitude? Show your work.

largest positive number that you could represent with 7 bits 
= (2^6) - 1
= 64 - 1
= 63

largest negative number that you could represent with 7 bits
= -1

smallest negative number that you could represent with 7 bits
= -(2^6)
= -64

1c. Solve the following decimal notation equation using 8-bit binary numbers and 2’s complement notation: 69 - 7 =

The leftmost bit of the result is called carry and it is ignored.
So the answer is 00111110

PLEASE LIKE IT RAISE YOUR THUMBS UP
IF YOU ARE HAVING ANY DOUBT FEEL FREE TO ASK IN COMMENT SECTION


Related Solutions

1a. What is the largest negative number that you could represent with 7 bits using signed...
1a. What is the largest negative number that you could represent with 7 bits using signed magnitude? Show your work. 1b. What is the largest positive number that you could represent with 7 bits using 2’s complement? Show your work. 1c. Add the following two binary numbers 10110111 + 1011 = :Show your work. 1d. Solve the following decimal notation equation using 8-bit binary numbers and 2’s complement notation: 69 - 7 = :Show your work
Suppose you have a list containing k integer numbers. Each number could be positive, negative, or...
Suppose you have a list containing k integer numbers. Each number could be positive, negative, or zero. Write pseudocode for a program that first asks the user for each of the numbers. After that, it should determine and display the number from the list that is nearest to the positive number five (5). Notes: 1. Try working this out for k = 4 and k = 5. See if you can find an algorithmic pattern that can be extended for...
Suppose you have a list containing exactly three integer numbers. Each number could be positive, negative,...
Suppose you have a list containing exactly three integer numbers. Each number could be positive, negative, or zero. Write a C program that first asks the user for each of the numbers. After that, it should determine and display the number from the list that is nearest to the positive number five (5). Examples: If the numbers are 0, -3, and 8, then the displayed output is 8. If the numbers are 6, 5, and 4, then the output is...
A formula with a positive integer (less than 32 bits) and a positive decimal (number with...
A formula with a positive integer (less than 32 bits) and a positive decimal (number with decimal points) is expressed in the median formula. Change the given median to postfix and write a program that outputs the results of the calculation. operand ::= positive integer or positive error Positive integer ::= A number expressed as less than 32 bits consisting of 0 to 9. Positive integer representation of 0, 0100, 00934, 1056, 65535 is allowed Positive decimal ::= Positive integer...
7. You have a hash function that takes the binary bits of a number, divides it...
7. You have a hash function that takes the binary bits of a number, divides it up into blocks of 4 bits and then XORs the blocks together. So for example, if we have 4 blocks, block X0, X1, X2 and X3, the result of the 4-bit block hash would be X0 XOR X1 XOR X2 XOR X3. For example, the hash of "011011001010" would be "0110" XOR "1100" XOR "1010". Demonstrate that this is a poor hash function by...
1a. how many bits is 1 MB = 2 b 1b. Internally, computers represent numbers as...
1a. how many bits is 1 MB = 2 b 1b. Internally, computers represent numbers as either binary or hexadecimal true or false?
For example, suppose you had a program to determine if a number is positive, negative or zero.
  For example, suppose you had a program to determine if a number is positive, negative or zero. Read in a number and then use the if statement to determine if the number is positive (>0) or negative (<0) or zero (==0): if (x>0)//display positive messageelse if (x<0)   //display negative messageelse//display zero message
What are positive and negative reinforcement? How are positive and negative reinforcement different? How are they...
What are positive and negative reinforcement? How are positive and negative reinforcement different? How are they similar? What is punishment?
Discuss two cases of externalities, one positive and one negative, that affects you directly. This could...
Discuss two cases of externalities, one positive and one negative, that affects you directly. This could be something as simple as a neighbor driving a noisy and heavy polluting truck, or the city planting new trees along a road which are pleasant to look at and also help remove carbon from the atmosphere etc. What are the economic outcomes associated with each externality, in terms of how it effects consumer and/or producer surplus? What is the socially optimal quantity relative...
you are bulidind a shopping mall. identify 3 negative and 2 positive risk that could occur
you are bulidind a shopping mall. identify 3 negative and 2 positive risk that could occur
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT