Questions
import java.io.*; import java.util.Scanner; class Node { int data; Node next; Node(int d){ // Constructor   ...

import java.io.*;
import java.util.Scanner;

class Node {
int data;
Node next;
Node(int d){ // Constructor
   data = d;
   next = null;
}
}

class ACOLinkedList {// a Singly Linked List
   Node head; // head of list
   public void insert(int data){ // Method to insert a new node
       Node new_node = new Node(data); // Create a new node with given data
       new_node.next = null;
       if (head == null) // If the Linked List is empty, then make the new node as head
           head = new_node;
       else {// Else traverse till the last node and insert the new_node there
           Node last = head;
           while (last.next != null)
               last = last.next;
           last.next = new_node; // Insert the new_node at last node
       }
   }
}

class Main {
public static void main(String[] args)
   {
       ACOLinkedList list = new ACOLinkedList();/* Start with the empty list. */
       Scanner scan = new Scanner(System.in);
       int num;
       for (int i=0; i<10; i++){//Read list values
           num = scan.nextInt();
           list.insert(num);
       }
System.out.println(""+getSecondMax(list));
   }

   
public static int getSecondMax(ACOLinkedList list) {
       //TODO: Find the second largest element in the list (list could have any number of elements)
       //Example: if list={40, 20, 25, 15, 99}, the method should return: 40
  
      
   }

}

In: Computer Science

President Trump passed an executive bill, banning Chinese airplanes from landing in America, and Chinese Post...

President Trump passed an executive bill, banning Chinese airplanes from landing in America, and Chinese Post Graduate students from studying in America. As Chinese tourists and students contribute greatly to the US economy, how do you think this law by President trump will affect US productivity and economic growth? Comment particularly on human capital, physical capital, technology, natural resources, and labour

In: Economics

Dr. Song has spent all her life studying education outcomes and policy in the US. Recently,...

Dr. Song has spent all her life studying education outcomes and policy in the US. Recently, an article claimed that 6.6% of U. S. students take advanced placement exams. Dr. Song’s work with a random sample of 1,200 students shows that this number is actually 7.5%. Set up Dr. Song’s hypotheses and provide the appropriate test. What do you conclude?

In: Statistics and Probability

According to national data, about 15% of American college students earn a graduate degree. Using this...

According to national data, about 15% of American college students earn a graduate degree. Using this estimate, what is the probability that exactly 27 undergraduates in a random sample of 200 students will earn a college degree? Hint: Use the normal approximation to the binomial distribution, where p = 0.15 and q = 0.85. (Round your answer to four decimal places.) Incorrect: Your answer is incorrect.

In: Statistics and Probability

A random sample of the ACT scores of 300 students at Big State University provided a...

A random sample of the ACT scores of 300 students at Big State University provided a sample mean score of 21.8 with a sample standard deviation of 5.632. Find the 95% confidence interval for the mean score of all Big State students who had taken the ACT.?
(a) (21.2, 22.4) (b) (21.0, 22.6) (c) (20.9, 22.7) (d) (20.3, 23.3) (e) (21.3, 22.3)

In: Statistics and Probability

Full-time college students report spending a mean of 32 hours per week on academic activities, both...

Full-time college students report spending a mean of 32 hours per week on academic activities, both inside and outside the classroom. Assume the standard deviation of time spent on academic activities is 6 hours.

If you select a random sample of 25 full-time college students, what is the probability that the mean time spent on academic activities is at least 30 hours per week?

In: Statistics and Probability

At the beginning of the school year, representatives of credit card companies and banks flock to...

At the beginning of the school year, representatives of credit card companies and banks flock to college campuses. Students are often offered free gifts, student credit cards, free checking accounts other incentives for opening an account. But students usually have no credit history that lenders can use as a guide to assess risk. Why would these financial organizations try so hard to capture student business?

In: Finance

Invitations to a party are sent to 100 student. a) Suppose that for every student, the...

Invitations to a party are sent to 100 student.

a) Suppose that for every student, the chance that he or she will attend the party is 40% if it rains and 80% if it does not rain. If the weather forecast says it will rain with a probability of 30%, how many students are expected to show up for the party?

b) Find the probability that at least 70 students show up for the party. If you use approximation methods, state and check the conditions.

In: Statistics and Probability

Age of College Students Find the 80% confidence intervals for the variance and standard deviation of...

Age of College Students Find the 80% confidence intervals for the variance and standard deviation of the ages of seniors at Oak Park College if a random sample of 23 students has a standard deviation of 2.9 years. Assume the variable is normally distributed. Use the chi-square distribution table to find any chi-square values to three decimal places. Round the final answers to one decimal place.

In: Statistics and Probability

What percentage of your campus student body is female? Let p be the proportion of women...

What percentage of your campus student body is female? Let p be the proportion of women students on your campus.

(a) If no preliminary study is made to estimate p, how large a sample is needed to be 99% sure that a point estimate p^ will be within a distance of 0.05 from p?

(b) A report indicates that approximately 57% of college students are female. Answer part (a) using this estimate for p.

In: Statistics and Probability