Questions
Answer true/false for the following: 1. The power stroke is generated during the contraction-relaxation phase. 2....

Answer true/false for the following:

1. The power stroke is generated during the contraction-relaxation phase.

2. Reformation of cross bridges occurs during the excitation-contraction phase.

In: Anatomy and Physiology

Three identical point charges of charge q = 5 uC are placed at the vertices (corners)...

Three identical point charges of charge q = 5 uC are placed at the vertices (corners) of an equilateral triangle. If the side of triangle is a = 3.3m, what is the magnitude, in N/C, of the electric field at the point P in one of the sides of the triangle midway between two of the charges?

In: Physics

Using a Python environment of your choice – Create the following three dictionaries: Gary, Alice, and...

Using a Python environment of your choice –

  1. Create the following three dictionaries: Gary, Alice, and Tyler

Gary = {

"name": "Gary",

"homework": [90.0,97.0,75.0,92.0],

"quizzes": [88.0,40.0,94.0],

"tests": [75.0,90.0]

}

Alice = {

"name": "Alice",

"homework": [100.0, 92.0, 98.0, 100.0],

"quizzes": [82.0, 83.0, 91.0],

"tests": [89.0, 97.0]

}

Tyler = {

"name": "Tyler",

"homework": [0.0, 87.0, 75.0, 22.0],

"quizzes": [0.0, 75.0, 78.0],

"tests": [100.0, 100.0]

}

  • Insert one additional (new) dictionary of your choice
  • Create a new list named students that contains four dictionary items
  • for each student in your students list, print out that student's data, as follows:
    • print the student's name
    • print the student's homework
    • print the student's quizzes
    • print the student's tests
  • Write a function average that takes a list of numbers and returns the average
    • Define a function called average that has one argument, numbers
    • Inside that function, call the built-in sum() function with the numbers list as a parameter. Store the result in a variable called total
    • Use float() to convert total and store the result in total
    • Divide total by the length of the numbers list. Use the built-in len() function to calculate that
    • Return that result
  • Write a function called get_average that takes a student dictionary (like lloyd, alice, or tyler) as input and returns his/her weighted average.
    • Define a function called get_average that takes one argument called student.
    • Make a variable homework that stores the average() of student["homework"].
    • Repeat step 2 for "quizzes" and "tests".
    • Multiply the 3 averages by their weights and return the sum of those three. Homework is 10%, quizzes are 30% and tests are 60%.
  • Define a function called get_class_average that has one argument, students. You can expect students to be a list containing your three students.
    • First, make an empty list called results.
    • For each student item in the class list, calculate get_average(student) and then call results.append() with that result.
    • Finally, return the result of calling average() with results.
  • Finally, print out the result of calling get_class_average with the students list.

In: Computer Science

Using a Python environment of your choice – Create the following three dictionaries: Gary, Alice, and...

Using a Python environment of your choice –

  1. Create the following three dictionaries: Gary, Alice, and Tyler

Gary = {

"name": "Gary",

"homework": [90.0,97.0,75.0,92.0],

"quizzes": [88.0,40.0,94.0],

"tests": [75.0,90.0]

}

Alice = {

"name": "Alice",

"homework": [100.0, 92.0, 98.0, 100.0],

"quizzes": [82.0, 83.0, 91.0],

"tests": [89.0, 97.0]

}

Tyler = {

"name": "Tyler",

"homework": [0.0, 87.0, 75.0, 22.0],

"quizzes": [0.0, 75.0, 78.0],

"tests": [100.0, 100.0]

}

  • Insert one additional (new) dictionary of your choice
  • Create a new list named students that contains four dictionary items
  • for each student in your students list, print out that student's data, as follows:
    • print the student's name
    • print the student's homework
    • print the student's quizzes
    • print the student's tests
  • Write a function average that takes a list of numbers and returns the average
    • Define a function called average that has one argument, numbers
    • Inside that function, call the built-in sum() function with the numbers list as a parameter. Store the result in a variable called total
    • Use float() to convert total and store the result in total
    • Divide total by the length of the numbers list. Use the built-in len() function to calculate that
    • Return that result
  • Write a function called get_average that takes a student dictionary (like lloyd, alice, or tyler) as input and returns his/her weighted average.
    • Define a function called get_average that takes one argument called student.
    • Make a variable homework that stores the average() of student["homework"].
    • Repeat step 2 for "quizzes" and "tests".
    • Multiply the 3 averages by their weights and return the sum of those three. Homework is 10%, quizzes are 30% and tests are 60%.
  • Define a function called get_class_average that has one argument, students. You can expect students to be a list containing your three students.
    • First, make an empty list called results.
    • For each student item in the class list, calculate get_average(student) and then call results.append() with that result.
    • Finally, return the result of calling average() with results.
  • Finally, print out the result of calling get_class_average with the students list.

