Answer and Explanation:
def loop(start, stop, step):
return_string = ""
if step == 0:
step = 1
if start > stop: # the bug was here, fixed it
step = abs(step) * -1
else:
step = abs(step)
for count in range(start, stop, step):
return_string += str(count) + " "
return return_string.strip()
Create a outline of sections to be included in a document
Answer:
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49.
Question↓
You are purchasing a new printer. Which of the following is the most important requirement?
Answer↓
A. Is the printer compatible with your computer's operating system?
If The Printer is Not Compatible With your Computer you will not Be able to Use Therefore, you Will have to buy a New One.
xXxAnimexXx
Hope this Helps! ^ω^
Answer:
![6E_{hex}](https://tex.z-dn.net/?f=6E_%7Bhex%7D)
Explanation:
Required
![1001011_2 + 100011_2 = []_{16}](https://tex.z-dn.net/?f=1001011_2%20%2B%20100011_2%20%3D%20%5B%5D_%7B16%7D)
First, carry out the addition in binary
![1101110_2](https://tex.z-dn.net/?f=1101110_2)
The step is as follows (start adding from right to left):
--- Write 0 carry 1
---- Write 1 carry 1
---- Write 1
--- Write 1
---- Write 0
---- Write 0
--- Write 0 carry 1
No other number to add ; So, write 1 (the last carry)
So, we have:
![1101110_2](https://tex.z-dn.net/?f=1101110_2)
Next, convert
to base 10 using product rule
![1101110_2 = 1 * 2^6 +1 * 2^5 + 0 * 2^4 + 1 * 2^3 + 1 * 2^2 + 1 * 2^1 + 0 * 2^0](https://tex.z-dn.net/?f=1101110_2%20%3D%201%20%2A%202%5E6%20%2B1%20%2A%202%5E5%20%2B%200%20%2A%202%5E4%20%2B%201%20%2A%202%5E3%20%2B%201%20%2A%202%5E2%20%2B%201%20%2A%202%5E1%20%2B%200%20%2A%202%5E0)
![1101110_2 = 64 +32 + 0 + 8 + 4 + 2 + 0](https://tex.z-dn.net/?f=1101110_2%20%3D%2064%20%2B32%20%2B%200%20%2B%208%20%2B%204%20%2B%202%20%2B%200)
![1101110_2 = 110_{10}](https://tex.z-dn.net/?f=1101110_2%20%3D%20110_%7B10%7D)
Lastly, convert
to hexadecimal using division and remainder rule
![110/16 \to 6\ R\ 14](https://tex.z-dn.net/?f=110%2F16%20%5Cto%206%5C%20R%5C%2014)
![6/16 \to 0\ R\ 6](https://tex.z-dn.net/?f=6%2F16%20%5Cto%200%5C%20R%5C%206)
Write the remainder from bottom to top;
![110_{10} = 6(14)_{hex}](https://tex.z-dn.net/?f=110_%7B10%7D%20%3D%206%2814%29_%7Bhex%7D)
In hexadecimal
![14 \to E](https://tex.z-dn.net/?f=14%20%5Cto%20E)
So, we have:
![110_{10} = 6E_{hex}](https://tex.z-dn.net/?f=110_%7B10%7D%20%3D%206E_%7Bhex%7D)
Hence:
![6E_{hex}](https://tex.z-dn.net/?f=6E_%7Bhex%7D)