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
What fraction is closer to 1?
boyakko [2]

Answer:

<u>11/12</u><u> </u><u>is</u><u> </u><u>the</u><u> </u><u>fraction</u><u> </u><u>that</u><u> </u><u>is</u><u> </u><u>closer</u><u> </u><u>to</u><u> </u><u>1</u><u>.</u>

3 0
3 years ago
Read 2 more answers
Please answer correctly !!!!!!!!!!!!!!!!!!!! Will mark brainliest !!!!!!!!!!!!!!!!!!!!
Korolek [52]

The answer is Angle OKL.

7 0
3 years ago
Please help me ASAP it’s times THANK U
goblinko [34]

Answer:

Only choices C and D are solutions

Step-by-step explanation:

6x + 3y = -15

y = -2x - 5

6x + 3y = -15

6x + 3(-2x - 5) = -15

6x - 6x - 15 = -15

0 = 0

Since 0 = 0 is a true statement, both equations of this system are the same equation and represent a single line on the coordinate plane.

We need to check each choice in just one equation.

Let's use the second equation.

y = -2x - 5

A.

(2, 7)

7 = -2(2) - 5

7 = -4 - 5

7 = -9   False

Not a solution

B.

(5, 0)

0 = -2(5) - 5

0 = -10 - 5

0 = -15     False

Not a solution

C.

(-3, 1)

1 = -2(-3) - 5

1 = 6 - 5

1 = 1   True

Solution

D.

-13 = -2(4) - 5

-13 = -8 - 5

-13 = -13    True

Solution

Answer: Only choices C and D are solutions

7 0
3 years ago
Consider this expression: 7(10a+3b)
Andreyy89
The answer could be 70a+21b
4 0
3 years ago
Read 2 more answers
The Michigan veteran population in 1990 was 14.2% and in 2000 was 12.4%.
Mandarinka [93]

Let x- intercept represents time

Let y-intercept represents population

Let 1990 represent initial year

Points are (0,14.2)(10,12.4)

slope m= \frac{y2-y1}{x2-x1}

= \frac{12.4-14.2}{10-0} =\frac{-1.8}{10} = -0.08

General linear equation

y= mx+b --------------(i)

here m is slope and b is intercept

plug the 1st point in equation

14.2= -0.018(0) + b

b=14.2

y= 0.018x + 14.2

replace y with p(t) and x with t

p(t) = -0.018t + 14.2


6 0
3 years ago
Other questions:
  • Solve for x. 2x/3 = 12
    15·2 answers
  • Convert 0.74 kcal/min to cal/sec. Show a step-by-step solution.
    12·1 answer
  • △BCD≅△GEF . If BC=10 , CD=3x+8 and EF=4x+6 , then what is the measure of CD ?
    8·2 answers
  • Juan and Nina are in the Junior High Orchestra. As part of the orchestra they each have to learn two instruments. Juan is learni
    13·1 answer
  • Find the volume, in cubic inches, of a right rectangular prism with the measurements below.
    12·1 answer
  • Jonas builds a snow fort. He tells his friends it is 0.8 meters tall inside, but he rounded the height to the nearest tenth.
    12·1 answer
  • The value of y varies directly with x. When y=2 2/5,x=3/5 what is the value of y when x is 4/5
    13·1 answer
  • Navigators locate an object by measuring its location clockwise direction from due north. The measure of the angle is called the
    5·1 answer
  • A(n) is any number that is used to multiply a variable, such as the 6 in
    6·1 answer
  • The graph shown matches which quadratic equation?<br> A<br> yox. 1<br> yox-1)?<br> D
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!