Questions
Read the following examples that use the above terms: A farmer wanted to test the effects...

Read the following examples that use the above terms: A farmer wanted to test the effects of different amounts of fertilizer on tomatoes. He decided to measure the weight of the tomatoes from the plants (yield), since selling his tomatoes generates income. He applies different amounts of fertilizer (the independent variable) to different batches of his plants, and then determines the yield (the dependent variable) of the different batches to decide what amount of fertilizer works best. He includes some unfertilized plants for his control. The yield is dependent on the amount of fertilizer. The amount of fertilizer is independent because the farmer can decide how much he will use. Practice Part A: SCENARIO 1: A microbiologist working for a pharmaceutical company has isolated a chemical from a newly discovered strain of a fungus. He has done some preliminary tests and thinks that the chemical might kill the bacteria that cause gonorrhea. He prepares some bacterial growth medium (aka “agar”) and adds the new chemical to one batch, and leaves one without the antibiotic. He then adds the same amount of the bacteria that cause gonorrhea to each container of growth media and incubates them.

The microbiologist’s hypothesis was that if____________________________________, then ___________________________________________________________________. In this experiment, the antibiotic is the ________________________________________ Whether or not the bacteria can grow in the presence of the antibiotic is the ___________ ________________________________________________________________________ The growth media without the antibiotic is the __________________________________ Why was the same amount of bacteria added to both containers of growth media? _______________________________________________________________________ SCENARIO 2: Phyllis has just purchased a home in Florida. She is very excited about growing plumeria trees in her yard. She wants the trees to produce as many flowers as possible so she decides to test if different amounts of water to see if that has an effect on the number of flowers. Her sprinkler system automatically releases a set amount of water (gallons per minute) so the only way for her to adjust the water amount is to shorten/ lengthen the amount of time the plants get watered. Tree #1 gets watered every day for 2 hours. Tree #2 gets watered every other day for 2 hours. Tree #3 gets watered twice a day for 2 hours each interval. What is the independent variable of this experiment? ________________________________________________________________________ What is the dependent variable of this experiment? ________________________________________________________________________ What is a constant of this experiment? ________________________________________________________________________ What is another constant of this experiment? ________________________________________________________________________

In: Biology

We are interested in job satisfaction. Name a variable that correlates with job satisfaction but we...

We are interested in job satisfaction.

Name a variable that correlates with job satisfaction but we do not have causation.

Name a variable that you believe may have a casual relationship with job satisfaction.

Name a variable associated with job satisfaction that may be considered reverse causation.

In: Psychology

Now let’s look at a more modern symmetric encryption. Assume that the algorithm for this system...

Now let’s look at a more modern symmetric encryption. Assume that the algorithm for this system is to rotate the bits in the message right 4 positions, XOR the bits with the key, and rotate the bits 2 positions to the left.

a.What is the key? (The Key is 5A)

b. Using the key and the above algorithm, decrypt the following message which contains a name (given in hex): BD 7D FA BC 78 3C 3D. Remember that you’ll have to reverse the order and direction of operations in order to decrypt the name (i.e. Start by rotating 2 positions right). What is name (as it appears exactly in the message)?

c. The answer to Part b is the name of a moon. Find (and give in upper case) the name of planet which has Part (b) as a moon. Using the key and the above algorithm, encrypt the name of this planet (in upper case) and give your result in hex format (not ASCII).

In: Physics

Suppose you are given a file containing a list of names and phone numbers in the...

Suppose you are given a file containing a list of names and phone numbers in the form "First_Last_Phone."

Write a program in C to extract the phone numbers and store them in the output file.

Example input/output:

Enter the file name: input_names.txt

Output file name: phone_input_names.txt

1) Name your program phone_numbers.c

2) The output file name should be the same name but an added phone_ at the beginning. Assume the input file name is no more than 100 characters. Assume the length of each line in the input file is no more than 10000 characters.

3) The program should include the following function: void extract_phone(char *input, char *phone); The function expects input to point to a string containing a line in the “First_Last_Phone” form. In the function, you will find and store the phone number in string phone.

Comments would be helpful as well Thanks

In: Computer Science

Now let’s look at a more modern symmetric encryption. Assume that the algorithm for this system...

Now let’s look at a more modern symmetric encryption. Assume that the algorithm for this system is to rotate the bits in the message right 4 positions, XOR the bits with the key, and rotate the bits 2 positions to the left.

a. The key is 5A

b. Using the key and the above algorithm, decrypt the following message which contains a name (given in hex): BD 7D FA BC 78 3C 3D. Remember that you’ll have to reverse the order and direction of operations in order to decrypt the name (i.e. Start by rotating 2 positions right). What is name (as it appears exactly in the message)?

