List the resulting array after each iteration of the outer loop of the selection sort algorithm. Indicate the number of character-to-character comparisons made for each iteration (line 07 of the Selection Sort algorithm). Sort the following array of characters (sort into alphabetical order): C Q R B P D X.
public static void selectionSort (char[] a){
int n = a.length;
for (int i = 0; i < n; i++){
int min = i;
for (int j = i + 1; j < n; j++){
if (a[j] < a[min]){
min = j;
}
}
exchange(a, i, min);
}
}
private static void exchange(char[] a, int i, int j){
//exchange the value at index i with the value at index j
char temp = a[i];
a[i] = a[j];
a[j] = temp;
}

Answers

Answer 1

Answer:

$5+879+$431=$426809800


Related Questions

There are fifty photographs and each photographs is between 1.8 and 2.5 in size, what is the maximum storage required for a set of photographs and suitable medium to use for the copies to be sent to the gust

Answers

write down the factor on which gravitation force depends

Big data is processed using relational data bases. True or false

Answers

Answer:

false

because  Big data consist of a large quantity of data that may be structured, unstructured, or semi-structured

Explanation:

The statement Big data is processed using relational data bases is false.

We are given that;

The statement about data base

Now,

Big data is not processed using relational databases, but rather using non-relational databases such as MongoDB, Cassandra, HBase, etc. Relational databases are efficient for storing and processing structured data, which has a fixed schema and can be organized into tables and columns.

However, big data often includes unstructured and semi-structured data, such as videos, photos, webpages, social media posts, etc., which do not have a predefined schema and cannot be easily fitted into tables.

Non-relational databases are more flexible and scalable for handling such diverse and large data sets.

They also allow faster and cheaper processing of big data by using a horizontal architecture that distributes the data across multiple nodes.

Therefore, by data base the answer will be false.

To learn more about data base visit;

https://brainly.com/question/33179781

#SPJ6

Mounting a file systems means that: the file system is being created in the disk space. the file system is removed from the disk space. the file system is becoming available within the file system name space. the file system is becoming unavailable within the file system name space.

Answers

Answer:

Mounting is a process by which the operating system makes files and directories on a storage device (such as hard drive, CD-ROM, or network share) available for users to access via the computer's file system.

Explanation:

Explain all the generation of a computer,​

Answers

Answer:

Generation in computer terminology is a change in technology a computer is/was being used. Initially, the generation term was used to distinguish between varying hardware technologies. Nowadays, generation includes both hardware and software, which together make up an entire computer system.

Explanation:

hope its help

thank you

explain the working system of a computer with an example ​

Answers

Answer:

A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.

Hoped it helps you.

Answer:

A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.

Explanation:

A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.

help its in binary and im a small brain for that

Answers

The bit on the i-th position from RIGHT to LEFT has a value of 2 to the i (start counting with 0), so,

First one is,

[tex]0\cdot2^3+1\cdot2^2+0\cdot2^1+1\cdot2^0=5[/tex]

The next are thusly,

[tex]2,0,6[/tex] and 8.

Hope this helps :)

2. What is multimedia? Explain the components of multimedia​

Answers

The various components of multimedia are Text, Audio, Graphics, Video and Animation. All these components work together to represent information in an effective and easy manner. 1)Text: Text is the most common medium of representing the information. In multimedia, text is mostly use for titles, headlines,menu etc.

1. What are the process involved in data processing cycle?​

Answers

Answer:

This cycle involves the following steps: Collection of data. Preparation of the data into a format suitable for data entry, as well as error checking. Entry of the data into the system, which may involve manual data entry, scanning, machine encoding, and so forth.

hiiiiii


What two names are given to the blinking vertical line?

Answers

The answer is the curser

Click on three software applications that you can use to create a resume?

Answers

The three software applications that are applied for creating the resume are the word, writer, and the pages.

The information related to the resume is as follows:

It is a formal document made by the applicant for applying to the job. It should be along with the cover letter where the applicant shows interest in the particular job. Also, three types of software applications should be used for developing the resume i.e. word, writer, and the pages.

Therefore we can conclude that the three software applications that are applied for creating the resume are the word, writer, and the pages.

Learn more about the resume here: brainly.com/question/22931067

1. What kind of metrics would be useful that are based on testing knowledge after security awareness training? The metrics could be obtained immediately after training or at periodic intervals over several months.

Answers

Answer:

i hope it will helpful for your

mark me brainlist

Explanation:

Metrics refer to a system or standards of measurement.

These are measures of quantitative assessment for the purpose of comparing, tracking and performance measurement.

When it comes to measuring employee's awareness, people's knowledge of comprehensive security awareness it can be monitored through online security awareness programs. The knowledge of the employees can be tested in regard of a hot topic i.e cybersecurity practices.

Online quizes can be used to show whether employees know the risks of leaving a computer unmonitored.

