Questions
1. Find the​ (a) mean,​ (b) median,​ (c) mode, and​ (d) midrange for the given sample...

1. Find the​ (a) mean,​ (b) median,​ (c) mode, and​ (d) midrange for the given sample data.

An experiment was conducted to determine whether a deficiency of carbon dioxide in the soil affects the phenotype of peas. Listed below are the phenotype codes where 1=smooth-yellow​,2=smooth-green​, 3=wrinkled-yellow​, and 4=wrinkled-green.

Do the results make​ sense?

3

1

3

4

4

1

2

4

1

4

3

3

3

3

​(a) The mean phenotype code is _____.

2. Statistics are sometimes used to compare or identify authors of different works. The lengths of the first 10 words in a book by Terry are listed with the first 10 words in a book by David. Find the mean and median for each of the two​ samples, then compare the two sets of results.

​Terry:

2

2

2

11

8

9

2

6

3

3

​David:

3

4

3

2

3

1

3

1

4

3

The mean number of letters per word in​ Terry's book is _____.

3. Refer to the data set of​ times, in​ minutes, required for an airplane to taxi out for​ takeoff, listed below. Find the mean and median. How is it helpful to find the​ mean?

36

35

25

11

26

29

30

32

19

39

45

31

31

14

40

27

24

48

10

43

18

30

45

31

13

34

17

16

23

40

47

31

27

34

17

47

28

35

26

44

14

43

30

14

30

18

38

13

Click the icon for the taxi out takeoff data.

Find the mean and median of the data set using a calculator or similar data analysis technology.

The mean of the data set is _____ minutes.

4. Find the mean of the data summarized in the given frequency distribution. Compare the computed mean to the actual mean of 50.4 miles per hour.

Speed​ (miles per​ hour)

42−45

46−49

50−53

54−57

58−61

Frequency

29

12

6

3

2

The mean of the frequency distribution is _____ miles per hour.

5.Six different​ second-year medical students at Bellevue Hospital measured the blood pressure of the same person. The systolic readings​ (in mmHg) are listed below. Find the​ range, variance, and standard deviation for the given sample data. If the​ subject's blood pressure remains constant and the medical students correctly apply the same measurement​ technique, what should be the value of the standard​ deviation?

126   126   138   125   137   134

Range= ______ mmHg

In: Statistics and Probability

Using Java, Ask for the runner’s name Ask the runner to enter a floating point number...

Using Java,

  1. Ask for the runner’s name

  2. Ask the runner to enter a floating point number for the number of miles ran, like 3.6 or 9.5

  3. Then ask for the number of hours, minutes, and seconds it took to run

  4. Format the numbers with leading 0's if the pace is 8 minutes and 3 second, it should be 8:03 and for marathon time, if its 1 hour and 15 minutes and 9 seconds, it should be 1:15:09

  5. Please read through the whole thing, as the pace table example and fastest man time is listed below...

  • A marathon is 26.219 miles

  • Pace is how long it takes in minutes and seconds to run 1 mile.

Example Input:
What is your first name? // user enters Pheidippides
How far did you run today? 10.6 // user enters 10.6 miles

How long did it take? Hours: 1 // user enters 1 hours

Minutes: 34 // user enters 34 minutes

Seconds: 17 // user enters 17 seconds

Example Output:

Hi Pheidippides
Your pace is 8:53 (minutes: seconds)
At this rate your marathon time would be 3:53:12
Good luck with your training!

After your program tells the user what their pace is, your program will build a table showing the following columns. The pace table should start with the fastest man time which is Eliud Kipchoge with a pace of 4:37 and 2:01:04 and continue in 17 minute and 37 second intervals until you reach the marathon time of the user.

Example: (THE PACE TABLE EXAMPLE)

Pace Table
Pace Marathon
4:37 2:01:04 ←- Eliud Kipchoge
5:17 2:18:41
5:57 2:36:18
6:37 2:53:55
7:18 3:11:32
7:58 3:29:09
8:38 3:46:46
8:53 3:53:12 ← Pheidippides






