Questions
Show the output of the following code. Assume the node is in the usual info-link form...

Show the output of the following code. Assume the node is in the usual info-link form with info of the type int. Also, list and ptr are reference variables of the type Node.

list = new Node( );

list.info = 88;

ptr = new Node( );

ptr.info = 41;

ptr.link = null;

list.link = ptr;

ptr = new Node( );

ptr.info = 99;

ptr.link = list;

list = ptr;

ptr = new Node( );

ptr.info = 19;

ptr.link = list.link;

list.link = ptr;

ptr = list;

while(ptr != null)

{

     System.out.println(ptr.info);

     ptr = ptr.link;

}

Group of answer choices

88, 41, 99, 19

19, 41, 88, 99

41, 99, 88, 19

99, 19, 88, 41

In: Computer Science

I need to write a method that sorts a provided Linked list with bubble sort and...

I need to write a method that sorts a provided Linked list with bubble sort and using ONLY Java List Iterator Methods (Link Below)

https://docs.oracle.com/javase/8/docs/api/java/util/ListIterator.html  

  public static <E extends Comparable<? super E>> void bubbleSort(List<E> c) throws Exception {

    // first line to start you off

    ListIterator<E> iit = c.listIterator(), jit;

    /**** Test code: do not modify *****/

    List cc = new LinkedList(c);

    Collections.sort(c);

    ListIterator it1 = c.listIterator(), it2 = cc.listIterator();

while (it1.hasNext()) {

if (!it1.next().equals(it2.next()))

        throw new Exception("List not sorted");

}

    /***********************************/

  }

In: Computer Science

Write a Python function that takes a list of integers as a parameter and returns the...

Write a Python function that takes a list of integers as a parameter and returns the sum of the elements in the list. Thank you.

In: Computer Science

Write a Python function that takes a list of integers as a parameter and returns the...

Write a Python function that takes a list of integers as a parameter and returns the sum of the elements in the list. Thank you.

In: Computer Science

Professor Jennings claims that only 35% of the students at Flora College work while attending school....

Professor Jennings claims that only 35% of the students at Flora College work while attending school. Dean Renata thinks that the professor has underestimated the number of students with part-time or full-time jobs. A random sample of 82 students shows that 36 have jobs. Do the data indicate that more than 35% of the students have jobs? Use a 5% level of significance.

What are we testing in this problem?

single proportionsingle mean    

(a) What is the level of significance?


State the null and alternate hypotheses.

H0: p = 0.35; H1: p > 0.35H0: μ = 0.35; H1: μ < 0.35    H0: p = 0.35; H1: p < 0.35H0: p = 0.35; H1: p ≠ 0.35H0: μ = 0.35; H1: μ > 0.35H0: μ = 0.35; H1: μ ≠ 0.35


(b) What sampling distribution will you use? What assumptions are you making?

The Student's t, since np > 5 and nq > 5.The standard normal, since np > 5 and nq > 5.    The Student's t, since np < 5 and nq < 5.The standard normal, since np < 5 and nq < 5.


What is the value of the sample test statistic? (Round your answer to two decimal places.)


(c) Find (or estimate) the P-value.

P-value > 0.2500.125 < P-value < 0.250    0.050 < P-value < 0.1250.025 < P-value < 0.0500.005 < P-value < 0.025P-value < 0.005


Sketch the sampling distribution and show the area corresponding to the P-value.


(d) Based on your answers in parts (a) to (c), will you reject or fail to reject the null hypothesis? Are the data statistically significant at level α?

At the α = 0.05 level, we reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we reject the null hypothesis and conclude the data are not statistically significant.    At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are not statistically significant.


(e) Interpret your conclusion in the context of the application.

There is sufficient evidence at the 0.05 level to conclude that more than 35% of the students have jobs.There is insufficient evidence at the 0.05 level to conclude that more than 35% of the students have jobs.    

In: Statistics and Probability

1. Anystate Auto Insurance Company took a random sample of 376 insurance claims paid out during...

1. Anystate Auto Insurance Company took a random sample of 376 insurance claims paid out during a 1-year period. The average claim paid was $1560. Assume σ = $242.

Find a 0.90 confidence interval for the mean claim payment. (Round your answers to two decimal places.)

lower limit     $
upper limit     $


Find a 0.99 confidence interval for the mean claim payment. (Round your answers to two decimal places.)

lower limit     $
upper limit     $