Simulated or planned cyber attacks, mockdrills can be planned by the company to test the presence of mind, readiness of employees after the training.

These things should be done without any prior notice so that the employees feel the real pressure and the situation is same as the real world

The metrics used to test the security awareness of the trained staff must be consistent, cheap to gather, can be expressed as cardinal or in percentage , and most importantly they should be contextually relevant i.e they should faciliate decision makers to take actions and attain the desired objective.

Awareness surveys are important baseline to test the knowledge of employees after the training. They are simple to set up and easy to use as well.

For example- all employees know that there is a security team but do they know their goals and policies of the team. Awareness surveys can be used to check these parameters and get the desired results from it.


A piece of computer hardware designed to allow computer to communicate over a network is?

Answers

Answer:

The hardware is a Router....

Explain basic anatomy of computers.

Answers

Explanation:

A computer system can be divided into two components which are responsible for providing the mechanisms to input and output data, to manipulate and process data, and to electronically control the various input, output, and their storage. ... They are known as hardware and software.

_________ are the special effects that you see when one slide changes to another in slide show view​

Answers

Answer:

Transition effects

Explanation:

Transition effects are the special effects you see when one slide changes to another in slide show view.

One difference between multi-tasking using fork() versus using threads is that there is race condition among threads due to sharing global data. True False

Answers

Answer:

vnn

Explanation:

Answer:

true

Explanation:

make me as brainliast

If the host has a second network card, SECOND_NIC_NAME should get the name of that network card. If the managed host has no second network card, the playbook should set SECOND_NIC_NAME.

a. True
b. False

Answers

a. True is your answer

If a printer can print 10 characters per second how many minutes (rounded) would it take to print a page with 66 lines of 80 characters each

Answers

Answer:

8.8 Minutes

Explanation:

10 characters per second and 80 characters per line. 80/10=8 describes how many seconds it would take per line. Then multiply the time it takes per line by the number of lines which would be 8x66. Then from there you get 528 seconds and by doing some divison you get 8.8 minutes.

Consider the following program written in C syntax:
void swap(int a, int b) {
int temp;
temp = a;
a = b;
b = temp;
}
void main() {
int value = 2, list[5] = {1, 3, 5, 7, 9};
swap(value, list[0]);
swap(list[0], list[1]);
swap(value, list[value]);
}
. Passed by value-result

Answers

Answer:

5=swap 0

Explanation:

becouse it is invalid

Điền dữ liệu cho cột Phân loại theo điều kiện sau:
+ Nêu ngày công từ 20 ngày trở lên xếp loại A:
+ Nếu ngày công từ 18 ngay đến 20 ngày xếp loại B; 19
+ Nếu ngày công từ 17 ngày trở xuống xếp loại C. 20 (b) Tinh Lương = 490000 x Hệ số 21 (c) Tinh Thương biết
+ Nếu xếp loại A được thưởng 650000 đồng, + Nếu xếp loại B được thưởng 450000 đồng,
+ Nếu xếp loại C bị phạt 250000 đồng 25 (4) Tinh Thực lĩnh = Lương + Thưởng 26 (6) Tinh tổng phụ theo phái.

Answers

Answer:

need the PT thx have a nice day

Write a complete method to create an array of random integers. The method takes in three integer parameters: the array size, the lower bound, and the upper bound. The method also takes in a boolean parameter. The method creates and returns an integer array of the specified size that contains random numbers between and lower and upper bound. If the boolean parameter is true, the upper bound is inclusive. If the boolean parameter is false, the upper bound is not inclusive (meaning it is exclusive). Note the lower bound is always inclusive. If any of the parameters are invalid, null is returned.

Answers

Write a complete method to create an array of random integers. The method takes in three integer parameters: the array size, the lower bound, and the upper bound. The method also takes in a boolean parameter. The method creates and returns an integer array of the specified size that contains random numbers between and lower and upper bound. If the boolean parameter is true, the upper bound is inclusive. If the boolean parameter is false, the upper bound is not inclusive (meaning it is exclusive). Note the lower bound is always inclusive. If any of the parameters are invalid, null is returned.

Hope this helps!

which of the following not a hardware componet​

Answers

Answer:

antivirus.......hope this answers your question

Write a for loop that is going to check whether the values in data_list are even or odd. Use a for loop with a conditional to do this. For each value, it should add True to a new list is_even if the value is even, and False to is_even if the value is odd.

Answers

Answer:

Jsjshshusuaijwiwueheue

Which of the following accurately describes the overall trend in computing during the past 70-plus yearsa.
a. Toward physically larger, more powerful computers.
b. Toward physically larger, less powerful computers.
c. Toward physically smaller, less powerful computers.
d. Toward physically smaller, more powerful computers.
e. Toward physically smaller, single-use computers.

Answers

By simply reducing its size the computer can be speedier as indicated above, the concept of Einstein that messages can not spread faster than light speeds gives one of the limits to how quickly computers can work.

