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...
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...
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
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...
Assume you have a stack of integers. The stack contains same number of positive and negative...
Assume you have a stack of integers. The stack contains same number of positive and negative integers. You want to organize it such that negative and positive integers alternate (+-+-.., or -+-+,..). A. Write a Java code that uses no more than two additional Stacks to solve the problem. Note: You do not need to write the code for Stacks, you are using a Stack from the library with a name ourStack and has the following interface: ourStack() constructor, pop,...
What are the positive and negative crystals? Explain that
What are the positive and negative crystals? Explain that
Solve the following Represent the process on a P-V graph. Did the atmosphere do positive, negative...
Solve the following Represent the process on a P-V graph. Did the atmosphere do positive, negative or zero work on the system? How do you know? Was the energy supplied to the system through heating positive, negative or zero? How do you know? Was the internal energy change of the system positive, negative or zero? How do you know? Represent the process with an energy bar chart. Ideal Gas in a container with a movable piston at room temperature was...
What is a largest surplus cash amount? How could you find it out? What is the...
What is a largest surplus cash amount? How could you find it out? What is the largest shortage cash amount? How could you figure out it?
What is the minimum number of bits for representing the opcode if there are 62 different...
What is the minimum number of bits for representing the opcode if there are 62 different instructions? Please explain it, thanks.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT