1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Charra [1.4K]
3 years ago
6

Fill in the code to complete the following function for computing a Fibonacci number. public static int fib(int index) { if (ind

ex == 0 || index == 1) // Base case ________ else // Reduction and recursive calls return fib(index - 1) + fib(index - 2); }
Mathematics
1 answer:
Lubov Fominskaja [6]3 years ago
6 0

Answer:

return 0;

Step-by-step explanation:

The  Fibonacci numbers such that each number is the sum of the two preceding ones, but the first therm of the sequence cannot be built by this rule.

In that F_{0} = 0

Then you may define it in the base case

return 0;

You might be interested in
The Starlight Bowling Alley charges $6 to rent shoes and $8 per game. Cameron has
Anton [14]
Hmmmmmmmmmmmmmm ummmmmmmmm hmmmmmmmmmmm..
6 0
3 years ago
Read 2 more answers
X – 7y = –11<br> 5x + 2y = -18
laiz [17]

Answer:

hope this help you

Step-by-step explanation:

Simplifying

X + -7y = -11

Solving

X + -7y = -11  

Solving for variable 'X'.

Move all terms containing X to the left, all other terms to the right.

Add '7y' to each side of the equation.

X + -7y + 7y = -11 + 7y

Combine like terms: -7y + 7y = 0

X = -11 + 7y

Simplifying

X = -11 + 7y

------------------------------------------------------------------------------------------------------------

Solving

5x + 2y = -18

Solving for variable 'x'.

Add '-2y' to each side of the equation.

5x + 2y + -2y = -18 + -2y

Combine like terms: 2y + -2y = 0

5x = -18 + -2y

Divide each side by '5'.

x = -3.6 + -0.4y

Simplifying

x = -3.6 + -0.4y

4 0
3 years ago
A pail holds 2 3/4 gallons of water how much is this in cups
umka21 [38]
1 gallon is 16 cups

we have 11/4 cups which multiplied by 16 gives us 44 cups
7 0
4 years ago
The diagram below gives the dimensions of a swimming pool. 18 ft , 20ft, 36ft (c) What is the total area of the swimming pool? E
WARRIOR [948]
The picture in the attached figure

Part 1) <span>What is the total area of the swimming pool?
</span>
we know that
<span>area of the swimming pool=area rectangle-area semi circle

area rectangle=20*36-----> 720 ft</span>²

area semicircle=pi*r²/2
r=18/2----> 9 ft
area semicircle=pi*9²/2----> 127.17 ft²

area of the swimming pool=720 ft²-127.17 ft²----> 592.83 ft²

the answer Part 1) is
The area of the swimming pool is 592.83 ft²

Part 2) <span>What is the perimeter of the swimming pool?
</span>
perimeter of the swimming pool=perimeter of rectangle-18 ft+perimeter semi circle
perimeter of rectangle=2*[20+36]---> 112 ft

perimeter semi circle=2*pi*r/2----> pi*r
r=9  ft
perimeter semi circle=pi*9----> 28.26 ft
 so
perimeter of the swimming pool=112 ft-18 ft+28.26 ft----> 122.26 ft

the answer Part 2) is
122.26 ft

6 0
3 years ago
Write 6/9=a/b in simplest form
kobusy [5.1K]

Answer:

2/3 = a/b

Step-by-step explanation:

6/9 = a/b

2/3 = a/b

8 0
3 years ago
Other questions:
  • If you have a 10 foot ladder and you put it against a wall at the ideal angle how high on the wall will the ladder touch assume
    12·1 answer
  • Which translation will change figure ABCD to figure A'B'C'D'?
    11·2 answers
  • The graph of the function f(x) = ax2 + bx +c (where a, b, and c are real and non zero) has two x-intercepts. Explain how to find
    13·1 answer
  • Someone please help!!!10, 12, and 14
    9·1 answer
  • What is the median of this data set<br><br> 21 63 84 126
    9·1 answer
  • Prove that the lines x+y=5, 2x–y=16 and x+2y=3 intersect at one point. What are the coordinates of this point?
    7·1 answer
  • In the following figure, the value of xs is<br> 20<br> 35
    9·2 answers
  • Of three consecutive odd integers, k is the middle one. If the difference between
    6·1 answer
  • Solve for b.<br> ab + c = d<br> b= a + c/d<br> b= a/(c-d)<br> b = (d - c)/a
    9·1 answer
  • Pleeeeeeeeeeeeeeeeeaaaaaaaaaaaaaaaaase help
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!