In: Computer Science

Given a list of positive integers c[0...n − 1], and a positive integer v, decides whether...

Given a list of positive integers c[0...n − 1], and a positive integer v, decides whether we can use numbers from c[0...n − 1] to make a sum of v, allowing any particular number in the list to be used multiple times. Or, mathematically, this means that there exists non-negative integer coefficients, x0, x1, ..., xn−1, such that v = x0c[0] + x1c[1] + ...xn−1c[n − 1].

For example, given c[0...3] = {2, 4, 6, 10}, and v = 17, the function shall return false, as it’s impossible to use numbers from c to add up to 17.

Given c[0...3] = {2, 4, 6, 10}, and v = 34, the function shall return true, as 34 can be expressed as 17 2’s added up (there are other ways to make value 34 as well).

Based upon the pseudocode given at the end,

(a) implement and test the following C++ function (minimally, you shall test the function with examples given above.

       /* Return true if v can be expressed as sums of values from coins (repetition is allowed)
       @param coins is a vector of positive int values
       @param v is a positive int
       @return true if v can be written as a sum of values from coins, return false otherwise
       */
       bool CoinChange (vector<int> coins, int v)

(b) In comment of your code, provide a tracing of the function’s execution with input: coins[0...3] = {3, 4, 6, 10}, and v = 14. You should:

list in order the recursive calls made, with the parameters passed and values returned for each call.

• Comment on when backtracking happens.

Pseudocode

/*
Return true if v can be expressed as sum of values from c[0...n-1] @param c[0...n-1]: stores n positive integers
@param v: non-negative integers

2

*/
bool CoinChange (c[0...n-1], v) {

if (v==0)

for i=0 to n-1: if (c[i]==v)

//fill in the blank here
 //fill in the blank here

else if (c[i]<v)
//Think: if we include c[i] to make change amount of
// v, then we only need to make change amount of _____
if (CoinChange (c, ) == True): //fill in the parameter for the

                   return true; //function call above
    // If we haven’t returned true by now, return false
    return false;

}

In: Computer Science

Descriptions of each major types of epidemiologic study: - randomized controlled trial, - cohort, - case-control...

Descriptions of each major types of epidemiologic study:

- randomized controlled trial,

- cohort,

- case-control

Strengths for 2 Strengths

weaknesses 2 weaknesses

In: Anatomy and Physiology

Assuming that the incidence rate of diabetes remains constant, what should happen to the prevalence of...

Assuming that the incidence rate of diabetes remains constant, what should happen to the prevalence of diabetes in this cohort over time? Please justify your answer.

In: Statistics and Probability

Using a hypothetical population of any country of your choice, describe how you will apply the...

Using a hypothetical population of any country of your choice, describe how you will apply the cohort component approach in arriving at a projected population in 2025.

In: Psychology

On the Elf’s contract, it states that he must deliver 5 pounds of candy to every...

On the Elf’s contract, it states that he must deliver 5 pounds of candy to every house on the average.  However, his supervisor, Santa, feels that the Elf might be snacking along the way and not meeting this quota.  To monitor the Elf’s work, Santa took a random sample of 64 houses and the amount of candy delivered by the Elf was noted.  Assume: standard deviation of the amount of candy delivered to all the houses by the Elf is .6 pounds and the mean is 7 pounds.

a) What is the probability that the average amount of candy delivered to the 64 houses is more than 5.8 pounds?

b) Instead of 64 houses, Santa decided to sample 16 houses in order to save time.  What is the probability that the average amount of candy delivered to the 16 houses is less than 6 pounds?  What assumption/s do you need to answer this problem?  

In: Statistics and Probability

Choose the study design that best fits the followingdescription: A random sample of middle-aged sedentary...

Choose the study design that best fits the following description: A random sample of middle-aged sedentary women was selected from four neighborhoods, and each participant was examined for evidence of osteoporosis. Those found to have the disease were excluded. All others were randomly assigned to either an exercise group or a control group, which had no exercise program. Both groups were observed semiannually for incidence of osteoporosis.

a) Case Control Study

b) Randomized Clinical Trial

c) Cross Sectional Study

d) Prospective Cohort Study

e) Retrospective Cohort Study

f) Ecologic Study

In: Nursing