answer.
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
jenyasd209 [6]
2 years ago
7

What are the correct intermediate steps of the following data set when it is being sorted with the bubble sort? 15, 20, 10, 18

Mathematics
1 answer:
love history [14]2 years ago
4 0

Answer:

A. 15,10,20,18 -- 15,10,18,20 -- 10,15,18,20

Step-by-step explanation:

Bubble sorting can be defined as a technique or methodology whereby numbers that are not in their proper order are sorted into proper order that is from smallest to highest( increasing to decreasing order).

The method of bubble sorting involves the shuffling or swapping of adjacent numbers until the numbers are well sorted or arranged.

In the above question, we were given, a set of numbers:

15, 20, 10, 18

Step 1

20 is adjacent to 10

20 > 10

hence we swap

= 15,10,20,18

Step 2

From, 15,10, 20,18

20 is adjacent to 18

20 > 18

hence we swap

= 15,10,18,20

Step 3

From step 2, which gave us 15,10,18,20

15 us adjacent to 10

15 > 10

We swap

= 10,15,18,20

Hence,

15, 20, 10, 18 -- 15,10,20,18 -- 15,10,18,20 -- 10,15,18,20

Therefore, Option A is the correct option.

You might be interested in
A salesperson receives step commission on sales calculated as follows:
kykrilka [37]

Answer:

$2278.846

Step-by-step explanation:

Given the following commision steps :

8% on first $1000;

12% next $2000;

20% on sales above $3000

Recorded sales for a week :

Monday $1500.00

Tuesday $3000.00

Wednesday $ 970.00

Thursday $4563.81

Friday $2760.42

This assu es that commision is calculated after weekly sales:

Total:

(1500 + 3000 + 970 + 4563.81 + 2760.42)

= $12794.23

8% on first $1000

0.08 × $1000 = $80

12% of $2000 = $240

20% of $(12794.23 - 3000)

= 0.2 × 9794.23

= 1958.846

Total commision for the week :

$(80 + 240 + 1958.846)

= $2278.846

7 0
2 years ago
Find the inverse of the function. y = 2x2 –4
Alex73 [517]

Answer:

The inverse function is y=\sqrt{\frac{x+4}{2}}


Step-by-step explanation:

The given function is y=2x^2-4.


This function is only invertible on the interval, x\ge 0.


To find the inverse on this interval, we interchange x and y.

x=2y^2-4


We now make y the subject to get,


x+4=2y^2


\Rightarrow \frac{x+4}{2}=y^2


\Rightarrow \pm \sqrt{\frac{x+4}{2}}=y


But the given interval is x\geq 0, This implies that, y\geq 0.


y=\sqrt{\frac{x+4}{2}}


4 0
2 years ago
Read 2 more answers
Janice needs to re-shingle the roof of her house. One bundle of shingles costs $35.99 and covers 2.25 m2.
larisa [96]
To calculate the number of shingles, we first calculate for the total area of the roof of Janice's house. From the figure, we can calculate the area of the two shapes: pyramid and a rectangular prism.

A(pyramid) = lw+l√[(w/2)²+h²]+w√[(l/2)²+h²]
A = 208 m²
A(prism) = 2(wl+hl+hw)
A = 293 m²

Total area = 501 m²

Number of shingles she needs = 501 m² / 2.25 m² =<span> 223</span><span>
</span>
7 0
2 years ago
At a college, 72% of courses have final exams and 46% of courses require research papers. Suppose that 31% of courses have a res
beks73 [17]

Answer:

0.25

Step-by-step explanation:

72% of courses have final exams and 46% of courses require research papers which means probability of 0.72 for courses that have final exams and 0.46 for courses that require research papers.

31% of courses have a research paper and a final exam, which means probability of 0.31 for both courses with exams and research papers, using Venn diagram approach, find picture attached to the solution.

P(R or E) = P(R) + P(E) - P(R and E), which gives:

P(R or E) = 0.15 + 0.41 - 0.31

P(R or E) = 0.25.

6 0
2 years ago
$1.12 for 8.2 ounces? Unit Rate
Reil [10]
That is around 13 or 14 cents. The specific answer is 13.65853659 cents, but you can either round up to 14 or round down to 13 (rounding up to 14 is the correct way to do it.)

First you divide 1.12 by 8.2 to get the unit rate because It takes $1.12 to buy 8.2 ounces. 1.12/8.2=13.65853659
4 0
2 years ago
Other questions:
  • A downhill skier was able to move 560 meters in 25 seconds. What is the skier’s average speed? (Round your answer to the nearest
    5·1 answer
  • Find the exact values below. if applicable click on undefined cot(11pi/6)
    6·1 answer
  • The speed, s, of the current in a certain whirlpool is modeled by s=300/d, where d is the distance from the center of the whirlp
    13·2 answers
  • Which expressions are equivalent to \dfrac{k}2 2 k ? start fraction, k, divided by, 2, end fraction
    6·1 answer
  • The marketing department at Cable TV (CTV) wants to know how promotional advertising affects the number of viewers for the Satur
    11·1 answer
  • For the binomial expansion of (x + y)^10, the value of k in the term 210x 6y k is a) 6 b) 4 c) 5 d) 7
    12·1 answer
  • How many words can be formed by using the W,X,Y,Z if repetitions is not allowed?
    9·1 answer
  • Samantha is wall papering her bedroom and wants to make sure that she bought enough wall paper. Each wall in her room measures 1
    9·1 answer
  • If Eric Sanchez saves $60 a month by using coupons and doing comparison shopping, (a) what is the amount for a year? (b) What wo
    9·1 answer
  • A law firm is going to designate associates and partners to a big new case. The daily rate charged to the client for each associ
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!