Questions
At the question 3 without using inheritance, how can I access to the both constructors, Student...

At the question 3 without using inheritance, how can I access to the both constructors, Student & Course with only one prototype method displayStudents to print out all of the both properties?

The JavaScript code defines a constructor function for a Student class.

  1. Add a Course constructor function that takes a title as a parameter. The Course class should have 2 properties: a title and an array of students. The constructor function should initialize the title property to the title parameter and initialize the students array to an empty array.
  2. Add a method to the constructor function called addStudent that takes a single student parameter. The addStudent()method should push the student to the back of the students array property.
  3. Add a prototype method called displayStudents that takes no parameters. The displayStudents() method should output the course title and all students' names and GPAs to the console.
  4. Instantiate 2 different courses with any titles, and add a few students (Student objects) to the courses using the addStudent() method.
  5. Display all the students in the 2 courses using the displayStudents() method.

given:

function Student(name, gpa) {
this.name = name;
this.gpa = gpa;}

In: Computer Science

A. type of research design (between-subjects or within-subjects) b. Define the dependent variable. c. Define the...

A. type of research design (between-subjects or within-subjects)

b. Define the dependent variable.

c. Define the independent variable and its levels

d. Fill in the missing cells of the ANOVA F-table

e. Determine the critical value at a .05 level of significant for the F-value and decide whether the ANOVA result is statistically significant (see Table C.3 in Appendix C of the textbook)

f. Calculate and interpret the eta-squared measure of effect size (if it is a between-subjects designs) or the partial eta-squared measure of effect size (if it is a within-subjects design).

Case 1: A teacher was curious about if his students’ test scores would be affected by how they learn about important science experiments. To look into the situation, he randomly assigned students to 1of 3 groups: students in the first group read about an experiment, students in the second group watched a video, and students in the third group actually conducted the experiment. At the end, all students were given a test about the experiment.

Source of Variation SS df MS F
Between groups 252.72 2
Within groups (error) 157.42 17
Total

In: Math

The state of Virginia has implemented a Standard of Learning (SOL) test that all public school...

The state of Virginia has implemented a Standard of Learning (SOL) test that all public school students must pass before they can graduate from high school. A passing grade is 75. Montgomery County High School administrators want to gauge how well their students might do on the SOL test, but they don’t want to take the time to test the whole student population. Instead, they selected 20 students at random and gave them the test. The results are as follows:
83    79    56    93
48    92    37    45
72    71    92    71
66    83    81    80
58    95    67    78

Assume that SOL test scores are normally distributed.

  1. Compute the mean and standard deviation for these dat
  2. Determine the probability that a student at the high school will pass the test.
  3. How many percent of students will receive a score between 75 and 95?
  4. What score will put a student in the bottom 15% in SOL score among all students who take the test?
  5. What score will put a student in the top 2% in SOL score among all students who take the test?

PLEASE USE EXCEL

THANK YOU

In: Math

In a study women were identified who had been diagnosed with Cervical Cancer through the Cancer...

In a study women were identified who had been diagnosed with Cervical Cancer through the Cancer Registry. Women with skin cancer were used as controls. The study then received past medical histories on HPV status, which was collected through an outstanding health department. (And they somehow had access to these records and could link them.)
Calculation B
Cervical Cancer Cases   Controls (No Cervical Cancer)   Total
HPV 1200 9800 11,000
No HPV 400 7600 8,000
1,600 17,400 19,000

1. What type of study is this?
a. cross-sectional
b. case report/series
c. ecologic
d. case-control
e. cohort
f. clinical trial
g. community intervention

2. What is the most appropriate measure of association?
a. odd ratio
b. relative risk
c. Attributable risk
d. none of these

3. Calculate the measure of association (use two decimal places).

4. How would you best describe the relationship between the exposure and the outcome?
a. no relationship
b. positive relationship
c. negative relationship

5. If appropriate, calculate the attributable risk per 1000 people (use 2 decimal places).