2.Three experiments investigating the relation between need for cognitive closure and persuasion were performed. Part of the study involved administering a "need for closure scale" to a group of students enrolled in an introductory psychology course. The "need for closure scale" has scores ranging from 101 to 201. For the 78 students in the highest quartile of the distribution, the mean score was x = 178.10. Assume a population standard deviation of  σ = 7.93. These students were all classified as high on their need for closure. Assume that the 78 students represent a random sample of all students who are classified as high on their need for closure. How large a sample is needed if we wish to be 99% confident that the sample mean score is within 1.8 points of the population mean score for students who are high on the need for closure? (Round your answer up to the nearest whole number.)

3.Many people consider their smart phone to be essential! Communication, news, Internet, entertainment, photos, and just keeping current are all conveniently possible with a smart phone. However, the battery better be charged or the phone is useless. Battery life of course depends on the frequency, duration, and type of use. One study involving heavy use of the phones showed the mean of the battery life to be 12.25 hours with a standard deviation of 2.4 hours. Then the battery needs to be recharged. Assume the battery life between charges is normally distributed.

(a) Find the probability that with heavy use, the battery life exceeds 13 hours. (Round your answer to four decimal places.)


(b) You are planning your recharging schedule so that the probability your phone will die is no more than 5%. After how many hours should you plan to recharge your phone? (Round your answer to the nearest tenth of an hour.)
hours

In: Statistics and Probability

A report describes results of a survey of nearly 2,000 college faculty. The report indicates the...

A report describes results of a survey of nearly 2,000 college faculty. The report indicates the following.

  • 30.5% reported that they use Twitter and 69.5% said that they did not use Twitter.
  • Of those who use Twitter, 39.8% said they sometimes use Twitter to communicate with students.
  • Of those who use Twitter, 26.5% said that they sometimes use Twitter as a learning tool in the classroom.

Consider the chance experiment that selects one of the study participants at random and define the following events.

  • T = event that selected faculty member uses Twitter
  • C = event that selected faculty member sometimes uses Twitter to communicate with students
  • L = event that selected faculty member sometimes uses Twitter as a learning tool in the classroom

(a)

Two of the percentages given in the problem specify unconditional probabilities, and the other two percentages specify conditional probabilities. Which are conditional probabilities?

69.5% said that they did not use Twitter.30.5% reported that they use TwitterOf those who use Twitter, 26.5% said that they sometimes use Twitter as a learning tool in the classroom.Of those who use Twitter, 39.8% said they sometimes use Twitter to communicate with students.

(b)

Use the given information to determine the following probabilities. (Round your answers to three decimal places.)

(i)

P(T )

(ii)

P(TC)

(iii)

P(C|T )

(iv)

P(L|T )

(c)

Complete the following hypothetical 1,000 table using the given probabilities. (Round your answers to the nearest integer.)

Uses Twitter (T) Does Not Use Twitter (not T) Total
Uses Twitter to Communicate with Students (C)
Does Not Use Twitter to Communicate with Students (not C)
Total 1,000

Use the information in the table to calculate

P(C),

the probability that the selected study participant sometimes uses Twitter to communicate with students.

(d)

Complete the following hypothetical 1,000 table using the given probabilities. (Round your answers to the nearest integer.)

Uses Twitter (T) Does Not Use Twitter (not T) Total
Uses Twitter as a Learning Tool in Classroom (L)
Does Not Use Twitter as a Learning Tool in Classroom (not L)
Total 1,000

Use the information in the table to calculate

P(L),

the probability that the selected study participant sometimes uses Twitter as a learning tool in the classroom.

In: Statistics and Probability

Assignment #7: One-sample Chi-Square Directions: Use the Chi-Square option in the Nonparametric Tests menu to answer...

Assignment #7: One-sample Chi-Square
Directions: Use the Chi-Square option in the Nonparametric Tests menu to answer the questions based on the following scenario. (Assume a level of significance of .05 and use information from the scenario to determine the expected frequencies for each category)

During the analysis of the district data, it was determined that one high school had substantially higher Graduate Exit Exam scores than the state average and the averages of high schools in the surrounding districts. To better understand possible reasons for this difference, the superintendent conducted several analyses. One analysis examined the population of students who completed the exam. Specifically, the superintendent wanted to know if the distribution of special education, regular education, and gifted/talented test takers from the local high school differed from the statewide distribution. The obtained data are provided below.



Special Education* Regular Education Gifted/Talented
Number of students from the local high school who took the Graduate Exit Exam 20 88 15
Percent of test taking students statewide who took the Graduate Exit Exam 11% 70% 19%




