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
4vir4ik [10]
3 years ago
7

wo non-negative integers x and y are equal if either: Both are 0, or x-1 and y-1 are equal Write a function named equals that re

cursively determines whether two parameters (both containing integer values) are equal and returns True or False.
Computers and Technology
1 answer:
Mrac [35]3 years ago
3 0

Answer:

Using python programming language.

Explanation:

#to define the function write as below

def equal():

    #to get the two integers from the user

#The user is asked for input in the code below.

x = int(input("Enter the value for X"))

y= int(input("Enter the value for y"))

if x==0 and y==0:

    print("both numbers are ", "0")

elif: x==1 and y==1:  #This test if both x and y are 1

    print("true")

elif: x==y: #this line test if both values are equal

    print("true")

else:

    print("False")

equal()  #end of the function

You might be interested in
For our computer club in school, we are making a discord server and seeing who can get the most members. I am making an Anime Se
Gwar [14]

Answer:

misteragua#1874

Explanation:

5 0
3 years ago
When using Microsoft word, what would happen to the text of a paragraph if the "Justify" option is used?
Bond [772]
Hello, and thank you for asking your question!

When you click on the 'Justify' option on any type of word pad, it'll make all lines of words perfectly aligned. Here is a quick few-sentence example I made. 
(Photo)

Hope this helps! ☺♥

3 0
3 years ago
Which TWO choices are NOT examples of productivty software (choose two)
Svetradugi [14.3K]

Productivity Software

Norton Antivirus and Instant Messenger are not example of productivity software

Explanation:

Google docs, Excel and Presentation software are categorized as productivity software. Productivity software include word processing programs, spreadsheet,  presentation software ,graphic design programs.Among the given choices, Norton Antivirus is a type of antivirus and security software for PC and laptops. Instant Messenger is an example of communication software used for text-based communication between two or more participants over the Internet or other types of networks. It allows efficient as wells effective communication, allowing immediate receipt of reply or acknowledgment.

So Norton Antivirus and Instant Messenger are NOT examples of Productivity software.

3 0
3 years ago
Suction cup-type headlamp aiming equipment may be used on:
nignag [31]

Suction cup-type headlamp aiming equipment may be used on "assemblies with internal adjustments".

Option B

<u>Explanation:</u>

The suction cup type aiming equipment uses protruding pegs built into the headlamp lens. Without such pegs headlamps have no use to such equipment. Such headlamps are that adjusts the assembly but not only the beam of light.

Some assemblies also adjust the beam inside the headlamp as the exterior section of the assembly does not move with the adjustment. The suction cup need the lens to be smooth as the cup will not attach to a lens with raised letters.

6 0
3 years ago
A common problem in record systems is inaccurate classification of records as they are created and revised. a. True b. False
Mashcka [7]

Answer:

True.

Explanation:

The whole point of keeping records is to be able to check back on them at a later time. This is why records are kept in such a way/in such an order that it would be absolutely easy to locate them when required.

Inaccurate classification defeats the whole purpose of record keeping as it makes it hard (impossible at times) to locate such record that has been mistakenly classified.

7 0
4 years ago
Other questions:
  • Select the correct answer.
    8·2 answers
  • Nadia's productivity at work is being hurt due to the large quantity of unwanted e-mail she receives. What steps can she take to
    8·1 answer
  • Which of the following is true about main content? Select all that apply.
    10·2 answers
  • You have a chart that shows 100 data points and you've circled the highest value. Which of the following are you using?
    8·1 answer
  • COMO HA SIDO LA INNOVACION DE ESTE OBJETO TECNOLOGICO DURANTE SU EVOLUCIÓN
    8·1 answer
  • Write a Python class that inputs a polynomial in standard algebraic notation and outputs the first derivative of that polynomial
    9·1 answer
  • Which of the following is/are used in multimedia?
    14·1 answer
  • ASAP 50 POINTS
    14·1 answer
  • WILL GIVE BRAILIEST
    9·2 answers
  • What are good reasons to do yearly disaster recovery testing? check all that apply
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!