Answer:
In Python:
def fib(nterms):
n1, n2 = 1, 1
count = 0
while count < nterms:
term = n1
nth = n1 + n2
n1 = n2
n2 = nth
count += 1
return term
Explanation:
This line defines the function
def fib(nterms):
This line initializes the first and second terms to 1
n1, n2 = 1, 1
This line initializes the Fibonacci count to 0
count = 0
The following while loops gets the number at the position of nterms
<em> while count < nterms:
</em>
<em> term = n1
</em>
<em> nth = n1 + n2
</em>
<em> n1 = n2
</em>
<em> n2 = nth
</em>
<em> count += 1
</em>
This returns the Fibonnaci term
return term
Answer:
Access installation through shared drive
Explanation:
Answer and Explanation:
Given data:
Distance (D) = 40 KM
Speed of light in the fiber =Distance/ speed of light in the fiber
a) Delay (P) = Distance/ speed of light in the fiber
= (40,000 Meters/2×108 m/s)
=( 40×103 Meters/2×108 m/s)
Propagation delay (P) = 0.0002 seconds or 200 microseconds
b)
if propagation delay is 0.0002 Seconds roundup trip time (RTT) will be 0.0004 Seconds or 400 micro Seconds
Essentially since transmission times and returning ACKs are insignificant all we really need is a value slightly greater than 0.0004 seconds for our timeout value.
c)
The obvious reasons would be if the data frame was lost, or if the ACK was lost. Other possibilities include extremely slow processing on the receive side (late ACK).
Or Extremely Slow Processing of the ACK after it is received back at the send side.
Explanation:
If you are only using firebase auth, you can use the listUsers function of the admin module (limited to 1000 items per page).