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
konstantin123 [22]
3 years ago
6

Write the definition of a function, isreverse, whose first two parameters are arrays of integers of equal size, and whose third

parameter is an integer indicating the size of each array. the function 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:
sammy [17]3 years ago
3 0

Answer:

#include <iostream>

int isreverse(int a[], int b[], int size)

{

for (int i = 0; i < size; i++) {

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

 {

  return 0;

 }

}

return 1;

}

int main()

{

int first[] = { 2, 5, 7, 8, 15 };

int second[] = { 15, 8, 7, 5, 2};

int third[] = { 1, 2, 3, 4, 5 };

   printf("First is %sthe reverse of second.\n", isreverse(first, second, 5) ? "": "NOT ");

printf("Second is %sthe reverse of third.\n", isreverse(second, third, 5) ? "" : "NOT ");

}

Explanation:

Assuming you are looking for a C/C++ solution...

You might be interested in
Select the correct answer
Vaselesa [24]

Answer:

professional integrity

Explanation:

The work he is doing is comes under the violation of professional integrity. Because professional integrity is the set of ethics that should be followed by the employ. These ethics includes honesty, loyalty and dependability.

5 0
4 years ago
Tell me about the information technology at the home depot. why has it revolutionized it?
omeli [17]
The information technology at the Home Depot allows for example, all the stock in the store to be listed on the computer with all its specifications and whether or not it is in stock and how many left in stock and where . Also, when something is ordered from Home Depot like a machined door then all the specs of the order will be digital and also the status of it and when it will/should be available and the cost. 
4 0
3 years ago
Consider the following relation: CAR_SALE (Car#, Date_sold, Salesman#, Commision%, Discount_amt Assume that a car may be sold by
Nady [450]

Answer:

See explaination

Explanation:

The given relation is:

CAR_SALE(Car#, Date_sold, Salesperson#, Commission%, Discount_amt)

Primary key: {Car#,Salesperson#}

We will first check whether the relation is in 1NF.

A relation is said to be in the 1st Normal form(1NF) if all the columns in the relation have atomic values. In this case, the relation is in 1NF.

A relation is said to be in the second normal form(2NF) if it satisfies the condition that all non keys are completely dependent on the primary key and just a part of the primary key.

In the case of the CAR_SALE relation, the Commission% depends only on the Salesperson# and not on the combination of Car# and Salesperson#. This means that the given relation is not in 2NF. To satisfy 2NF, we make two relationships as given below:

SALE_DETAIL(Salesperson#, Commission%)

and CAR_SALE(Car#, Date_sold, Salesperson#, Discount_amt)

Now both the relations are in 2NF.

For a relation to be in 3NF, no non-key should be functionally dependent on another non key.

In the case of the CAR_SALE relation, it is specified that the Date_sold field determines the Discount_amt. Therefore the modified CAR_SALE is not in 3NF.

To satisfy 3NF, we seperate the non key and the dependent non key and create a different table.

Final Relations:

SALE_DETAIL(Salesperson#, Commission%)

Discount_Detail(Date_Sold, Discount_Amt)

CAR_SALE(Car#, Date_sold, Salesperson#)

7 0
3 years ago
Mrs. Patel uses a computer program to balance her checkbook. Which of the following best explains how the
Alexandra [31]

Answer:

c it reduces errors

Explanation:

Instead of Mrs.Patel doing it she has an online program made for checks to do it for her.

6 0
3 years ago
Which spreadsheet toolbar displays options such as Cut and Paste?
Colt1911 [192]
The answer would be ''Drawing Toolbar'' and you can find this inside your mouse area, where u click the right button (right side) and it shows a small chart/toolbar where it gives you the options to copy, cut, paste and more.
4 0
3 years ago
Other questions:
  • Write a program to read as many test scores as the user wants from the keyboard (assuming at most 50 scores). Print the scores i
    13·1 answer
  • You are asked to write an app to keep track of a relatively small music library. The app should load song information from a dat
    14·1 answer
  • 1.2 Data transmission speed.Unit of measurement used to measure in bits per second.1000 bits per second (bps)=
    11·1 answer
  • Which term is used for a formal, documented process that describes when and how official project documents may be modified, the
    14·2 answers
  • How to attach a picture on brainily?
    8·1 answer
  • Which is true about POP3 and IMAP for incoming email?
    10·1 answer
  • In the past, data was transferred from OTLP databases to data warehouses periodically, say once a month or even once a week. Now
    11·1 answer
  • What scientific principle would a plumber need to know when designing and installing plumbing a new construction
    13·1 answer
  • Alice has an item x and Bob has a set of five distinct items y1, y2, y3, y4 and y5. Design a protocol through which Alice (but n
    5·1 answer
  • Which command must you use at the command prompt to determine the names of the network interfaces (including the isatap interfac
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!