In: Anatomy and Physiology

A case-control study was performed to determine whether head injury was associated with an increased risk...

  1. A case-control study was performed to determine whether head injury was associated with an increased risk of brain tumors in children. 200 cases with brain cancer were identified from the state cancer registry and 200 controls were recruited from the same neighborhoods where the cases lived. The mothers of the children completed a questionnaire that asked them to describe their child's past history of head injury. The investigators found that the mothers of the children with brain tumors reported a past head injury for 70 of the cases while a past history of head injury was reported in 30 of the controls. What type of bias was likely to have influenced the findings of this study?

Length bias

Recall bias

Surveillance, diagnostic, or referral bias

Interviewer bias

2-After investigators calculate a measure of association (RR for cohort studies and OR for case-control studies), they must evaluate whether or not the observed result is true.

True

False

3-Bias in epidemiologic studies means that the investigator is "prejudiced".

True

False

4-Control selection bias occurs in a case-control study when cases remember or report their exposures differently (more or less accurately) from controls.

True

False

In: Statistics and Probability

v Unit 6    [Hypothesis Testing/Decision Making]        For all Hypothesis\Decision Making Problems, please do the following:...

v

Unit 6    [Hypothesis Testing/Decision Making]       

For all Hypothesis\Decision Making Problems, please do the following:


            1.         Answer: Is the data discrete or continuous?

            2.        List the assumptions.

3.        State the null and alternate hypothesis.

            4          Write down the proper test statistic, Show all calculations, i.e. impute the numbers.                       .               Set up Decision rules. Show the critical value.    Reject or Fail to reject.  

            5.         State your conclusions.                        

6.3.1    

Suppose it has been established that for a certain type of client (fair health-Group A) the average length of a home visit by a public health nurse is longer than for a second type of client (poorer health-Group B). If nurses on staff randomly visit 36 clients from Group A and record the average time as 30 minutes with a standard deviation of 15 minutes, and the average home visit for Group B (49 visits) is 45 minutes long with a standard deviation of 20 minutes, test by hypothesis that the two groups of patients have different home visit times. Assume data is normally distributed.

In: Statistics and Probability

As a systems engineer, you are required to do a trade study on common coffeemakers available...

As a systems engineer, you are required to do a trade study on common coffeemakers available in market. Conduct product research and narrow down your choices to five products. Please conduct the following steps:

i. Develop a top - level function list for a common coffeemaker, limiting yourself to no more than 12 functions; ii. Draw an FBD of the coffeemaker using the functions in

(i); iii. Convert the coffeemaker FBD to an IDEF0 diagram and a UML activity diagram respectively;

iv. Identify exactly four selection criteria, not including purchase price or operating cost;

v. Assign weights to each criterion, explaining in one sentence your rationale;

vi. Construct a utility function for each criterion — describe it verbally or graphically; vii. Research the actual values for your criteria for each alternative; viii. Perform the analysis, calculating a weighted sum for each alternative;

ix. Calculate the effectiveness/unit cost for each alternative using purchase price for cost; and

x. Describe your choice for purchase, along with any rationale.

In: Mechanical Engineering

Consider a population that consists of the 70 students enrolled in a statistics course at a...

Consider a population that consists of the 70 students enrolled in a statistics course at a large university. If the university registrar were to compile the grade point averages (GPAs) of all 70 students in the course and compute their average, the result would be a mean GPA of 2.98. Note that this average is unknown to anyone; to collect the GPA information would violate the confidentiality of the students’ academic records.

Suppose that the professor who teaches the course wants to know the mean GPA of the students enrolled in her course. She selects a sample of students who are in attendance on the third day of class. The GPAs of the students in the sample are:

3.71 3.92 3.68 3.60 3.64 3.27 3.93 3.12 3.40 3.74

1) The instructor uses the sample average as an estimate of the mean GPA of her students. The absolute value of the error in the instructor’s estimate is:

a) 0.52

b) 0.62

c) 0.86

d) 0.80

