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
sveta [45]
3 years ago
10

Write the definition of a method, isReverse, whose two parameters are arrays of integers of equal size. The method returns true

if and only if one array is the reverse of the other. ("Reverse" here means same elements but in reverse order.)
Computers and Technology
1 answer:
Marat540 [252]3 years ago
7 0

Answer:

   public static boolean isReverse(int [ ]a, int [ ]b ){

       for (int i=0;i<a.length;i++)

       {

           if(!(a[i] == b[a.length-i-1]))

               return false;

       }

       return true;

       }

Explanation:

Using a for loop, we go through the elements of the first array. The if comapres and checks if any of the values are not the same as the appropriate value on the other array, if it is so, then it is not a reverse, and we return false. else  we return true.

You might be interested in
PLEASE HELP ME !!!!
Sedaia [141]

Answer:

Complete the ZipZapZop()

function so that it requests an integer from the user. The function should display a response following this pattern:

• Divisible by 3: zip

• Divisible by 5 zap

• Divisible by 7 zop

Otherwise, just display the number

Note 1 numbers that are divisible by more than one (3, 5, or 7) should contain

all applicable terms.

Notes 2 Note that you are displaying directly from this function, not returning a value to the calling function.

Hint: The number only prints if it is not divisible by ALL of 3,5,or 7

Explanation:

3 0
3 years ago
How to make google your default search engine on chrome?
IgorC [24]
You have to go to the three little dots on the right side on your screen in chrome by the url bar, and click settings down towards the bottom. Once you're in settings, you'll see "On startup" with three different choices. The way I do it, is click "Open a specific page" and type in www.google.com
8 0
3 years ago
Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000
TiliK225 [7]

Answer:

user_num = 2000

x = 2

for i in range(3):

 user_num = user_num // x

 print(user_num)

3 0
3 years ago
This activity will help you meet these educational goals:
ololo11 [35]

Answer:

Explanation:

Content Knowledge—You will determine the importance of computer skills, organizational structures, labor laws, community programs and managerial qualities in an industry of your choice.  Inquiry—You will conduct online research in which you will collect information, make observations, and communicate your results in written form.  21st Century Skills—You will use critical thinking and problem solving skills, and communicate effectively

8 0
3 years ago
What is the difference between morals and ethics?
Kipish [7]

<u>Answer</u>:

<em>B. Morals are individually held beliefs, while ethics are imposed by an </em>

<em>organization.</em>

<u>Explanation</u>:

<em>Morals are the beliefs designed or created by group of people.</em> It is concerned whether an action is right or wrong. It is basically a lesson learned from a situation or a story. <em>It also convey truth.  </em>

Ethics are set of rules designed by <em>external agent or organization</em> and it differs from place to place but they have basic ethics in common.

<em>It is a branch of philosophy. These are also not relative to the situation. Both moral and ethics are used interchangeably. </em>

6 0
4 years ago
Other questions:
  • Under which tab can you find the options for reusing slides from other presentations
    5·1 answer
  • If you were asked to subnet a network in such a way as to arrive at 6 network ids you would need to borrow 2 bits.
    7·1 answer
  • Have main create two objects: setA and setB.Input the values into setA (end with a 0 or negative) and input the values into setB
    12·1 answer
  • How many data bits are sent in a single psk31 character?
    15·1 answer
  • A research team is studying parallel computing. They want to run parallel process without having to use multiple processors. How
    7·1 answer
  • Create a simple self-checkout system. Prompt for the prices and quantities of three items. Calculate the subtotal of the items.
    15·1 answer
  • Suppose you have four 500 MB hard drives plus one 2 GB flash drive. How many GB of capacity is this overall?
    12·1 answer
  • Determine the exact output of the code $str = "The quick brown fox jumps over the the lazy dog"; echo strpos($str, 'fox');
    6·1 answer
  • Can you answer this question?
    9·1 answer
  • which option dexcribes a situation when asexual reproduction would be more advantageous to an organism?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!