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
kati45 [8]
3 years ago
6

For the following array x [10] = { 45, 20, 50, 30, 80, 10, 60, 70, 40, 90} show the contents of x after the function call split

Pos = split(x, 0, 9) is executed, and give the value of the array index splitPos (the first is the pivot).
Computers and Technology
1 answer:
Valentin [98]3 years ago
5 0

Answer:

The array index by using split function.

45 20 50 30 80 10 60 70 40 90

45 20 40 30 80 10 60 70 50 90

45 20 40 30 10 80 60 70 50 90

10 20 40 30 45 80 60 70 50 90

Explanation:

In the following statement, there is an integer array type variable x and its index value is 10 that means it contains only 10 numeric values and then, they set split function which split the array and the split function is the built-in function which is used to separate the string or an array. So, the array is split into the following parts.

You might be interested in
Do clocks have cell's?
Marysya12 [62]
No it’s a object not a life
8 0
3 years ago
Read 2 more answers
Whats the best way to get into a computers programming to get past firewalls
raketka [301]

you can use the software psiphon

6 0
3 years ago
Read 2 more answers
Although “dog.jpg” and “dog.JPG” and “Dog.jpg” and “DOG.JPG” all appear to be the same file, they are not considered the same wh
____ [38]
Because of the capitalization; when talking about computer science and programming things have to be very tedious and specific. <span />
5 0
3 years ago
what happens when you double-click on a file with an extension that represents an executable program?
Vlada [557]

Answer:

it will execute the file

Explanation:

3 0
3 years ago
g Write a program that allows a user to input any text in your program. Using the tools that we have discussed, your program sho
Paladinen [302]

Answer:

Explanation:

The following function/program is written in Java. It asks the user for a sentence as an input and then splits that sentence into an array of words. Then it creates an arrayList for all of the unique words, comparing each word in the sentence with all of those in the ArrayList. If a word is found in the ArrayList it cancels the loop and moves on the next word in the sentence. Finally, it counts all of the unique words in the ArrayList and prints that total to the screen.

public static void uniqueWords() {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter a sentence:");

       String sentence = in.nextLine();

       String words[] = sentence.split(" ");

       ArrayList<String> uniqueWords = new ArrayList<>();

       for (int x = 0; x < words.length; x++) {

           boolean exists = false;

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

               if (words[x].equals(uniqueWords.get(i))) {

                   exists = true;

                   break;

               }

           }

           if (exists == false) {

               uniqueWords.add(words[x]);

           }

       }

       System.out.println(uniqueWords.size());

   }

5 0
3 years ago
Other questions:
  • Motivation is best defined as
    9·2 answers
  • Why is ipsec considered to be a transparent security protocol?
    6·1 answer
  • In java, a class that is defined without an explicit extends clause ____.
    15·2 answers
  • A general-use dimmer switch is required to be counted as ? where installed in a single-gang box on a circuit wired with 12 awg c
    15·1 answer
  • Examine the following piece of code and determine the data type of the function's return value.
    11·1 answer
  • Data are sent through a network on bundles called _______. select one:
    8·2 answers
  • Of all excavation hazards, _______ poses the greatest risk
    8·1 answer
  • True or False? You should never move an injured person.<br> True<br> False
    6·1 answer
  • 1.Blocul care asigura impedanta necesara la intrarea aparatului de masurat numeric este:
    13·1 answer
  • Which statements are true regarding mainframe computers? Mainframes are fast-performing computers that have large storage capaci
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!