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
sertanlavr [38]
3 years ago
14

public static int recur(int x) { if (x >= 0) return x + recur(x - 1); return 0; } What is returned by the method call recur(9

)?
Advanced Placement (AP)
1 answer:
guapka [62]3 years ago
6 0
9 >= 0 so return 9 + ...
8 >= 0 so return 8 + ...
7 >= 0 so return 7 + ...
6 >= 0 so return 6 + ...
5 >= 0 so return 5 + ...
4 >= 0 so return 4 + ...
3 >= 0 so return 3 + ...
2 >= 0 so return 2 + ...
1 >= 0 so return 1 + ...
0 >= 0 so return 0 + ...
-1 is not >= 0 so return 0.

Now string together all the returns..
9+8+7+6+5+4+3+2+1+0+0=45

recur(9) returns 45
You might be interested in
The image to the left shows Earth's major plates. A
marissa [1.9K]

Answer:

Eurasian Plate

Explanation

5 0
3 years ago
Read 2 more answers
Which Supreme Court case was the first to address the Second Amendment?
sweet [91]
The answer would be C. 
7 0
3 years ago
Read 2 more answers
Given the equation 5+x-14=x-7: Part A. Solve the equation 5+x-14=x-7. In your final answer, be sure to state the solution and in
docker41 [41]
Part 1/

5 + x - 14 = x - 7
We’ll cancel (X) from both sides;
5 - 14 = -7
-9 = -7
Since, -9 = -7 is False, there is no solution.

———

Part2/

If we use x = -2, 0, 3

1) Case of X = -2

5 + (-2) - 14 = (-2) - 7
5 - 2 - 14 = -2 - 7
3 - 14 = -9
-11 = -9 .... False / No Solution



2) Case of X = 0

5 + (0) - 14 = (0) - 7
5 - 14 = -7
-9 = -7 ... False / No Solution



3) Case of X = 3
5 + (3) - 14 = (3) - 7
8 - 14 = -4
-6 = -4 ... False / No Solution
5 0
3 years ago
Do you think there's such a thing as a "normal" family? What constitutes a family?
iren2701 [21]
Family is coined by our society to consist of parents and their children. Based on our modern day families, we now have couples with no children, couples that form with children from previous marriages, gay couples, etc.
People want to belong, they have a need to identify with others when their "family" at home is broken. We also come to realize that our family unit can be viewed differently in our society.
For instance, gangs consider other members their "family." I don't believe there is a such thing as "normal" family. We all want to belong to a group to feel like we are contributing to our society, whether that be through a "normal" family or a more modern day version of family.

I hope my thoughts provided some insight/ideas.
3 0
3 years ago
The basaltic rock that forms volcanic mountains where mantle plumes reach Earth's surface is usually composed of what?
matrenka [14]
Fine-grained, dark-colored mafic minerals
4 0
3 years ago
Other questions:
  • Which of the following statements best describes the relationship between the environment and human health?
    5·1 answer
  • Which researcher went around the world, testing people from various cultures on their ability to identify pictures of facial exp
    14·1 answer
  • A group of similar cells that share a common function are referred to as a(n): *
    10·1 answer
  • 11. A political polling organization conducted a survey by selecting 100 random samples, each consisting of 500 registered voter
    7·1 answer
  • PLZ HELP ILL MARK U AS BRAINLIEST
    14·1 answer
  • A boat has a speed of 9 mph in cold water. it takes the boat 4 hours to travel upstream but only 2 hours to travel the same dist
    8·1 answer
  • The roots of the function f(x) = x^2 - 2x - 3 are shown. What is the missing number?
    10·1 answer
  • An unsupported generalization about a category of people?
    10·2 answers
  • In your own words, define “ study habits.”
    7·2 answers
  • Sang-ayon kaba sa ginawa ng mga kanluranin sa asya
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!