HINTS

  • The table should start with the World Record pace and time which is 4:37, 2:01:04.

  • Then continues in 17 minute and 37 second intervals until you reach the marathon time of the user.

  • Use a static function to print the pace table, introduce a while loop.

  • For the first person it should call a printTable function

    • Example : printTable (pace, “<--- Eliud Kipchoge”)

    • The pace table continues until it reaches the user

    • printTable (myPace, name) something like that  

  • For the marathon and pace time, make sure the format has 0’s if the time is 9 seconds, it should be 09.

  • Use the printf statement for formatting output (“02d %f%s”)

In: Computer Science

NewTech Medical Devices is a medical devices wholesaler that commenced business on June 1, 2019. NewTech...

NewTech Medical Devices is a medical devices wholesaler that commenced business on June 1, 2019. NewTech Medical Devices purchases merchandise for cash and on open account. In June 2019, NewTech Medical Devices engaged in the following purchasing and cash payment activities:

DATE TRANSACTIONS
2019
June 1 Issued Check 101 to purchase merchandise, $3,800.
3

Purchased merchandise for $1,350 from BioCenter Inc., Invoice 606; terms 2/10, n/30.

5

Purchased merchandise for $5,150, plus a freight charge of $100, from New Concepts Corporation, Invoice 1011, terms 2/10, n/30.

9

Paid amount due to BioCenter Inc. for purchase of June 3, less discount, Check 102.

10

Received Credit Memorandum 227 from New Concepts Corporation for damaged merchandise totaling $350 that was returned; the goods were purchased on Invoice 1011, dated June 5.

11

Purchased merchandise for $1,610 from BioCenter Inc., Invoice 612; terms 2/10, n/30.

14

Paid amount due to New Concepts Corporation for Invoice 1011 of June 5, less the return of June 10 and less the cash discount, Check 103.

15

Purchased merchandise with a list price of $8,500 and trade discounts of 20 percent and 15 percent from Park Research, Invoice 1029, terms n/30.

20 Issued Check 104 to purchase merchandise, $2,300.
25

Returned merchandise purchased on June 20 as defective, receiving a cash refund of $210.

30

Purchased merchandise for $2,500, plus a freight charge of $78, from New Concepts Corporation, Invoice 1080; terms 2/10, n/30.

Required:
Journalize the transactions in a general journal.


Analyze:
What was the amount of trade discounts received on the June 15 purchase from Park Research?

Issued Check 101 to purchase merchandise, $3,800.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 01, 2019

Purchased merchandise for $1,350 from BioCenter Inc., Invoice 606; terms 2/10, n/30.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 03, 2019

Purchased merchandise for $5,150, plus a freight charge of $100, from New Concepts Corporation, Invoice 1011, terms 2/10, n/30.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 05, 2019

Paid amount due to BioCenter Inc. for purchase of June 3, less discount, Check 102.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 09, 2019

Received Credit Memorandum 227 from New Concepts Corporation for damaged merchandise totaling $350 that was returned; the goods were purchased on Invoice 1011, dated June 5.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 10, 2019

Purchased merchandise for $1,610 from BioCenter Inc., Invoice 612; terms 2/10, n/30.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 11, 2019

Paid amount due to New Concepts Corporation for Invoice 1011 of June 5, less the return of June 10 and less the cash discount, Check 103.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 14, 2019

Purchased merchandise with a list price of $8,500 and trade discounts of 20 percent and 15 percent from Park Research, Invoice 1029, terms n/30.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 15, 2019

Issued Check 104 to purchase merchandise, $2,300.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 20, 2019

Returned merchandise purchased on June 20 as defective, receiving a cash refund of $210.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 25, 2019

Purchased merchandise for $2,500, plus a freight charge of $78, from New Concepts Corporation, Invoice 1080; terms 2/10, n/30.

Note: Enter debits before credits.

DATE GENERAL JOURNAL DEBIT CREDIT
June 30, 2019

Analyze

What was the amount of trade discounts received on the June 15 purchase from Park Research?

Trade discount received

In: Accounting

Download the dataset returns.xlsx. This dataset records 83 consecutive monthly returns on the stock of Philip...

Download the dataset returns.xlsx. This dataset records 83 consecutive monthly returns on the stock of Philip Morris (MO) and on Standard & Poor’s 500 stock index, measured in percent. Investors might be interested to know if the return on MO stock is influenced by the movement of the S&P 500 index. Please be aware that return is defined as new price − old price old price × 100%, so it is always reported as a percentage.

