Each person in the group will be responsible for rewriting the
code to solve one of the original parts
(Alphabetizing 5 words, pig latin, reversing letters, celebrity
names), without using arrays or loops. The purpose of
this assignment is to practice Strings manipulation and String
methods so full credit will only be given if you are utilizing the
code for Strings (substring, charAt, compareTo, equals, etc).
Within the group, you cannot work on the same program so only one
person can submit pig latin, and one person can submit reversing
letters, etc.
English
dog
Apple
easy
Cattle
Remove your old code and replace it with this new code before
testing the program again. Be sure to leave a comment indicating
what you have changed.
(I'm only working on the pig latin option)
In: Computer Science
Practice Concluding a Hypothesis Test
For each of the scenarios below complete the following:
- Identify the null and alternative hypothesis.
- State if the results are statistically significant and why
- Conclude the hypothesis test in context
1. We are interested in answering the question: In Richmond Kentucky, are less than 75% of stray dogs spayed/neutered? A random sample of 150 stray dogs found that 70% were spayed/neutered. The test was performed at the 10% significance level and the resulting p-value was 0.051.
2. We are interested in answering the question: In Richmond Kentucky, is the proportion of stray dogs who are spayed/neutered less than the proportion of stray cats who are spayed/neutered? A random sample of 50 stray dogs found that 39% were spayed/neutered and a random sample of 45 cats found that 45% were spayed/neutered. The test was performed at the 5% significance level and the resulting p-value was 0.012.
3. We are interested in answering the question: Is the average price of Pepsi 2-Liter bottles in Kentucky less than 99 cents? A sample of 75 stores selling Pepsi 2-liters found an average price of 96 cents. The test was performed at the 1% significance level and the resulting p-value was 0.0065.
4. We are interested in answering the question: Is the average price of Pepsi 2-Liter bottles in Kentucky greater than the average price of Coke 2-liters in Kentucky? A random sample of 75 stores selling Pepsi was selected and a separate random sample of 55 stores selling Coke 2-liters found x pepsi - x coke cents. The test was performed at the 7% significance level and the resulting p-value was 0.092.
5. A researcher believes that if patients with arthritis go to physical therapy twice a week their pain levels will be lower than usual pain levels. Patients with arthritis usually rate their pain a 3.5 on an 8-point scale. The test was performed at the 10% significance level and the resulting p-value was 0.113.
6. The principal at Madison Central High school claims that the students at the school are above average intelligence. A random sample of thirty students IQ scores have a mean score of 112. On average the population IQ is 100. The test was performed at the 5% significance level and the resulting p-value was 0.07.
7. A neonatal nurse suspects that newborn babies are more likely to be boys than girls. A random sample found 13,173 boys were born among 25,468 newborn children. The test was performed at the 2% significance level and the resulting p-value was 0.0132.
In: Statistics and Probability
1. What type of research design is used in this study (e.g., cross-sectional, longitudinal,
experimental, correlational, or naturalistic observation)? Is this
design appropriate?
2. What explanation do the researchers offer for their findings? Does this explanation
make sense based on the evidence?
3. Given the results of this study, why can’t the researchers draw a causal connection
between behavior disorders and temperament?
4. Can you think of an alternative explanation for the results of this study?
Critical Thinking Activity: Early Temperament Style and Later Adjustment Problems
Now that you have read and reviewed Chapter 7, take your learning a step further
by testing your critical thinking skills on this scientific reasoning exercise.
A study by Caspi and others (1995)* revealed that temperamental style in early
childhood might be linked to adjustment problems during adolescence. The study
involved a cohort of 1,037 children born between April 1, 1972, and March 31,
1973, in Dunedin, New Zealand.
At ages 3, 5, 7, and 9, the behavior of each child was rated in terms of 22
aspects of temperament, including emotional stability, restlessness, self-reliance,
persistence, negativism, passivity, shyness, self-confidence, emotional flatness,
and 13 other dimensions. To assess behavior problems in the sample, the
researchers relied on outcome data from teachers and parents who rated the children
at ages 9, 11, 13, and 15 on two widely used behavior problem checklists.
These checklists included subscales measuring anxiety/withdrawal, which represents
feelings of inferiority and failure; attention problems, which reflect difficulty
in concentration skills; conduct disorder, which reflects aggressiveness and
alienation; and socialized delinquency, which reflects norm-violating tendencies.
For both boys and girls, lack of control at ages 3 and 5 showed a significant
positive correlation wth teacher and parent reports of antisocial behavior and
conduct disorder at ages 9 and 11. In addition, boys and girls characterized as
lacking in control in early childhood were less likely to be rated in adolescence as
mature and confident.
The authors suggest several possible explanations for these intriguing results.
One is that certain temperamental characteristics in young children are actually
early, “subclinical” manifestations of more extreme behavior disorders. Whatever
the correct explanation, the results of this extensive study suggest that early temperament
may have remarkably specific predictive validity for the development of
behavior problems during adolescence.
In: Psychology
import java.util.List;
public class Assembler {
/**
* Creates a new Assembler containing a list of fragments.
*
* The list is copied into this assembler so that the original list will not
* be modified by the actions of this assembler.
*
* @param fragments
*/
public Assembler(List<Fragment> fragments) {
}
/**
* Returns the current list of fragments this assembler contains.
*
* @return the current list of fragments
*/
public List<Fragment> getFragments() {
return null;
}
/**
* Attempts to perform a single assembly, returning true iff an assembly was
* performed.
*
* This method chooses the best assembly possible, that is, it merges the
* two fragments with the largest overlap, breaking ties between merged
* fragments by choosing the shorter merged fragment.
*
* Merges must have an overlap of at least 1.
*
* After merging two fragments into a new fragment, the new fragment is
* inserted into the list of fragments in this assembler, and the two
* original fragments are removed from the list.
*
* @return true iff an assembly was performed
*/
public boolean assembleOnce() {
return false;
}
/**
* Repeatedly assembles fragments until no more assembly can occur.
*/
public void assembleAll() {
}
}
In: Computer Science
Classique Designs sells a variety of merchandise, including school shoes for girls. The business began the last quarter of 2013 with 30 pairs of the “Aerosoles” brand at a total cost of $54,000. The following transactions, relating to the “Aerosoles” brand were completed during the quarter:
October 3 - Purchased 45 pairs of shoes at a cost of $1,900 each.
October 15 - Sold 55 pairs to Casually Elegant Ltd at a unit price of $2,780
October 26 - Purchased 70 pairs at a cost of $2,400 each but these were subject to a trade discount of 5%.
November 10 - Sold 60 pairs to Best City Store which yielded total sales revenue of $192,000.
November 14 - Owing to an increased demand for this brand, the manager of Classique purchased 80 additional pairs of the “Aerosole” brand at a unit cost of $2,500, but additionally there was a freight charge of $100 on each pair.
November 24 - Sold 60 pairs of shoes to Big Buy Company at a price of $3,600 each.
November 30 - A physical stock count on that date revealed that there were 42 pairs of the “Aerosoles” brand in the warehouse.
December 4 - Purchased 75 pairs of shoes at a total cost of $213,750.
December 15 - 5 pairs of the shoes purchased on December 4 were returned to the supplier as they were of the wrong description.
December 30 - Sold 70 pairs to Regal Ltd. at a unit selling price of $4,400.
All purchases were on account and received on the dates stated and Classique Designs uses the FIFO method to account for inventory.
Required:
i) Prepare a perpetual inventory record for Classique Designs, to determine the value of ending inventory at December 31, 2013, and the total amount to be assigned to cost of goods sold for the period.
ii) Calculate the gross profit for the period. iii) You are told that 15 of the units sold on November 24, 2013 were on account. State the journal entries necessary to record the transactions on November 14 and November 24, assuming the business uses the: - Periodic inventory system - Perpetual inventory system
In: Accounting
Skyline Preparatory High for Girls is an elite prep school with 47 faculty and staff members on the payroll. Jamie Davis, a two-year English instructor, becomes pregnant. She is not married. She is a slim woman who is not showing visible signs of pregnancy and has not told the school administrators of her pregnancy. In her sixth month of pregnancy she develops pre-eclampsia, necessitating that she go on pregnancy leave immediately. Davis requests medical leave due to her pregnancy and applies for FMLA, believing that she is eligible (and because she desires to care for her baby after the baby is born). Skyline Prep's Headmaster, Doris Jones, tells Davis that she must resign because she would be setting a poor example for the students. Davis refuses, and now Doris Jones wants to terminate her.
Evaluate the actions of the school in this situation. In a positive and professional way, explain to Doris Jones what the school should do to prevent an adverse situation from occurring.?
As an attorney, what actions would you recommend that Doris Jones take to resolve this situation?
In: Operations Management
In: Statistics and Probability
1) What explains the fall in inequality from 2002 to 2010 in Latin America? In your answer be sure to explain the reasons for the changes in returns to education.
2) Why did the Latin America experience with industrialization from Word War I until World War II lead Latin American Structuralists to believe that it was necessary to limit imported manufacturing into Latin America?
In: Economics
Which of the following is a correct statement regarding a merger?
A. The surviving corporation gains none of the rights, privileges, powers, duties, obligations, or liabilities of the merged corporation.
B. The shareholders of the merged corporation do not receive stock or securities of the surviving corporation.
C. A merger occurs when one corporation is absorbed into another corporation.
D. The corporation that ceases to exist is called the suspended corporation
E. The corporation that continues to exist is called the merged corporation.
In: Economics
The ice rink is very crowded, and there are a lot of inexperienced people learning to ice skate there. Tara is originally skating at 4.5 m/s and collides with Sarah who is at rest. After the collision, they hang on to each other in an effort to not fall over. They are no longer watching where they are going and end up running into Millicent who was just standing there. Then they all hang on to each other to avoid falling over. They fall over after 1.5 seconds. How far did the three girls travel before falling over? Assume that all three girls have a mass of about 55 kg.
A high school physics teacher is looking for fun new ways to get his students excited about learning momentum. He decides to try the somewhat dangerous demonstration of sticking a firecracker in an empty soda can and lighting it. After he lights the firecracker, the soda can and firecracker will travel very quickly in opposite directions. The mass of an empty soda can is 13.68 g (according to the first result from Google), and the mass of a small firecracker is 45 g. The teacher estimates that the firecracker should have a speed of 35 m/s. How fast should he expect the soda can to travel? Is this demonstration a good idea?
In: Physics