* You wanted to estimate the mean number of vehicles crossing a busy bridge in your neighborhood each morning during rush hour for the past year. To accomplish this, you stationed yourself and a few assistants at one end of the bridge on 31 randomly selected mornings during the year and counted the number of vehicles crossing the bridge in a 10-minute period during rush hour. You found the mean to be 119 vehicles per minute, with a standard deviation of 31.
(a) Construct the 95% confidence interval for the population mean (vehicles per minute).
.................. - .......................
(b) Construct the 99% confidence interval for the population mean (vehicles per minute)
..................... - .....................
* A college counselor wants to determine the average amount of time first-year students spend studying. He randomly samples 31 students from the freshman class and asks them how many hours a week they study. The mean of the resulting scores is 17 hours, and the standard deviation is 5.8 hours.
(a) Construct the 95% confidence interval for the
population mean.
................— ...............
(b) Construct the 99% confidence interval for the population mean.
....................... - ....................
*A cognitive psychologist believes that a particular drug improves short-term memory. The drug is safe, with no side effects. An experiment is conducted in which 8 randomly selected subjects are given the drug and then given a short time to memorize a list of 10 words. The subjects are then tested for retention 15 minutes after the memorization period. The number of words correctly recalled by each subject is as follows: 6, 11, 12, 4, 6, 7, 8, 6. Over the past few years, the psychologist has collected a lot of data using this task with similar subjects. Although he has lost the original data, he remembers that the mean was 4.9 words correctly recalled and that the data were normally distributed.
(a) On the basis of these data, what can we conclude about the effect of the drug on short-term memory? Use α = 0.052 tail in making your decision.
| tobt = |
tcrit = ±
In: Math
***Given a class called Student and a class called Course that contains an ArrayList of Student. Write a method called dropStudent() as described below. Refer to Student.java below to learn what methods are available.***
Course.java
import java.util.*;
import java.io.*;
/******************************************************
* A list of students in a course
*****************************************************/
public class Course{
/** collection of Students */
private ArrayList<Student> roster;
/*****************************************************
Constructor for objects of class Course
*****************************************************/
public Course(){
roster = new ArrayList<Student>();
}
/*****************************************************
Remove student with the provided last name. Do
nothing if last name not found.
*****************************************************/
public void dropStudent(String last){
/** Your code goes here */
}
/*****************************************************
Add a student to the course
*****************************************************/
public void addStudent(Student s){
roster.add(s);
}
public int countStudents(){
return roster.size();
}
/*****************************************************
Main method for testing
*****************************************************/
public static void main(String args[]){
Course cis162 = new Course();
cis162.addStudent(new Student("Henry", "Cabot", 3.5));
cis162.addStudent(new Student("Brenda", "Stern", 2.0));
cis162.addStudent(new Student("Lynda", "Robison", 3.2));
cis162.addStudent(new Student("Jane", "Flynn", 3.9));
cis162.dropStudent("Stern");
}
}
Student.java
import java.text.*;
/*************************************************
* A simple student class including name and gpa.
*
* @author Scott Grissom
* @version March 21, 2016
*************************************************/
public class Student{
/** student name */
private String first, last;
/** student GPA */
private double gpa;
/************************************************
Constructor for Student
************************************************/
public Student(String f, String l, double d){
first = f;
last = l;
gpa = d;
}
/************************************************
@return GPA
************************************************/
public double getGPA(){
return gpa;
}
/************************************************
@return last name
************************************************/
public String getLast(){
return last;
}
/************************************************
to String
@return String representation of the object
************************************************/
public String toString(){
DecimalFormat fmt = new DecimalFormat("#.0");
return first + " " + last + " " + fmt.format(gpa);
}
public static void main (String [] args){
Student s = new Student ("Henry", "Walker", 3.6);
System.out.println(s);
}
}
In: Computer Science
Assume the following list of keys:
78, 40, 16, 82, 64, 67, 57, 40, 37, 47, 72, 14, 17, 27, 55
This list is to be sorted using the quick sort algorithm as discussed in this chapter. Use pivot as the median of the first, last, and middle elements of the list.
In: Computer Science
Write SQL queries below for each of the following:
In: Computer Science
Question
1) list and discribe the three types of mental disorders ( discribe ur nursing actions using the nursing process to prioritize your nusring care for each type of disorder)
2) List different roles of the nurse in treatment settings and programs.
3) List 4 nursing diagnosis
4) List 3 medications used for bipolar disorders and treatment for pations with depression.
In: Nursing
implementing linked list using c++
In: Computer Science
C++ Linked Lists
Don’t you love music? Everyone loves a great song playlist! Practice your
understanding of linked lists in C++ by creating list of songs / artist pairs.
Allow your user to add song / artist pairs to the list, remove songs (and
associated artist) from the list and be sure to also write a function to print
the list! Have fun!
In: Computer Science
In c++:
Code Challenge
Consider the following code:
struct ListNode { int value; struct ListNode *next; };
ListNode *head; // List head pointer
Assume that a linked list has been created and head points to the first node. Write code that traverses the list displaying the contents of each node’s value member
Now write the code that destroys the linked list
In: Computer Science
**Need HTML and Javacript**
You will need to fork your JSFiddle for your List into a new Fiddle. In this Fiddle we are going to add sorting functions. This is a great time to clean up your list with things that you have learned. You should automatically populate the List with 20 element (random strings). Once you have completed this – you will add 2 sort functions, you can use any sort method that you desire for each of the sort functions. You can also delineate the functions by the name of the Sort function – so your functions might be QuickSort() and MergeSort() – if you chose to implement those 2 algorithms (you can select from any sort functions). The interface should have buttons to (1) Repopulate the list with Random strings , (2) Sort list with selected algorithm 1 (3) Sort list with selected algorithm 2 and (4) Insert a new random string entered by the user into the list. After each operation it should display the new list.
In: Computer Science
python 3.6:
You will have two functions:
Function 1: update(user_dictionary): This function will take a dictionary entry as user that has keys, ‘username’,’password’,’uid’, and ‘gid’ along with values. You will search if the username is already in your user_list that you get from your userfile.json file that you have created in your previous task.
If the username in your user_dictionary is not in the list that is in your .json file then add the user_dictionary into the existing list and update your userfile.json with the new entry.
If the username in your user_dictionary isin the list that is in your .json file then just update the fields password,uid, and gid based on the information provided.
Function 2: delete(user_name): This function will take a username and remote entry associated with the user.
Previous Task Code:
#!/usr/bin/env python3.6
import pwd
import json
#Task 1
list=pwd.getpwall()
dictionary={}
print(list)
for i in range(len(list)):
with open('list.json','a') as f:
json.dump(list[i].pw_name,f)
json.dump(list[i].pw_passwd,f)
In: Computer Science