Answer:
The solution is written in Python
- binary = ""
- decimal = 13
- quotient = int(decimal / 2)
- remainder = decimal % 2
- binary = str(remainder) + binary
-
- while(quotient >0):
- decimal = int(decimal / 2)
- quotient = int(decimal / 2)
- remainder = decimal % 2
- binary = str(remainder) + binary
-
- print(binary)
Explanation:
Firstly, we declare a variable <em>binary</em> and initialize it with an empty string (Line 1). This <em>binary </em>is to hold the binary string.
Next, we declare variable <em>decimal, quotient </em>and<em> remainder </em>(Line 2-4). We assign a test value 13 to decimal variable and then get the first quotient by dividing decimal with 2 (Line 3). Then we get the remainder by using modulus operator, % (Line 4). The first remainder will be the first digit joined with the binary string (Line 5).
We need to repeat the process from Line 3-5 to get the following binary digits. Therefore create a while loop (Line 7) and set a condition that if quotient is bigger than 0 we keep dividing decimal by 2 and calculate the quotient and remainder and use the remainder as a binary digit and join it with binary string from the front (Line 9-11).
At last, we print the binary to terminal (Line 13).
Answer:
<h2>Antihistamines are used to treat hay fever.</h2><h3>I
hoped it helped</h3><h2>
#Se xy EMPRESS</h2>
Answer: it called a toe box is the part of a shoe that covers and protects the toes. Toe boxes come in a variety of shapes and styles depending on the type of shoe, but they should always be wide and long enough to accommodate the toes comfortably.
Explanation:
Answer:
From the multiple choices provided for the action of capacitor, option
(d) stores electrical energy
is correct
Explanation:
A capacitor is basically a two terminal device that stores electrical energy in the electric field in its vicinity. It is apassive element.
The property of a capacitor to store electrical energy or the effect of a capacitor is known as its capacitance. The capacitance of a capacitor is given by:
Q = CV or C = 
It is originally known as condensor and it can be said that a capacitor adds capacitance to the circuit.