6. Fit a linear regression model for this dataset and verify that the least-squares regression line is ˆy = 0.3537 + 1.1695x. Also record the values of the regression standard error, sample correlation, and coefficient of determination. Interpret the coefficient of determination in context.

7. Calculate a 95% confidence interval for the slope of the regression line. What is the margin of error for this interval? Interpret this interval in context.

8. Perform a hypothesis test to see if there is a linear relationship between the two variables. Be sure to write the null and alternative hypotheses, calculate the test statistic, find the p-value and critical value, and state an appropriate conclusion. Round to 4 decimal places.

9. Calculate a 95% confidence interval for the mean monthly returns on the stock of Philip Morris when the S&P stock index is 3.0. Interpret this interval in context.

10. Calculate a 95% prediction interval for the monthly return on the stock of Philip Morris when the S&P stock index is 3.0. Interpret this interval in context.

MO S&P
-5.7 -9
1.2 -5.5
4.1 -0.4
3.2 6.4
7.3 0.5
7.5 6.5
18.6 7.1
3.7 1.7
-1.8 0.9
2.4 4.3
-6.5 -5
6.7 5.1
9.4 2.3
-2 -2.1
-2.8 1.3
-3.4 -4
19.2 9.5
-4.8 -0.2
0.5 1.2
-0.6 -2.5
2.8 3.5
-0.5 0.5
-4.5 -2.1
8.7 4
2.7 -2.1
4.1 0.6
-10.3 0.3
4.8 3.4
-2.3 0.6
-3.1 1.5
-10.2 1.4
-3.7 1.5
-26.6 -1.8
7.2 2.7
-2.9 -0.3
-2.3 0.1
3.5 3.8
-4.6 -1.3
17.2 2.1
4.2 -1
0.5 0.2
8.3 4.4
-7.1 -2.7
-8.4 -5
7.7 2
-9.6 1.6
6 -2.9
6.8 3.8
10.9 4.1
1.6 -2.9
0.2 2.2
-2.4 -3.7
-2.4 0
3.9 4
1.7 3.9
9 2.5
3.6 3.4
7.6 4
3.2 1.9
-3.7 3.3
4.2 0.3
13.2 3.8
0.9 0
4.2 4.4
4 0.7
2.8 3.4
6.7 0.9
-10.4 0.5
2.7 1.5
10.3 2.5
5.7 0
0.6 -4.4
-14.2 2.1
1.3 5.2
2.9 2.8
11.8 7.6
10.6 -3.1
5.2 6.2
13.8 0.8
-14.7 -4.5
3.5 6
11.7 6.1
1.3 5.8

In: Statistics and Probability

DataSpan, Inc., automated its plant at the start of the current year and installed a flexible...

DataSpan, Inc., automated its plant at the start of the current year and installed a flexible manufacturing system. The company is also evaluating its suppliers and moving toward Lean Production. Many adjustment problems have been encountered, including problems relating to performance measurement. After much study, the company has decided to use the performance measures below, and it has gathered data relating to these measures for the first four months of operations.

Month

1 2 3 4
Throughput time (days) ? ? ? ?
Delivery cycle time (days) ? ? ? ?
Manufacturing cycle efficiency (MCE) ? ? ? ?
Percentage of on-time deliveries 75% 76% 81% 88%
Total sales (units) 10,410 10,450 10,550 10,430

Management has asked for your help in computing throughput time, delivery cycle time, and MCE. The following average times have been logged over the last four months:

Average per Month (in days)

1 2 3 4
Move time per unit 0.7 0.6 0.4 0.3
Process time per unit 0.5 0.7 0.5 0.3
Wait time per order before start of production 9.2 8.0 5.0 4.0
Queue time per unit 3.2 3.2 2.6 1.3
Inspection time per unit 0.4 0.3 0.4 0.5

Required:

1-a. Compute the throughput time for each month. (Round your answers to 1 decimal place.)

1-b. Compute the manufacturing cycle efficiency (MCE) for each month. (Round your answers to 1 decimal place.)

Manufacturing Cycle Efficiency (MCE)
Month 1 %
Month 2 %
Month 3 %
Month 4 %

1-c. Compute the delivery cycle time for each month. (Round your answers to 1 decimal place.)

Delivery Cycle Time
Month 1 days
Month 2 days
Month 3 days
Month 4 days

