Answer:
(10000000)₂ = -128 in decimal
(11001100)₂ = -52 in decimal
(10110111)₂ = -73 in decimal
Explanation:
<u>NOTE:</u> If Most Significant Bit is 0, it is positive number and if MSB is 1, it is negative number. If number is positive we can simply convert it to decimal. But if number is negative, follow following formula:
- (complement of the number) +1
<u>EXAMPLE 1</u>
(10000000)₂
(01 1 1 1 1 1 1)₂ ↔ complement of the number
<u>+ 1</u>
(10000000)₂ = 1 ×
= 128 (magnitude in decimal)
But we remember MSB was 1 so answer is -128.
<u>EXAMPLE 2</u>
(1 1 0 0 1 1 00)₂
(0 0 1 1 0 0 1 1)₂
<u>+ 1 </u>
(0 0 1 1 0 1 0 0)₂ = 52 (magnitude in decimal)
But we remember MSB was 1 so answer is -52.
<u>EXAMPLE 3</u>
(1 0 1 1 0 1 1 1)₂
(0 1 00 1 000)₂
<u>+ 1 </u>
(01 00 1 00 1)₂ = 73 (magnitude in decimal)
But we remember MSB was 1 so answer is -73.
Answer:
while (quantity >= 50)
Explanation:
Required
Stop when quantity is less than 50
To do this, we make use of a while statement and the syntax is:
while (condition){ }
If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50
So, we have:
while (quantity >= 50)
Answer:
computer is an electronic machine that accept raw data ,process and then give result. it's uses:
It is used for storing data and information.
I mean, this is tricky because there's a lot of skills they'd need - c<span>ommunication, leadership, organisation, confidence etc. Is there a list of answers to choose from?</span>