The computers have to become smaller to make them quicker. Therefore, Toward represents the total trend in the last 70+ years physically smaller, more powerful machines perfectly.

The wrong choice can be defined as follows:

For option a, it is wrong because physically larger computers acquire larger space.For option b, it is wrong because physically larger computers are acquiring in a larger space and it is more powerful.For option c, it is wrong because a small computer acquires a small space but it is less powerful as compared to physically larger.For option e, it is wrong because it is also known as a microcomputer that is powerful for both single and multiple users.

Therefore "Option d" is correct.

Learn more:

brainly.com/question/24504878

how can information technology transform the way business processes in an organization

Answers

Answer:

1. Through cooperation.

2. Understanding the market and the organization.

Explanation:

Information Technology can transform the way business processes in an organization only if there is cooperation in the company. The cooperation is that everyone is to agree on the change that it is going to cause.

An information Technologist can change the way business process if he or her understand the maker of the company and the company.

The major point is this:

1. The company must cooperate.

2. Everybody must accept change for it to grow higher.

3. Understand the market of the company and

4. understand the company and how they operate and then change and replace the parts that need replacement.

Which of the following is the most general description of what computers do?
A) They record information
B) They solve problems
C) They do math
D) They convert data

Answers

Answer:

d

Explanation:

u convert it to help understand :)

The most general description of what computers do is solving problems. Hence option B is true.

Ask about the most general description of what computers do.

Now we know that;

While computers indeed record information, perform mathematical calculations, and convert data, their primary purpose is to solve a wide range of problems by processing and manipulating data.

Computers are versatile machines that can handle various tasks, from complex computations to data analysis, communication, entertainment, and much more.

So, option B) "They solve problems" would be the most fitting choice.

To learn more about computers visit:

https://brainly.com/question/30256882

#SPJ3

Kapil and was a computer programmer during the third generation of computer language which kind of language was she using then​

Answers

Explanation:

Basic, Cobol, Pascal, Fortran, C, C++, Perl and Ada.

which of the following is a sign that your computer may have been infected with malicious code

A. Your computer runs faster than normal.
B. The pages you open are not distorted.
C. Your computer restarts on its own and then runs property.
D. Your computer locks up or stops responding.​

Answers

I believe it is d I could be wrong though

as computers work, they generate heat. Discuss the types and importance of cooling systems in the computer system ​

Answers

Answer:

If no cooling, computer is burning, whole house burming

Write the 5 roles of operating system.​

Answers

Answer:

» It controls the booting process.

» It carries out disk configuration processes.

» It's the master processor in end to end user tasks.

» It verifies the legitimate user by loading passwords.

» It carries and controls the machine cycle

Explanation:

[tex].[/tex]

Three brands of petrol were compared on five makes of car. Table below shows the kilometers travelled in each case, on a standard amount of petrol under similar conditions.

Petrol brand
Make of car
A B C D E

1
2
3
31.0 33.5 28.0 40.1 34.1
29.5 31.4 25.0 30.2 32.1
22.7 32.1 26.4 29.8 30.1

Required: Carry out the analysis of variance (ANOVA) and test, at the 5% level of significance, for differences between makes of car and between brands of petrol.​

Answers

Answer:

rwrertttttttttttttteeeeeewwqqqqqqdddf

Explanation:

3523232w3qewerderttrrtesdweasdwae2q4ewesdeswd

Other Questions
what does it mean increasingly????? A ________ is a statement that is usually true based on the facts available.Which word is it?Look at the photo What is the value of 2-3. 22,Pls help quick How do I describe artifact(Please put it in your own words) Which of the following is true of the id? It seeks immediate satisfaction of needs It is absent in newborns. It represents reason. chose all that apply Finish the sentence. His response was so ______ that I thought he must be angry at my question.A. pithyB. condensedC. conciseD. terse what method did jesus use to lead the rabbis to a clearer understanding of God's plan? 4/8 divided by 4/6thank you for your answer What is critical to Britain? (8p2 5 p4 2p3) + (4p3 + 2 p2 2p4) Distillation can be separated in what technique? A. Chemical B. Physical if q is inversely propotional to p, and q= 120 when p=2, form an equation connecting p and q and calculate q when p=5 Question 3.A statement in the introduction read, All other factors remained the same between the two groups. Make a list of factors that must remain constant in the experiment. 4. Referring to question 3, why is it essential that these factors be kept constant? What does transcontinental mean? classify the differences of household clothes and going out clothes 2. Which type of variation is represented by the following equation? A rocket of mass 40,000kg propelled by a force 10N acquires a speed of 3000m/s. determine the power extended Second ionization energies are always _____ than first ionization energies because the remaining electrons are attracted _____ strongly as the positive charge on the ion increases. A large jump in ionization energies is always observed after the _____ electrons have been removed. The diameter of a truck s tire is 50 inches. How far down the road will the tire travel if it makes one full turn? Use 3.14