partial credit, 12.1.11-T A manufacturer of colored candies states that 13% of the candies in a bag should be brown, 14% yellow, 13% red, 24% blue, 20% orange, and 16% green. A student randomly selected a bag of colored candies. He counted the number of candies of each color and obtained the results shown in the table. Test whether the bag of colored candies follows the distribution stated above at the alpha equals0.05 level of significance. Determine the null and alternative hypotheses. Choose the correct answer below. A. H0: The distribution of colors is not the same as stated by the manufacturer. H1: The distribution of colors is the same as stated by the manufacturer. B. H0: The distribution of colors is the same as stated by the manufacturer. H1: The distribution of colors is not the same as stated by the manufacturer. C. None of these. Click to select your answer and then click Check Answer. 4 parts remaining Observed Distribution of Colors Colored Candies in a bag Color Brown Yellow Red Blue Orange Green Frequency 61 64 52 63 96 66 Claimed Proportion 0.13 0.14 0.13 0.24 0.20 0.16 What is the test statistic? chi Subscript 0 Superscript 2 equals (Round to three decimal places as needed.) What is the P-value of the test? P-valueequals (Round to three decimal places as needed.) Based on the results, do the colors follow the same distribution as stated in the problem? A. Do not reject Upper H 0. There is sufficient evidence that the distribution of colors is not the same as stated by the manufacturer. B. Do not reject Upper H 0. There is not sufficient evidence that the distribution of colors is not the same as stated by the manufacturer. C. Reject Upper H 0. There is sufficient evidence that the distribution of colors is not the same as stated by the manufacturer. Your answer is correct.D. Reject Upper H 0. There is not sufficient evidence that the distribution of colors is not the same as stated by the manufacturer.
In: Math
Write a program called popchg.py that enables DBVac to update the state populations for states in the databsae. Your program should: • Include a comment in the first line with your name. • Include comments describing each major section of code. • Connect to your personal version of the DBVac database. • Ask the user to input a two-letter state abbreviation. o 1 point Extra Credit: Validate that what the user entered was two characters long. If not, then have the user re-enter the abbreviation until it’s two characters long. • Ask the user to input the population of the new state. o 1 point Extra Credit: Validate that the value entered was an integer above 0. If not, keep asking the user to enter a value until they enter an integer above 0. • Update the database to change the population for the state entered to the new population value entered.
In: Computer Science
Note that the book states to use a value of 25% if you don’t know what a good value is for the population estimate. Would we want to use this value in planning election polling? Why or why not? What would be the sample sizes needed to get a 95% confidence interval of plus or minus 3% given that the initial estimate of the population proportion is either 1%, 25%, 50%, 75% or 99% (calculate the five intervals). What do you notice that is interesting?
In: Math
I'm not understanding quite how to do this type of problem. The problem states: What is the enthalpy change produced by the reaction of 50.0 g Fe2O3 with 50.0 g Al according to the equation below?
Fe2O3(s) + 2Al(s) => Al2O3(s) + 2Fe(s) Delta H = -851.5 kJ
Please show me how to do this!
In: Chemistry
A food fest is organised at the JLN stadium. The stalls from
different states and cities have been set up. To make the fest more
interesting, multiple games have been arranged which can be played
by the people to win the food vouchers. One such game to win the
food vouchers is described below:There are N number of boxes
arranged in a single queue. Each box has an integer I written on
it. From the given queue, the participant has to select two
contiguous subsequences A and B of the same size. The selected
subsequences should be such that the summation of the product of
the boxes should be maximum. The product is not calculated normally
though. To make the game interesting, the first box of subsequence
A is to be multiplied by the last box of subsequence B. The second
box of subsequence A is to be multiplied by the second last box of
subsequence B and so on. All the products thus obtained are then
added together.
If the participant is able to find the correct such maximum
summation, he/she will win the game and will be awarded the food
voucher of the same value.
Note: The subsequences A and B should be disjoint.
Example:
Number of boxes, N = 8
The order of the boxes is provided below:
Subsequence A
Subsequence B
The product of the subsequences will be calculated as below:
P1 = 9 * 8 = 72
P2 = 2 * 7 = 14
P3 = 3 * 6 = 18
Summation, S = P1 + P2 + P3 = 72 + 14 + 18 = 104
This is the maximum summation possible as per the requirement for
the given N boxes.
Tamanna is also in the fest and wants to play this game. She needs
help in winning the game and is asking for your help. Can you help
her in winning the food vouchers?
Input Format
The first line of input consists of the number of boxes, N.
The second line of input consists of N space-separated
integers.
Constraints
1< N <=3000
-106 <= I <=106
Output Format
Print the maximum summation of the product of the boxes in a
separate line.
Sample TestCase 1
Input
8
1 9 2 3 0 6 7 8
Output
104
Explanation
As explained in the example above.
Time Limit(X):
0.50 Sec(S) For Each Input.
Memory Limit:
512 MB
Source Limit:
100 KB
In: Computer Science
Java Language
Add a recursive method to the program shown in the previous section that states how many nodes does the stack have.
Code:
class Stack {
protected Node top;
Stack() {
top = null; }
boolean isEmpty() {
return( top == null); }
void push(int v) {
Node tempPointer;
tempPointer = new Node(v);
tempPointer.nextNode = top;
top = tempPointer; }
int pop() {
int tempValue;
tempValue = top.value;
top = top.nextNode;
return tempValue; }
void printStack() {
Node aPointer = top;
String tempString = "";
while (aPointer != null) {
tempString = tempString + aPointer.value + "\n";
aPointer = aPointer.nextNode; }
System.out.println(tempString); }
boolean hasValue(int v) {
if (top.value == v) {
return true; }
else {
return hasValueSubList(top,v);
}
}
boolean hasValueSubList(Node ptr, int v) {
if (ptr.nextNode == null) {
return false; }
else if (ptr.nextNode.value == v) {
return true; }
else {
return hasValueSubList(ptr.nextNode,v);
}
}
}
class Node {
int value;
Node nextNode;
Node(int v, Node n) {
value = v;
nextNode = n;
}
Node (int v) {
this(v,null);
}
}
public class StackWithLinkedList2{
public static void main(String[] args){
int popValue;
Stack myStack = new Stack();
myStack.push(5);
myStack.push(7);
myStack.push(9);
System.out.println(myStack.hasValue(11));
}
}
System.out.println(myStack.hasValue(11));
}
}
In: Computer Science
Glycogen and Fatty Acids are used to store energy. Describe and contrast the physiological states that would result in breakdown vs. those that would favor synthesis of these energy stores (include what is going on in different organs). Glycogen can be synthesized from, or broken down to Glucose 1P. Similarly, Fatty acids can be synthesized from, or broken down to Acetyl CoA. Explain why, in each case, both the breakdown and synthesis pathways are energetically favorable. You do not need to write the whole pathway, just succinctly summarize key features that change the overall energetics of biosynthetic vs. the breakdown pathways to make both directions favorable.
In: Chemistry
QUESTION 2
Which of the following is the rule in many states regarding a minor's misrepresentation of his or her age?
| a. |
That if a competent party relies on a misrepresentation in good faith, the minor gives up the right to disaffirm the agreement. |
|
| b. |
That the minor must restore the competent party to that party's precontractual position before obtaining the disaffirmance. |
|
| c. |
That the minor may disaffirm but that the competent party has the right to sue the minor in tort and recover damages for fraud. |
|
| d. |
That misrepresentation does not affect the minor's right to disaffirm the contract. |
|
| e. |
That misrepresentation results in the minor receiving a return of only half the consideration he or she supplied. |
1 points
QUESTION 3
When a former minor does not specifically state that he affirms a contract entered into as a minor, but takes some action that is consistent with intent to ratify the contract, which of the following has occurred?
| a. |
Implied ratification |
|
| b. |
Express ratification |
|
| c. |
Express novation |
|
| d. |
Implied novation |
|
| e. |
Continued safety |
QUESTION 4
A[n] ________ is a false representation of a material fact that is a misstatement of fact that is intentionally made and justifiably relied upon.
| a. |
Negligent misrepresentation |
|
| b. |
Fraudulent misrepresentation |
|
| c. |
Scienter misrepresentation |
|
| d. |
Acknowledged misrepresentation |
|
| e. |
True misrepresentation |
5- Gordon, Melinda's long-time attorney, uses his position as her attorney to persuade her to sign over her property to Gordon's best friend Bartholomew. This is undue influence.
True
False
In: Operations Management
This chapter and assignment further explore standards for interoperability. The HIMSS definition of interoperability states, “The ability of two or more systems or components to exchange information and to use the information that has been exchanged.” HIM professionals often are the subject matter experts when a question about standards arises and need to help guide the IT analysts and workers at their organization. An example from a recent conference I attended: “The IT professionals will say, we can make that happen, but it is the HIM professionals that have to caution them to slow down and think through the consequences, i.e., explain to the IT professionals why it may not be logical or practical to proceed.”
Instructions
Please answer the following questions on the discussion board and then respond to two of your classmates’ postings. Responses should be approximately 250 words for this assignment. A rubric is included for guidance on all discussion board postings. NOTE In order to see the postings your classmates have made, you must first post your response.
In: Math
The following is a payoff table giving profits for various situations.
States of Nature Alternatives A B C D
Alternative 1 120 140 170 160
Alternative 2 210 130 140 120
Alternative 3 120 140 110 190
Do Nothing 0 0 0 0
a. What decision would a pessimist make?
b. What decision would an optimist make?
c. What decision would be made based on the realism criterion, where the coefficient of realism is 0.60?
d. What decision would be made based on the equally likely criterion?
e. What decision would be made based on the minimax regret criterion? Suppose now that the probabilities of the 4 states of nature are known, that is, the probability to observe A is 30%, the probability to observe B is 35%, the probability to observe C is 20%, and the probability to observe D is 15%. Answer the following
f. What decision would be made based on the expected monetary value?
g. What is the EVPI
In: Math