3-a. Refer to the move time, process time, and so forth, given for month 4. Assume that in month 5 the move time, process time, and so forth, are the same as in month 4, except that through the use of Lean Production the company is able to completely eliminate the queue time during production. Compute the new throughput time and MCE. (Round your answers to 1 decimal place.)

Month 5
Throughput time days
Manufacturing cycle efficiency (MCE) %


3-b. Refer to the move time, process time, and so forth, given for month 4. Assume in month 6 that the move time, process time, and so forth, are again the same as in month 4, except that the company is able to completely eliminate both the queue time during production and the inspection time. Compute the new throughput time and MCE. (Round your answers to 1 decimal place.)

Month 6
Throughput time days
Manufacturing cycle efficiency (MCE) %

In: Accounting

Please complete the following problems in Microsoft Word / Excel document and post to the drop...

Please complete the following problems in Microsoft Word / Excel document and post to the drop box.

1) Interest rates and bond ratings (LO16-2) A previously issued A2, 15-year industrial bond provides a return three-fourths higher than the prime interest rate of 11 percent. Previously issued A2 public utility bonds provide a yield of three-fourths of a percentage point higher than previously issued A2 industrial bonds of equal quality. Finally, new issues of A2 public utility bonds pay three-fourths of a percentage point more than previously issued A2 public utility bonds.What should be the interest rate on a newly issued A2 public utility bond?

2) Fourteen years ago, the U.S. Aluminum Corporation borrowed $6.5 million. Since then, cumulative inflation has been 98 percent (a compound rate of approximately 65 percent per year).

a. When the firm repays the original $6.5 million loan this year, what will be the effective purchasing power of the $6.5 million? (Hint: Divide the loan amount by one plus cumulative inflation.)

b. To maintain the original $6.5 million purchasing power, how much should the lender be repaid? (Hint: Multiply the loan amount by one plus cumulative inflation.)

c. If the lender knows he will receive $6.5 million in payment after 14 years, how might he be compensated for the loss in purchasing power? A descriptive answer is acceptable.

3)Tobacco Company of America is a very stable billion-dollar company with sales growth of about 5 percent per year in good or bad economic conditions. Because of this stability (a correlation coefficient with the economy of +.3 and a standard deviation of sales of about 5 percent from the mean), Mr. Weed, the vice-president of finance, thinks the company could absorb some small risky company that could add quite a bit of return without increasing the company’s risk very much. He is trying to decide which of the two companies he will buy. Tobacco Company of America’s cost of capital is 10 percent.

Computer Whiz Company (CWC)
(cost $75 million)


American Micro-Technology (AMT) (cost $75 million)

Probability

Aftertax Cash Flows for 10 Years
($ millions)

Probability

Aftertax Cash Flows for 10 Years
($ millions)

0.3

$ 6




0.2

$(1)

0.3

10




0.2

3

0.2

16




0.2

10

0.2

25




0.3.

25








0.1

31

a. What is the expected cash flow for each company?

b. Which company has the lower coefficient of variation?

c. Compute the net present value of each company.

d. Which company would you pick, based on net present values

In: Finance

Write a C++ program to calculate the time to drain a cylindrical water tank for an...

Write a C++ program to calculate the time to drain a cylindrical water tank for an initial water height ranging from 1 to 10 feet (specifically for 1, 2, 4, 6, 8, and 10 ft). The tank has a radius (rt) of 2 feet and the drain radius (rd) is 0.3 inch. The gravitational constant (g) is 32.2 feet/sec2.

The formula for time to drain the tank is

time=(rtrd)2h/vavg

where, average velocity, vavg=0.5(2gh).5

In your program, assign the values to the variables rt, rd, and g. Prompt user to enter the value of h. The program should calculate the value of vavg, and then display time in hours.

Using MS Visual Studio, create a project folder called tank and a source code file tank.cpp.

Use the function pow() in the formulas and NOT sqrt().

Set up the output statements (cout) such that the one line display looks like the following:

Initial water height (ft.) = 1; Time to drain (hrs.) = 0.44

STEP 1: Analyze the Problem –

There is only one required output (time in hour of data type double) and one input (initial water height in ft of data type int). All intermediate variables will be assigned a data type of double.

STEP 2: Develop a Solution –

Pseudo code is shown below.

Convert all input data to the same unit (ft)

