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
xeze [42]
4 years ago
10

Please help!

Computers and Technology
1 answer:
USPshnik [31]4 years ago
8 0

Answer:

x == y

How? :

So in this case for recursion to stop, the program needs to reach a base case. A base case is a situation where coming across that line of code will give a certain output, meaning it will definitely give an output and not go back into to the program. For example, if you have a program very similar to yours with recursion, and the program continues to run until it hits the value 1. Now, say you had specified in the code for the method that if the int (integer) value of the int variable x equals 1, the code would return 1. This situation in java would look like:

if (x == 1) return 1;

<em>or</em>

if (x == 1){

    return 1;

}

This is what you would call a base case. Now, if you were to enter two values into the method for your code, what would you get? Let's say you enter 3 and 6 (3 for int x, and 6 for int y). In this case the value of variables x and y would satisfy the code, and recursion would occur, where outputs continue to loop until you hit a wall, where output satisfies a base case. For your situation, a base case would be where x can be less than five, y can be greater than five, but, most importantly, x and y do not satisfy the condition where x != y. If you don't know what that means, x != y means "x is not equal to y". So for the values of x and y to not not be equal (sorry if this is confusing), the values of x and y have to be equal. Now, if you were to pug in 6 and 6 in your code, you would an output of just one line - "y: 6" and nothing else. Tada! Recursion has ended since the output has satisfied a base case -  "x and y are equal" i.e. x == y . Thus, the correct answer would be x == y. Hope my explanation helped.

Take care,

Somebody

You might be interested in
25 points select 3 options!!!!!!!!!!!!!!!!!!!!!!!!!
STALIN [3.7K]
A, B , and E sorry if I’m wrong
4 0
3 years ago
Fundamental types of data, such as strings, integers, and real numbers, are known as
alina1380 [7]

Solution:

Fundamental types of data, such as strings, integers, and real numbers, are known as primative data type.

Primitive data structures are char, int, float, double. ... There comes derived data structures and user defined data structures. Derived data structures are also provided by the system but are made using premitives like an array, a derived data. It can be array of chars, array of ints.

Thus the right answer is primative data type.

4 0
4 years ago
Which best compares and contrasts visual and performing arts? Both careers use communication skills; however, people involved in
Vlad1618 [11]

Answer:

Both careers speak to an audience; however, people involved in the performing arts speak only to a live audience.

Explanation:

sorry im late but im not sure

3 0
4 years ago
Read 2 more answers
Write an article for publication on why every student should be computer literate​
Zigmanuir [339]

Answer:bankrupt

Explanation: no money on your card lol i hope you haveing a great day and i want you to know that you got this babe like is life is good then great but if not then it will get better beause you will make it get better

6 0
3 years ago
If non-series-rated overcurrent devices (standard molded-case circuit breakers) are to be installed in the main switchboard, bre
const2013 [10]

Breakers with adequate short-circuit must be installed in the panelboards.

<h3>What are these equipment about?</h3>

Common Overcurrent Protection Devices (OCPDs) are known to be Breakers or fuses that are often used  to protect the full unit from too much current.

Note that Equipment such as switchboards and panelboards are often installed in an electrical system and they have to be of adequate measure of short-circuit current condition.

Learn more about overcurrent devices  from

brainly.com/question/14284905

3 0
2 years ago
Other questions:
  • Achieving a degree in computer forensics, information technology, or even information systems can provide a strong foundation in
    11·1 answer
  • If there is no index.html file in the root folder nothing will be displayed when you navigate to the site address
    14·1 answer
  • In the context of prototyping during the design phase of the systems development life cycle (SDLC), a _____ prototype shows user
    14·1 answer
  • To insert a field between existing fields, right-click the column heading for the field that will follow the new field, and then
    11·1 answer
  • To pinpoint an earthquake's location, scientists need information from how many seismometers?
    8·1 answer
  • What is some advice you would give someone who is just starting online learning 2 sentences
    8·1 answer
  • Cryptocurrencies are digital tokens that are created independently of government money, and can act as a medium of exchange and
    15·1 answer
  • how to make windows laptop work faster because I mine is so slowwwww. I already updated it and everything and tried everything b
    9·1 answer
  • When i add someone to canvas course, do they get an invitation?.
    8·1 answer
  • The Internet Protocol Suite consists of the Internet Protocol and _____. a. Transmission Control Protocol b. File Transfer Proto
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!