Questions
Given the list values = [], write code that fills the list with each set of...

  1. Given the list values = [], write code that fills the list with each set of numbers below. Note: use loops if it is necessary
  1. 1 2 3 4 5 6 7 8 9 10
  2. 0 2 4 6 8 10 12 14 16 18 20
  3. 1 4 9 16 25 36 49 64 81 100
  4. 0 0 0 0 0 0 0 0 0 0
  5. 1 4 9 16 9 7 4 9 11
  6. 0 1 0 1 0 1 0 1 0 1
  7. 0 1 2 3 4 0 1 2 3 4

2. Write a function that takes a tuple as an argument and returns the tuple sorted.

3. Write a statement that creates a dictionary containing the following key-value pairs:

'a' : 1

'b' : 2

'c' : 3

4. After the following code executes, what elements will be members of set3, ?

set1 = set([10, 20, 30, 40])

set2 = set([40, 50, 60])

set3 = set1.union(set2)

set4 = set1.intersection(set2)

set5= set1.difference(set2)

In: Computer Science

Test the hypothesis (at the .05 level of significance) that individuals who were bullied are more...

Test the hypothesis (at the .05 level of significance) that individuals who were bullied are more likely to bully others. Test the hypothesis (at the .05 level of significance) that individuals who were bullied committed more bullying than those who were not bullied

ID of Respondent #of Friends who Bully Respondent was a Bully Victim (0=No, 1=Yes) Gender (0=Female, 1=Male) # of times Respondent Bullied Others
1 2 1 1 5
2 4 1 0 2
3 3 0 1 8
4 2 0 0 4
5 6 1 1 6
6 3 0 0 2
7 7 1 1 7
8 4 0 0 0
9 2 1 1 1
10 7 1 1 8

In: Math

The following is a list of the steps that occur in the production of an auditory...

The following is a list of the steps that occur in the production of an auditory sensation.
1. The pressure wave distorts the basilar membrane on its way to the round window.
2. Movement of the tympanic membrane causes displacement of the malleus.
3. Displacement of the stereocilia stimulates sensory neurons of the cochlear nerve.
4. Movement of the malleus causes movement of the incus and stapes.
5. Distortion of the basilar membrane forces the hair cells of the organ of Corti toward or away from the
tectorial membrane.
6. Movement of the oval window establishes pressure waves in the perilymph of the vestibular duct.
The proper sequence for these steps is:
A. 2, 4, 1, 6, 5, 3
B. 2, 4, 6, 3, 5, 1
C. 2, 1, 4, 6, 5, 3
D. 2, 4, 6, 1, 5, 3
E. 2, 5, 4, 6, 1, 3

In: Anatomy and Physiology

Define a class Fraction3YourName as follows, /** * Program Name: Fraction3YourName.java * Discussion: Fraction3Yourname class *...

Define a class Fraction3YourName as follows,

/**
* Program Name: Fraction3YourName.java
* Discussion: Fraction3Yourname class
* written By:
* Date: 2019/09/19
*/
public class Fraction3YourName {
private int sign;
private int num;
private int denom;
public Fraction3YourName() {
//sign = ;
//denom = ;
}
public Fraction3YourName(int n) {
//sign = ;
//num = n;
//denom = ;
}
public Fraction3YourName(int s, int n, int d) {
//sign = s;
//num = n;
//denom = d;
}
}
You are asked to
 Complete the definitions for the given constructors; and
 Provide additional method members to allow the performance of four simple
arithmetic operations: (1) Addition, (2) Subtraction, (3) Multiplication, and (4)
Division; and
 Provide one method member print() to display the Fraction3YourName object.