Display a prompt to enter initial height of water

Read a value for the height

Calculate average velocity, using the given formulas

Display the calculated time

Hand calculation for h = 1 ft, rt = 2 ft, rd = 0.3 inch, and g = 32.2 ft/sec2:

time = ?

STEP 3: Code the Solution -

You can start the program as shown below:

// Filename:

// C++ program to calculate time to drain water tank

// Written by: Your Name   ON: Date

#include <iostream>

#include <iomanip>

#include <cmath>

using namespace std;

int main()

{

     int h;

     double rt = 2.0, rd = 0.3, g = 32.2;

     double vavg, time;

// Input initial water height (h)

//---

// Set output formats

     cout << setiosflags(ios::fixed)

           << setiosflags(ios::showpoint)

           << setprecision(2);// Calculate average velocity in ft/hr

//---

// Calculate time in hrs to drain

// NOTE: The function pow(double a, int n) returns an

//---

// Display results in the specified format

//---

     return 0;

}

STEP 4: Test and Correct the Program -

If the program shows the correct output, copy and paste the output into MS Word. Also copy and paste the source code to the word processor as well. To copy the display window contents, click on the small black box in the upper left corner, select Edit -> Select All, then click again on the box and select Edit -> Copy.

Test the code by changing initial heights to 2, 4, 6, 8, and 10 feet.

In: Computer Science

Assume the risk-free rate is 4% (rf = 4%), the expected return on the market portfolio...

Assume the risk-free rate is 4% (rf = 4%), the expected return on the market portfolio is 12% (E[rM] = 12%) and the standard deviation of the return on the market portfolio is 16% (σM = 16%). (All numbers are annual.) Assume the CAPM holds. *PLEASE HELP WITH E-H; INCLUDED ADDITIONAL QUESTIONS FOR REFERENCE*

1a. What are the expected returns on securities with the following betas: (i) β = 1.0, (ii) β = 1.5, (iii) β = 0.5, (iv) β = 0.0, (v) β = -0.5?

1b. What are the betas of securities with the following expect returns: (i) 12%, (ii) 20%, (iii) -4%?

1c. What are the portfolio weights (in the risk-free asset and the market portfolio) for efficient portfolios (portfolios on the efficient frontier) with expected returns of (i) 8%, (ii) 10%, (iii) 4%, (iv) 24%.

1d. What are the portfolio weights (in the risk-free asset and the market portfolio) for efficient portfolios (portfolios on the efficient frontier) with standard deviations of (i) 4%, (ii) 20%, (iii) 16%.

1e. What are the correlations between the portfolios in (i) Q.1c(i) and Q.1c(iv), (ii) Q.1d(i) and Q.1d(ii)?

1f. Can securities or portfolios with the following characteristics exist in equilibrium, assuming the CAPM holds (yes or no): (i) expected return 0%, standard deviation 40%, (ii) expected return 9%, standard deviation 9%, (iii) expected return 34%, standard deviation 70%.

1g. A stock with a beta of 1 (β = 1.0) has a current price of $40/share. Assuming it pays no dividends, what is the expected price in 1 year? If it is expected to pay a dividend of $4/share at the end of the year, what is the expected price in 1 year (after the payment of the dividend)? If the beta of the stock is 2 (β = 2.0), what are the expected prices under these 2 scenarios, i.e., no dividends or a dividend of $4

1h. For a moment (but just a moment) assume that the CAPM may not hold. In other words, alpha (α) is non-zero. If a non-dividend paying stock with a beta of 1 (β = 1.0) has a current price of $50/share and an expected price in 1 year of $60/share (based on your personal analysis of the companies prospects), what is the alpha (α) of this stock? What if the beta is 2 (β = 2.0)? What if the beta is 3 (β = 3.0)?

In: Finance

Silver bromide, AgBr (s), is an essential reagent in black and white film developing. It is,...

Silver bromide, AgBr (s), is an essential reagent in black and white film developing. It is,

however, only sparingly soluble in water. AgBr (s) has K = 5.0 × 10-13, making it difficult to

rinse AgBr from the film negative with water.

Instead, excess AgBr is removed by an aqueous solution of sodium thiosulfate (Na2S2O3), which forms the complex ion Ag(S2O3)23-:

