Answer:
<em>Yes</em><em> </em><em>they</em><em> </em><em>are</em><em> </em><em>correct</em><em>.</em><em> </em><em>welcome</em><em>.</em><em>.</em><em>.</em><em>.</em>
Answer:
The first mechanical computer was invented by Charles Babbage in 1822.
Answer:
a) D = 4.88 * 10^(-14) m^2 / s
b) <em>t </em>= 1.1 hr
Solution:
a) Magnesium in Aluminum diffusion:
D = Do * exp(-Qd / RT)
= (1.2 * 10^(-4) m^2 / s) * exp ( - 130,000 / 8.31 * 723.15)
= 4.88 * 10^(-14) m^2 / s
D = 4.88 * 10^(-14) m^2 / s
b) The composition remains same at say the distance Xo:
(Cx - Co) / (Cs - Co) = Constant
Xo^2 / D_{550} * <em>t </em>= Xo^2 / D_{450} * 15
D_{550} * <em>t </em>= D_{450} * 15
(1.2 * 10^(-4) m^2 / s) * exp ( - 130,000 / 8.31 * 723.15) * <em>t</em>
(4.88 * 10^(-14) m^2 / s) * 15
by, solving for <em>t </em>we get:
<em>t </em>= 1.1 hr
So, the time required is 1.1 hr.
C. The light bulb
Light is not a part of the flashlight and everything is working together to output light from the bulb
Answer:
(a) The algorithm is as follows:
count = 0
for i = 1 to n:
if x = xi:
count++
print(count)
(b) n comparisons
Explanation:
Solving (a):
Assume the integer to locate is x and the elements of the list are: 
Such that: 
The algorithm is as follows:
<em>count = 0</em>
<em>for i = 1 to n:</em>
<em> if x = xi:</em>
<em> count++</em>
<em>print(count)</em>
<em />
The above iterates through the count of the list (i.e. n) and makes comparison with each element of the list (i.e. element 1 to element n).
When a match is found, the count variable is incremented by 1 and printed at the end of the loop
Furthermore:
If there are 3 elements in the list, the algorithm makes 3 comparisons.
It makes 10 comparisons if there are 10 elements in the list.
<em>So: it makes n elements if there are n elements in the list</em>