The portion of this error that is due to errors in data acquisition, nonresponse bias, and selection bias is referred to as 2) non sampling error/sampling error. This type of error is 3) more/less serious than 4) non sampling error/sampling error because taking a larger sample 5) will diminish/will not diminish its size or possibility of occurrence.

Suppose students in the university’s honors program are on a field trip on the third day of class. This may have introduced an 6) error in data acquisition/selection bias/a non response error/sampling error . Correcting this error will 7) sometimes/always/never bring the sample closer to the true mean GPA.

Suppose that the instructor incorrectly recorded the value 3.74 in the data and that the correct value is 3.47. This contribution to the error was caused by 8) error in data acquisition/selection bias/a non response error/sampling error. Given the instructor’s sample, correcting this error would bring the sample mean 9) Closer to the true mean GPA/Farther from the true mean GPA/To the exact value of the true mean GPA.

Suppose a student who was selected for the sample declines to disclose her GPA. This may have introduced 10) error in data acquisition/selection bias/a non response error/sampling error. Correcting this error will 11) sometimes/always/never bring the sample closer to the true mean GPA.

The professor suspects that her sample is flawed. She assigns each of the students in the class an ID number from 1 to 70 and uses Excel to select a simple random sample of ID numbers. The professor meets with the students in the sample. Each student signs a release that gives the registrar permission to use the student’s GPA to compute the sample average. The professor assures the students that the registrar will provide her with the average and not the GPAs of individual students.

The GPAs of the students in the new sample (from their academic records held by the registrar) are:

3.34 3.53 3.31 3.24 3.28 2.94 3.54 2.81 3.06 3.37

12) The professor uses the new sample average provided by the registrar as an estimate of the mean GPA of the students in the course. The absolute value of the error in her estimate is:

a) 0.42

b) 0.26

c) 0.01

d) 0.55

This error is 13) non sampling error/sampling error , and the only way to reduce its expected size is to 14) increase/decrease the sample size.

In: Statistics and Probability

In this create a code that will drop a student by ID number //////////////////////////////////////////////////////////////////////// import java.util.Scanner;...

In this create a code that will drop a student by ID number

////////////////////////////////////////////////////////////////////////

import java.util.Scanner;

public class COurseCom666 {
    private String courseName;
    private String [] students = new String[1];
    private int numberOfStudents;

    public COurseCom666(String courseName) {
        this.courseName = courseName;
    }
    public String[] getStudents() {
        return students;
    }
    public int getNumberOfStudents() {
        return numberOfStudents;
    }
    public String getCourseName() {
        return courseName;
    }

    public void addStudent(String student) {
        // Automatically increases the array size
        if (numberOfStudents == students.length) {
            String[] a = new String[students.length + 1];
            for (int i = 0; i < numberOfStudents; i++) {
                a[i] = students[i];
            }
            students = a;
        }
        students[numberOfStudents] = student;
        numberOfStudents++;
    }
    public String[] addStudentByIndex(String student,int index){
        String [] a = new String[students.length+1];
        if (numberOfStudents == students.length){

            for (int i = 0; i < a.length;i++){
                if(i < index){
                    a[i] = students[i];
                }
                else if (i == index ){
                    a[i] = student;
                }
                else{
                    a[i] = students[i-1];
                }}
        }
        numberOfStudents++;
        return a;
    }
    public static void display(String[]students){
        System.out.println("========================");
        System.out.print("Now the New students Array is :\n");
        for(int i=0; i<students.length; i++)
        {
            System.out.println("Index: "+(i)+"--> "+ students[i]+" ");
        }
    }

    public String [] removeStudentByIndex(String [] a, int index){
        //find the index of student
        String [] b = new String[a.length-1];
        students = a;
        // int position = findStudent(student);
        for (int i = 0,k=0; i < a.length;i++){
            if (i == index){
                continue;
            }
            else{
                b[k++] = a[i];
            }
        }
        numberOfStudents--;

        return b;

    }
    private int findStudent(String student) {
        for (int i = 0; i < numberOfStudents; i++) {
            if (students[i].equals(student)) {
                return i;
            }
        }
        return -1;
    }
}


