Answer:
#here is code in python
#recursive function to find nth Fibonacci term
def nth_fib_term(n):
#if input term is less than 0
if n<0:
print("wronng input")
# First Fibonacci term is 0
elif n==0:
return 0
# Second Fibonacci term is 1
elif n==1:
return 1
else:
#find the nth term of Fibonacci sequence
return nth_fib_term(n-1)+nth_fib_term(n-2)
n=int(input("please enter the term:"))
print(n,"th Fibonacci term is: ")
print(nth_fib_term(n))
Explanation;
Read the term "n" which user wants to know of Fibonacci sequence.If term term "n" is less than 0 then it will print "wrong input". Otherwise it will calculate nth term of Fibonacci sequence recursively.After that function nth_fib_term(n) will return the term. Print that term
Output:
please enter the term:7
7 th Fibonacci term is:
13
I’m not sure what are the following answers but some skills are communication, problem solving, creativity and teamwork
Answer:
Explanation:
1. Statement, code segment, program
as program includes everything so it has the highest level of abstraction.
2. Replace the green component of each pixel with the average value of the red and blue components of the pixel
as averaging will cause the transformation to become lossy.
3. II and III only
as value of pi is constant, not a variable.
Answer:
30 units of Food A and 45 units of Food B are to be purchased to keep costs at the minimum $105.
Explanation:
X = Amount of food A
Y = Amount of food B
Z= 2X+Y..... minimum cost equation
50X + 20Y > 2400 .................Vitamins .......(1)
30X + 20Y > 1800 ...................Minerals.......(2)
10X + 40Y > 1200 .................Calories ..........(3)
X > 0
y > 0
X=30 and Y = 45
Z= 2(30) + 45 = $105
Answer:
Umm... I just want points. Sorry.
Explanation:
I know you're going to delete my comment but please let it stay.
I have a essay and I need it to be completed and I need to ask a question. If you have a better reason why you need me to explain it, then please reply. IF you can.
Thanks
: )