Use this implementation of Integer node,
public class IntegerNode {
public int item;
public IntegerNode next;
public IntegerNode(int newItem) {
item = newItem;
next = null;
} // end constructor
public IntegerNode(int newItem, IntegerNode nextNode) {
item = newItem;
next = nextNode;
} // end constructor
} // end class IntegerNode
You need to implement add( ), delete( ), traverse( ) methods for an ordered linked list. And after insertion and deletion, your linked list will remain ordered.
Your code should include comments and documentation.
Testing
Here is the procedure for testing, which must be documented (a Word document is preferred, as is the use of screenshots).
In: Computer Science
PLEASE INCLUDE THE SOURCE CODE AND OUTPUT PLEASE AND
THANKS!!This assignment covers recursion and linked list which
include the following tasks:
2. a. Using C/C++, construct a single linked list of 8 nodes and assign random numbers as the nodes’ values. Then print the list from the first node to the last. Finally, free all memories of the linked list.
b. Using C/C++, construct a single linked list of 8 nodes and assign random numbers as the nodes’ values. Then create a new node and assign its value 100; insert this node at the sixth position of the list, and define a recursive function to print the list to verify the result. After that, delete the eighth node of the list to keep the linked list having 8 nodes, and define another recursive function to reprint the linked list backwards (from the last to the first).
In: Computer Science
11
The graph illustrates the distribution of test scores taken by College Algebra students. The maximum possible score on the test was 140, while the mean score was 71 and the standard deviation was 15. 2641567186101116Distribution of Test Sco
Use the "Empirical Rule", not a calculator or other technology. Do not round your answers.
What is the approximate percentage of students who scored
between 41 and 101 on the test?
%
What is the approximate percentage of students who scored higher
than 101 on the test?
%
What is the approximate percentage students who scored between 56
and 86 on the test?
%
What is the approximate percentage of students who scored between
71 and 86 on the test?
%
12
The heights of adult men in America are normally distributed,
with a mean of 69.4 inches and a standard deviation of 2.64 inches.
The heights of adult women in America are also normally
distributed, but with a mean of 64.7 inches and a standard
deviation of 2.55 inches.
In: Statistics and Probability
The following are the midterm exam grades (in %) of a simple random sample of 39 statistical students:
85 64 45 77 53 72 99 59 68 92 48 75 51 93 67 78 89 56 83 71 49 94 63 77 79 88 42 65 92 69 73 56 81 69 61 75 58 67 81
a). make a 75% confidence statement about the mean grade of all statistical students on a similar midterm
b). what is the sample proportion of the statistical students who scored more than 60% on this midterm exam?
c). make a 99.9% confidence statement about the proportion of all statistical students who would score more than 60% on a similar midterm
d) Which of the following would make the confidence interval you have calculated in part g) narrower? Which of the following would make it wider? Which of the following would have little effect on the interval?
In: Statistics and Probability
Show all manual calculations and provide commentary to your answers.
A company that manufactures bookcases finds that the average time it takes an employee to build a bookcase is 10 hours with a standard deviation of 2 hours. A random sample of 64 employees is taken. What is the likelihood that the sample mean will be 9 hours or more? The average grade point average (GPA) of undergraduate students in New York is normally distributed with a population mean of 2.5 and a population standard deviation of .5. Compute the following, showing all work:
(I) The percentage of students with GPA's between 1.3 and 1.8 is: (a) less than 5.6% (b) 5.7% (c) 5.9% (d) 6.2% (e) 6.3% (f) 6.6% (g) 7.3% (h) 7.5% i) 7.9% (j) more than 8%.
(II) The percentage of students with GPA's below 2.3 is:
(III) Above what GPA will the top 5% of the students be (i.e., compute the 95th percentile):
(IV) If a sample of 36 students is taken, what is the probability that the sample mean GPA will be between 2.60 and 2.75
4. At the end of the Halloween Festival, the organizers estimated that a family of participants spent in average of $45.00 with a standard deviation of $10.00. If 49 participants (49 = size of the sample) are selected randomly, what's the likelihood that their mean spent amount will be within $4 of the population mean? (mean +/- 4)
In: Statistics and Probability
More than 100 million people around the world are not getting enough sleep; the average adult needs between 7.5 and 8 hours of sleep per night. College students are particularly at risk of not getting enough shut-eye.
A recent survey of several thousand college students indicated
that the total hours of sleep time per night, denoted by the random
variable X, can be approximated by a normal model with
E(X) = 6.94 hours and SD(X) = 1.27 hours.
Question 1. Find the probability that the hours of sleep per night for a random sample of 4 college students has a mean x between 6.71 and 6.95.
(use 4 decimal places in your answer)
Question 2. Find the probability that the hours of sleep per night for a random sample of 16 college students has a mean x between 6.71 and 6.95.
(use 4 decimal places in your answer)
Question 3. Find the probability that the hours of sleep per night for a random sample of 25 college students has a mean x between 6.71 and 6.95.
(use 4 decimal places in your answer)
Question 4. The Central Limit Theorem was needed to answer questions 1, 2, and 3 above.
True or False?
In: Statistics and Probability
Write a program that reads students’ names followed by their test scores. The program should output each student’s name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions:
Your program must output each student’s name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls.
This should be written in C++ please thank you.
Data must be read from a file
In: Computer Science
More than 100 million people around the world are not getting enough sleep; the average adult needs between 7.5 and 8 hours of sleep per night. College students are particularly at risk of not getting enough shut-eye. A recent survey of several thousand college students indicated that the total hours of sleep time per night, denoted by the random variable X, can be approximated by a normal model with E(X) = 6.79 hours and SD(X) = 1.22 hours. Question 1. Find the probability that the hours of sleep per night for a random sample of 4 college students has a mean x between 6.62 and 6.95. .0039 Incorrect: Your answer is incorrect. (use 4 decimal places in your answer) Question 2. Find the probability that the hours of sleep per night for a random sample of 16 college students has a mean x between 6.62 and 6.95. (use 4 decimal places in your answer) Question 3. Find the probability that the hours of sleep per night for a random sample of 25 college students has a mean x between 6.62 and 6.95. (use 4 decimal places in your answer) Question 4. The Central Limit Theorem was needed to answer questions 1, 2, and 3 above.
In: Statistics and Probability
As a student you have probably noticed a curious phenomenon. In every class, there are some students who zip through exams and turn their papers in while everyone else is still working. Other students continue working until the very last minute. Have you ever wondered what grades these students get? Are the students who finish first the best in the class or are they simply conceding failure? To answer this question, we carefully observed a recent exam and recorded the amount of time each student spent working (X) and the grade they received (Y). The data from the sample of n = 10 students is below.
a) compute the Pearson correlation to measure the degree of relationship between the time spent writing the exam and the grade. Is the correlation statistically significant? State the null hypothesis, use α = .05 two-tailed and include a summary statement.
b) What percentage of variance in grades is predicted from time spent writing the exam?
| Student | Time(in minutes)-X | Exam Grade-Y |
|
1 |
54 | 75 |
| 2 | 38 | 91 |
| 3 | 60 | 70 |
| 4 | 44 | 94 |
| 5 | 60 | 76 |
| 6 | 40 | 89 |
| 7 | 57 | 92 |
| 8 | 52 | 81 |
| 9 | 45 | 88 |
| 10 | 49 | 90 |
In: Statistics and Probability
More than 100 million people around the world are not getting enough sleep; the average adult needs between 7.5 and 8 hours of sleep per night. College students are particularly at risk of not getting enough shut-eye.
A recent survey of several thousand college students indicated that the total hours of sleep time per night, denoted by the random variable X, can be approximated by a normalmodel with E(X) = 6.84 hours and SD(X) = 1.24 hours.
Question 1. Find the probability that the hours of sleep per night for a random sample of 4 college students has a mean x between 6.7 and 6.93.
(use 4 decimal places in your answer)
Question 2. Find the probability that the hours of sleep per night for a random sample of 16 college students has a mean x between 6.7 and 6.93.
(use 4 decimal places in your answer)
Question 3. Find the probability that the hours of sleep per night for a random sample of 25 college students has a mean x between 6.7 and 6.93.
(use 4 decimal places in your answer)
Question 4. The Central Limit Theorem was needed to answer questions 1, 2, and 3 above.
TrueFalse
In: Statistics and Probability