import java.util.Scanner;

public class d {

    public static void main(String[] args) {
        COurseCom666 com666 = new COurseCom666("com666");
        com666.addStudent("jake");
        com666.addStudent("becky");
        com666.addStudent("mai");
        com666.addStudent("sam");
        com666.addStudent("paul");

        int sum = 0;
       
        String students1[] = com210.getStudents();

        sum += com666.getNumberOfStudents();
        Scanner scan = new Scanner(System.in);

        int choice;

        do {
            System.out.println("Welcome to College");
            System.out.println("1. View Student");
            System.out.println("2. Insert Student");
            System.out.println("3. Remove a student");
            System.out.println("4. Exit");
            choice = scan.nextInt();
            if (choice == 1) {
                for (int i = 0; i < students1.length; i++) {
                    System.out.println("Index is: " + (i) + "---> " + students1[i]);
                }
                System.out.println("Number of students attending the Course is: " + sum);
            }
            else if (choice == 2) {
                System.out.println("Enter the name of student and index: ");
                scan.nextLine();
                String student = scan.nextLine();
                students1 = com666.addStudentByIndex(student, 3);
                com666.display(students1);

                sum = com666.getNumberOfStudents();
                System.out.println("After student was added number is: " + sum);
            }
            else if (choice == 3) {
                System.out.println("Remove a student by index");
                int index = scan.nextInt();
                students1 = com666.removeStudentByIndex(students1, index);
                com666.display(students1);
                sum = com666.getNumberOfStudents();
                System.out.println("After student drop number is: " + sum);
                System.out.println("Number of students attending the Course is: " + sum);
                System.out.println("----------------------------------");
            }
        }
        while (choice!= 4);
    }
}


In: Computer Science

1.Which of the following scenarios would it be appropriate to use a normal approximation for the...

1.Which of the following scenarios would it be appropriate to use a normal approximation for the sampling distribution of the sample proportion?

Select one:

a.) A researcher wishes to find the probability that more than 60% of a sample of undergraduate students from UNC will be female. She samples the first 42 students that walk into the gym on Monday morning. The population proportion of undergraduate females at UNC is known to be 60.1%.

b.)A researcher wishes to find the probability that less than 5% of a sample of undergraduate students from Appalachian State University will be between the ages of 25 and 34. He randomly samples 50 undergraduate students from the student database. The proportion of undergraduates between the ages of 25 and 34 is 5.3%.

c.)A grad student at NC state wants to know how likely it is that a group of students would be made up of more than 27% graduate students. She will randomly select 38 students and ask them if they are a graduate student or an undergraduate student. The population proportion of grad students at NC state is 26.6%.

d.)A full-time student at Fayetteville State University wants to know how likely it is that a group of students would be made up of less than 70% full-time students. She will ask 30 people that she sees parking in the parking deck if they are full-time or part-time. The population of full-time students at Fayetteville State is known to be 72%.

2. In the general population in the US, identical twins occur at a rate of 30 per 1,000 live births. A survey records 10,000 births during Jan 2018 to Jan 2019 and found 400 twins in total. Which of the following are true?

Select one or more:

The proportion of twin births during Jan 2018 to Jan 2019 is .03.

The proportion of twin births during Jan 2018 to Jan 2019 is .04.

The probability of twin births among the general population is .03.

The probability of twin births among the general population is .04.

Pr(observing a sample proportion of twin births from a random sample of 10,000 live births <= 0.04) = 0.03.

Pr(observing a sample proportion of twin births from a random sample of 10,000 live births <= 0.04) = 0.5.

Pr(observing a sample proportion of twin births from a random sample of 10,000 live births <= 0.03) = 0.04.

Pr(observing a sample proportion of twin births from a random sample of 10,000 live births <= 0.03) = 0.5.

In: Math