/** REQUIRED PROGRAM OUTPUT

****************************************
* MENU – HW #3 *
* (1) Creating 2 Fraction3 Objects *
* (2) Performing Arithmetic Operations *
* (3) Displaying Fraction3 Objects *
* (4) Quit *
****************************************
Enter your option (1 through 4): 5
You are funny!

****************************************
* MENU – HW #3 *
* (1) Creating 2 Fraction3 Objects *
* (2) Performing Arithmetic Operations *
* (3) Displaying Fraction3 Objects *
* (4) Quit *
****************************************
Enter your option (1 through 4): 2
Creating 2 Fraction3 Objects –
// Your details

****************************************
* MENU – HW #3 *
* (1) Creating 2 Fraction3 Objects *
* (2) Performing Arithmetic Operations *
* (3) Displaying Fraction3 Objects *
* (4) Quit *
****************************************
Enter your option (1 through 4): 3
Displaying Fraction3 Objects –
// Your details

****************************************
* MENU – HW #3 *
* (1) Creating 2 Fraction3 Objects *
* (2) Performing Arithmetic Operations *
* (3) Displaying Fraction3 Objects *
* (4) Quit *
****************************************
Enter your option (1 through 4): 4
Performing Arithmetic Operations –
// Your details

****************************************
* MENU – HW #3 *
* (1) Creating 2 Fraction3 Objects *
* (2) Performing Arithmetic Operations *
* (3) Displaying Fraction3 Objects *
* (4) Quit *
****************************************
Enter your option (1 through 4): 4
Having fun!

by java programming

In: Computer Science

// 1. System.out.println("1."); int max = 5; for (int n = 1; n <= max; n++)...

// 1.
System.out.println("1.");
int max = 5;
for (int n = 1; n <= max; n++) {
System.out.println(n);
}
System.out.println();

// 2.
System.out.println("2.");
int total = 25;
for (int number = 1; number <= (total / 2); number++) {
total = total - number;
System.out.println(total + " " + number);
}
System.out.println();

// 3.
System.out.println("3.");
for (int i = 1; i <= 2; i++) {
for (int j = 1; j <= 3; j++) {
for (int k = 1; k <= 4; k++) {
System.out.print("*");
}
System.out.print("!");
}
System.out.println();
}
System.out.println();

// 4.
System.out.println("4.");
int number = 4;
for (int count = 1; count <= number; count++) {
System.out.println(number);
number = number / 2;
}

In: Computer Science

A researcher wanted to determine the number of televisions in households. He conducts a survey of...

A researcher wanted to determine the number of televisions in households. He conducts a survey of 40 selected households and obtains the data in the accompanying table. Complete parts (a) through (h) below.

Table of television counts:

0 3 2 2 1 2 1 3

3 2 1 4 2 1 3 2

2 1 1 3 1 1 2 2

2 4 0 1 4 5 2 1

2 4 2 1 1 2 2 3

A.) Are these data discrete or continuous? Explain?

B.) Construct a frequency distribution of the data

C.) Construct a relative frequency distribution of the data (Type an integer or decimal. Do not round)

D.) What percentage of households in the survey have three televisions? (Type an integer or decimal. Do not round)

E.) What percentage of household in the survey have four or more televisions? (Type an integer or decimal. Do not round)

F.) Construct a frequency histogram of the data.

G.) Construct a relative frequency histogram of the data.

H) Describe the shape of the distribution.

In: Statistics and Probability

On the basis of the three individual demand schedules below, and assuming these three people are...

On the basis of the three individual demand schedules below, and assuming these three people are the only ones in the society, determine (a) the market demand schedule on the assumption that the good is a private good, and (b) the collective demand schedule on the assumption that the good is a public good.



Instructions: Enter only whole numbers in the table below.

Individual #1 Individual #2 Individual #3 Demand Curve -
Private Good
Demand Curve -
Public Good
Price Qd Price Qd Price Qd Price Qd Amount Society is
Willing to Pay
Qd
$16 1 $16 0 $16 1 $16 $ 1
14 2 14 0 14 2 14 2
12 3 12 0 12 3 12 3
10 4 10 1 10 4 10 4
8 5 8 2 8 5 8 5
6 6 6 3 6 6 6 6
4 7 4 4 4 7 4 7
2 8 2 5 2 8 2 8

In: Economics

Degree 5. Roots of multiplicity 2 at x = −3 and x = 2 and a root of multiplicity 1 at x=−2. y-intercept at (0, 4). For the above exercises, use the given information about the polynomial graph to write the equation.

Degree 5. Roots of multiplicity 2 at x = −3 and x = 2 and a root of multiplicity 1 at x=−2. y-intercept at (0, 4).

 

 

For the above exercises, use the given information about the polynomial graph to write the equation.

In: Advanced Math

Below is collected data of the question "how many kisses have you eaten in the past...

Below is collected data of the question "how many kisses have you eaten in the past day?"
This is between men and women.
The tables are these:
Male: 2, 4, 3, 1, 3, 3, 5, 3, 0, 0, 2, 0, 3, 1, 1, 4, 2, 3, 5, 4, 3, 1, 2, 3, 2, 0, 1, 3, 2,0    Female: 1, 2, 3, 0, 2, 4, 2, 1, 1, 5, 2, 1, 0, 1, 0, 0, 2, 1, 3, 0, 1,0, 2, 1, 1, 3, 2, 1, 0, 1

Generate the experimental design using the appropriate methodology. What is the structure of the experiment?

What does the data analysis tell you?
Construct a 98% confidence interval.
Find the standard deviation.
Apply the appropriate analysis method or methods?
What type of hypothesis method will you use?
Calculate the alternate and null hypothesis and state the conclusion about who eats more kisses, men or woman.

In: Statistics and Probability

A researcher is interested to learn if there is a relationship between the level of interaction a women in her 20s has with her mother and her life satisfaction ranking.

 

A researcher is interested to learn if there is a relationship between the level of interaction a women in her 20s has with her mother and her life satisfaction ranking. Below is a list of women who fit into each of four level of interaction. Conduct a One-Way ANOVA on the data to determine if a relationship exists.

 

No Interaction

Low Interaction

Moderate Interaction

High Interaction

2

3

3

9

4

3

10

10

4

5

2

8

4

1

1

5

7

2

2

8

8

2

3

4

 

 

1

7

10

9

1

8

8

4

8

6

4

1

4

5

3

8

 

Is there a relationship between handedness and gender? A researcher collected the following data in hopes of discovering if handedness and gender are independent (Ambidextrous individuals were excluded from the study). Use the Chi-Square test for independence to explore this at a level of significance of 0.05.

 

 

 

Left-Handed

Right-Handed

Men

13

22

Women

27

18

 

A researcher is interested in studying the effect that the amount of fat in the diet and amount of exercise has on the mental acuity of middle-aged women. The researcher used three different treatment levels for the diet and two levels for the exercise. The results of the acuity test for the subjects in the different treatment levels are shown below.

 

Diet

 

 

Exercise

<30% fat

30% - 60% fat

>60% fat

<60 minutes

4

3

2

 

4

1

2

 

2

2

2

 

4

2

2

 

3

3

1

60 minutes

6

8

5

or more

5

8

7

 

4

7

5

 

4

8

5

 

5

6

6

 

 

 

 

In: Statistics and Probability