c. The answer to Part b is the name of a moon. Find (and give in upper case) the name of planet which has Part (b) as a moon. Using the key and the above algorithm, encrypt the name of this planet (in upper case) and give your result in hex format (not ASCII).

In: Computer Science

#Write a function called wish_list. wish_list should have #four parameters, in this order: # # -...

#Write a function called wish_list. wish_list should have
#four parameters, in this order:
#
# - a list of strings, representing a list of items on a
# wish list
# - a string, representing a particular item
# - a float, representing the cost of this item
# - a float, representing your budget
#
#If the item is on the list and you can afford it (cost is
#less than or equal to budget), return the string,
#"You should buy a [item name]!", replacing [item name]
#with the string.
#
#If the item is on the list but you can't afford it,
#return the string, "You should save up for a [item name]!",
#replacing [item name] with the string.
#
#If the item is not on the list, you should return the
#string "You probably don't want to buy a [item name].",
#replacing [item name] with the string.
#
#HINT: You do not need a loop to solve this. You can use
#one, but you don't need one.

In: Computer Science

Suppose you are given a file containing a list of names and phone numbers in the...

Suppose you are given a file containing a list of names and phone numbers in the form "First_Last_Phone."

Write a program to extract the phone numbers and store them in the output file.

Example input/output:

Enter the file name: input_names.txt

Output file name: phone_input_names.txt

1) Name your program phone_numbers.c

2) The output file name should be the same name but an added phone_ at the beginning. Assume the input file name is no more than 100 characters. Assume the length of each line in the input file is no more than 10000 characters.

3) The program should include the following function: void extract_phone(char *input, char *phone); The function expects input to point to a string containing a line in the “First_Last_Phone” form. In the function, you will find and store the phone number in string phone.

Comments would be helpful as well Thanks

In: Computer Science

Displaying Content of an XML File Using PHP Script or Code In this week, you are...

Displaying Content of an XML File Using PHP Script or Code

In this week, you are going to write the PHP script or code to read an XML file and display its content on the screen. The file you will modify is the Products page, which you created in Week 1 Project. Given the following data in XML format, modify the Products page to read and display the information in the Products page:

<Product>
<Item>
<Name>T-Shirt</Name>
<Price>12.5</Price>
</Item>
<Item>
<Name>Pants</Name>
<Price>45</Price>
</Item>
<Item>
<Name>Hat</Name>
<Price>10.5</Price>
</Item>
</Product>

Your end page result needs to show the items, their cost (price) in a table format. Use both PHP script as well as HTML tags to create the dynamic table from the given XML file.

In: Computer Science

11. First and Last Design a program that asks the user for a series of names...

11. First and Last Design a program that asks the user for a series of names (in no particular order). After the final person's name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb.

#Sentinel value is DONE
SENTINEL = "DONE"
ls = []

prompt = "Enter a name, or enter DONE to quit."

newLs = input(prompt)

n = newLs

#test for sentinel
while newLs != SENTINEL:
ls.append(newLs)
newLs = input(prompt)
#sort in alphabetical
for i in range(n) :
name = int()
ls.append(name)
ls.sort()

print('{} and {}'. format(ls[0],ls[n-1]))
I need help with sorting the names from the sentinel loop so that I get only two outputs that are alphabetically ordered

In: Computer Science

Many fast-food restaurants use automatic soft-drink dispensing machines that fill cups once an order is placed at a drive-through window.

Many fast-food restaurants use automatic soft-drink dispensing machines that fill cups once an order is placed at a drive-through window. A regional manager for a fast-food chain wants to determine if the machines in her region are dispensing the same amount of product. She samples four different machines and measures a random sample of 16-ounce drinks from each machine. Here is the data she collects (in ounces):

Machine 1

Machine 2

Machine 3

Machine 4

16.5

15.0

16.0

16.6

16.6

15.4

16.3

15.9

16.5

15.3

16.5

15.5

15.8

15.7

16.4

16.2

15.6

15.2

17.3

17.0

16.4

16.0

16.7

15.5

16.1

15.6

15.7

16.3

a) “Number of ounces” is a quantitative variable. Is it discrete or continuous?

b) “Number of ounces” is what level of measurement?

c) Is this a designed experiment or an observational study? Briefly explain.

d) At the 5% Level of Significance, determine whether or not the data indicate that the mean amount dispensed from the machines is not the same, by doing each of the following:

            1) Write the Hypotheses.

2) Use your calculator to do a one-way ANOVA test. Explain in some detail how the results of the test lead you to reject or not reject the null hypothesis.

3) Write a formal conclusion.

e) Using the language of our textbook on bias, name at least one type of bias that might be present in this research. Briefly explain.

In: Statistics and Probability