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
Smart machines I'm pretty sure
<span>Digital cameras are less susceptible to UV light. TRUE. In fact, there is an existing photography called Ultraviolet Photography. It is a process of photography that records images by using the light from the ultraviolet spectrum. There are two possible ways to use UV in taking photographs: via reflected UV and UV induced fluorescence.</span>
Answer:
There are many factors that cause aggregate demand to shift from AD to AD1. The unemployment rate will fall and inflation will increase.
<u>Explanation:</u>
A Shift in aggregate demand from AD to AD1 means there has been a fall in demand. Various factors that cause demand to decrease are:
- Increase in price of a good itself
- Increase in the price of complimentary goods-This will lead to a fall in demand. Like ink and pen are complementary goods. if the Price of ink increases then demand for pen will decrease.
- A Decrease in the price of substitute goods-Like tea and coffee.
- Expectation regarding future fall in price
So due to the decrease in demand finally the unemployment will increase and with that, the inflation rate will increase making things dearer.
Answer:
i have no clue sorry:(
Explanation:
I didn't do this to get points i promise