Ag+ (aq) + 2 S2O32- (aq) Ag(S2O3)23- (aq) Kf = 4.7 × 10+13 a) To see how this helps, first determine the molar solubility of AgBr (s) in water.

sp

b) The large formation constant of Ag(S2O3)23- (aq) means that almost all of the silver is complexed with the thiosulfate. To determine how much, calculate the [Ag+] at equilibrium in a 1.0 L solution that initially contains 0.001 M silver ions and 0.200 M sodium thiosulfate. Do so by setting up an ICE table and assuming that x is small compared to 0.200 (but not 0.001). Show that this results in a value of x = [Ag(S2O3)23-] = 0.001. In other words, all of the Ag+ complexes.

c) Your result from part b suggests that no Ag+ remains in solution. This obviously can’t be correct, since it would result in an infinitely large reaction quotient that wouldn’t be equal to an admittedly large equilibrium constant. To determine the correct [Ag+], use the equilibrium concentrations determined in part b as your initial concentrations in a new ICE table. Then use Kf to determine [Ag+]. [This approach is called a stoichiometric shift and is useful when a reaction starts with only reactants but goes almost to completion. Is essence, we are approaching the equilibrium from the direction of all Ag(S2O3)23- and no Ag+ as opposed to the direction of all Ag+ and no Ag(S2O3)23-.]

d) Before we determine the solubility of AgBr (s) in a thiosulfate solution, we need to know the appropriate equilibrium constant. To find it, determine the value of the equilibrium constant for the reaction:

AgBr (s) + 2 S2O32- (aq) <-->Ag(S2O3)23- (aq) + Br - (aq) Kc = ??

e) Finally, calculate the molar solubility of AgBr (s) in 1.0 M sodium thiosulfate. In other words, what is [Ag(S2O3)23-] for the reaction given in part d when the initial concentration of thiosulfate is 1.0 M?

In: Chemistry

JAVA Start with the SelectionSort class in the zip file attached to this item. Keep the...

JAVA

Start with the SelectionSort class in the zip file attached to this item. Keep the name SelectionSort, and add a main method to it.

  • Modify the selectionSort method to have two counters, one for the number of comparisons, and one for the number of data swaps. Each time two data elements are compared (regardless of whether the items are in the correct order—we're interested in that a comparison is being done at all), increment the comparison counter. Each time two data items are actually swapped, increment the data swap counter.
  • At the end of the selectionSort method, print the size of the sorted array, and the counters. (Be sure to identify which counter is which in your print message
  • In your main method,
    • Declare a final int, NUM_ELEMENTS. Initially set NUM_ELEMENTS to 10 to debug your program.
    • Declare and create three double arrays of NUM_ELEMENTS length, lo2Hi, hi2Lo, random.
    • Initialize the first array, lo2Hi, with values 1.0, 2.0, …, NUM_ELEMENTS
    • Initialize the second array, hi2Lo with values NUM_ELEMENTS, 24.0,…, 1.0
    • Initialize the third array, random, with random double values between 0.0 and less than 1.0
    • call the selectionSort method using each array. (Note: you might want to print the array elements themselves for debugging purposes when NUM_ELEMENTS is small, but you’ll not want to print them with larger values for NUM_ELEMENTS.)
  • Run your program three times with different values for NUM_ELEMENTS: 1000, 2000 and 4000.

In your submission write some text describing the relationship between the number of comparisons of the various values of NUM_ELEMENTS. For example, what do we find if we divide the number of comparisons for 2000 elements by the number of comparisons for 1000 elements? What do we find if we divide the number of comparisons for 4000 elements by the number of comparisons for 2000 elements?

SELECTION SORT FILE MUST USE THIS IN PROGRAM!!! PLEASE

public class SelectionSort {
/** The method for sorting the numbers */
public static void selectionSort(double[] list) {
for (int i = 0; i < list.length - 1; i++) {
// Find the minimum in the list[i..list.length-1]
double currentMin = list[i];
int currentMinIndex = i;

for (int j = i + 1; j < list.length; j++) {
if (currentMin > list[j]) {
currentMin = list[j];
currentMinIndex = j;
}
}

// Swap list[i] with list[currentMinIndex] if necessary;
if (currentMinIndex != i) {
list[currentMinIndex] = list[i];
list[i] = currentMin;
}
}
}
}

In: Computer Science