*For purposes of testing, special education includes any student who received accommodations during the exam.
1. If the student distribution for the local high school did not differ from the state, what would be the expected percentage of students in each category?
2. What were the actual percentages of local high school students in each category? (Report final answer to two decimal places)
3. State an appropriate null hypothesis for this analysis.
4. What is the value of the chi-square statistic?
5. What are the reported degrees of freedom?
6. What is the reported level of significance?
7. Based on the results of the one-sample chi-square test, was the population of test taking students at the local high school statistically significantly different from the statewide population?
8. Present the results as they might appear in an article. This must include a table and narrative statement that reports and interprets the results of the analysis.
Note: The table must be created using your word processing program. Tables that are copied and pasted from SPSS are not acceptable.

In: Statistics and Probability

Professor Jennings claims that only 35% of the students at Flora College work while attending school....

Professor Jennings claims that only 35% of the students at Flora College work while attending school. Dean Renata thinks that the professor has underestimated the number of students with part-time or full-time jobs. A random sample of 80 students shows that 38 have jobs. Do the data indicate that more than 35% of the students have jobs? Use a 5% level of significance.

What are we testing in this problem?

single proportionsingle mean    

(a) What is the level of significance?


State the null and alternate hypotheses.

H0: p = 0.35; H1: p > 0.35H0: μ = 0.35; H1: μ ≠ 0.35    H0: μ = 0.35; H1: μ > 0.35H0: p = 0.35; H1: p ≠ 0.35H0: p = 0.35; H1: p < 0.35H0: μ = 0.35; H1: μ < 0.35


(b) What sampling distribution will you use? What assumptions are you making?

The Student's t, since np < 5 and nq < 5.The standard normal, since np > 5 and nq > 5.    The standard normal, since np < 5 and nq < 5.The Student's t, since np > 5 and nq > 5.


What is the value of the sample test statistic? (Round your answer to two decimal places.)


(c) Find (or estimate) the P-value.

P-value > 0.2500.125 < P-value < 0.250    0.050 < P-value < 0.1250.025 < P-value < 0.0500.005 < P-value < 0.025P-value < 0.005


Sketch the sampling distribution and show the area corresponding to the P-value.


(d) Based on your answers in parts (a) to (c), will you reject or fail to reject the null hypothesis? Are the data statistically significant at level α?

At the α = 0.05 level, we reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we reject the null hypothesis and conclude the data are not statistically significant.    At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are not statistically significant.


(e) Interpret your conclusion in the context of the application.

There is sufficient evidence at the 0.05 level to conclude that more than 35% of the students have jobs.There is insufficient evidence at the 0.05 level to conclude that more than 35% of the students have jobs.

In: Statistics and Probability

Professor Jennings claims that only 35% of the students at Flora College work while attending school....

Professor Jennings claims that only 35% of the students at Flora College work while attending school. Dean Renata thinks that the professor has underestimated the number of students with part-time or full-time jobs. A random sample of 80 students shows that 38 have jobs. Do the data indicate that more than 35% of the students have jobs? Use a 5% level of significance.

What are we testing in this problem?

single proportionsingle mean    

(a) What is the level of significance?


State the null and alternate hypotheses.

H0: p = 0.35; H1: p > 0.35H0: μ = 0.35; H1: μ ≠ 0.35    H0: μ = 0.35; H1: μ > 0.35H0: p = 0.35; H1: p ≠ 0.35H0: p = 0.35; H1: p < 0.35H0: μ = 0.35; H1: μ < 0.35


(b) What sampling distribution will you use? What assumptions are you making?

The Student's t, since np < 5 and nq < 5.The standard normal, since np > 5 and nq > 5.    The standard normal, since np < 5 and nq < 5.The Student's t, since np > 5 and nq > 5.


What is the value of the sample test statistic? (Round your answer to two decimal places.)


(c) Find (or estimate) the P-value.

P-value > 0.2500.125 < P-value < 0.250    0.050 < P-value < 0.1250.025 < P-value < 0.0500.005 < P-value < 0.025P-value < 0.005


Sketch the sampling distribution and show the area corresponding to the P-value.


(d) Based on your answers in parts (a) to (c), will you reject or fail to reject the null hypothesis? Are the data statistically significant at level α?

At the α = 0.05 level, we reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we reject the null hypothesis and conclude the data are not statistically significant.    At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are not statistically significant.


(e) Interpret your conclusion in the context of the application.

There is sufficient evidence at the 0.05 level to conclude that more than 35% of the students have jobs.There is insufficient evidence at the 0.05 level to conclude that more than 35% of the students have jobs.

In: Statistics and Probability