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
Nadya [2.5K]
3 years ago
6

Make absolutely no changes to main(). Change function backwards so that the elements of the array are swapped in order for eleme

nts to be in reverse order. That is, arr[0] will be 16, arr[1] will be 5, etc. But backwards() must work no matter what values are in the array and for all values passed in for number. After it is corrected this program should output: 16 3 17 8 2 #include using namespace std; void backwards(int [], int); int main() { int arr[] 2,8,17,3,5,16}; int i; backwards(arr,6); for (i 0; i< 6; i++) cout<
Computers and Technology
1 answer:
makkiz [27]3 years ago
5 0

Answer:

i got you hold on.

Explanation:

You might be interested in
Write a program called DeliveryCharges for the package delivery service. The program should use an array that holds the 10 zip c
Vlad [161]

Answer:

import java.util.Scanner;

public class DeliveryCharges

{

public static void main(String[] args) {

 

       String[] zips = {"01234", "11234", "21234", "31234", "41234", "51234", "61234", "71234", "81234", "91234"};

    double[] prices = {2.2, 1.0, 3.6, 6, 9, 7.1, 0.8, 4.7, 3.3, 5.2};

    int index = -1;

    Scanner ob = new Scanner(System.in);

    System.out.print("Enter the zip code for your delivery: ");

    String zip = ob.next();

   

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

        if (zip.equals(zips[i])) {

            index = i;

        }

    }

       

    if (index!= -1)

       System.out.println("Delivery charge to " + zips[index] + " is: " + prices[index]);

    else

       System.out.println("No delivery to " + zip);

}

}

Explanation:

Initialize the zips and prices

Initialize index that represents the index of the zip code. If the entered zip code is in the array

Ask the user to enter the zip code

Create a for loop that iterates through the zips. If the entered zip is in the zips, set its index to index

When the loop is done, check if the index. If the index is not -1, that means zip code was found in the zips array, print the corresponding price from the price array. Otherwise, print no delivery for the entered zip code

8 0
4 years ago
What is the name for unwanted software that installs when you click some links?
Rudik [331]
Malware you're welcome 
8 0
4 years ago
Read 2 more answers
Ashton assigned a string value to a variable. Which program statement should he use?
m_a_m_a [10]

Answer: c because there cant be numbers or simboles also nooooooo spaces

Explanation:

brainlyist plz

6 0
3 years ago
It is not free to manage the settings of your wiki (true or false)​
jek_recluse [69]

Answer:

shuush

Explanation:

u r a shmaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaak

5 0
3 years ago
Which element of color theory helps designers choose color schemes that create an appealing visual?
WITCHER [35]

Answer of this question is

C. Design

4 0
3 years ago
Read 2 more answers
Other questions:
  • If you find yourself in a position where you need to restore an object or container within active directory that has been inadve
    6·1 answer
  • What does limited access to a document mean? A. It makes a document inaccessible without a password. B. It enables a person to m
    7·1 answer
  • Write a program to read 2 numbers and display the largest of the two. You should use scanfto read the two numbers and use if sta
    8·1 answer
  • In one to two sentences, explain why citizens pay taxes
    8·1 answer
  • For which tasks would Excel be useful? Check all that apply.
    7·1 answer
  • ফাইল ও ফোল্ডারের মধ্যে পার্থক্য কি এবং ৫ টি ইনপুট ডিভাইসের নাম কি​
    7·2 answers
  • Which of the following is a characteristic of a college savings plan
    6·2 answers
  • Which are the following 4 things something must be able to do in order to be a computer? *
    9·1 answer
  • How does the variance as a measure of the dispersion of a data set relate to the measure of central tendency (i.e. mean)? What c
    14·1 answer
  • Add me as a friend on Real pool 3D so we can play a round of pool!!!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!