A psychologist would like to determine whether there is a relation between depression and aging. It is known that the general population averages μ = 40 on a standardized depression test. The psychologist obtains a sample of n = 9 individuals who are all more than 70 years old. The depression scores for this sample are as follows.
50, 47, 41, 49, 44, 42, 43, 47, 48
On the basis of this sample, can the psychologist conclude that
depression for elderly people is significantly different from
depression in the general population? Use a two-tailed test at the
0.05 level of significance. (Round your answers to three decimal
places.)
| t-critical = | ± |
t=
In: Statistics and Probability
The price of a stock is $40. The price of a one-year put with strike price $30 is $0.70 and a call with the same time to maturity and a strike of $50 costs $0.50. Both options are European.
(a) An investor buys one share, shorts one call and buys one put. Draw and comment upon the payoff of this portfolio at maturity as a function of the underlying price.
(b) How would your answer to (a) change if the investor buys one share, shorts two calls and buys two puts instead.
In: Finance
Lower-of-Cost-or-Market Inventory
Data on the physical inventory of Ashwood Products Company as of December 31 follows:
Description |
Inventory Quantity |
Unit Market Price |
||||
| B12 | 38 | $ 57 | ||||
| E41 | 18 | 180 | ||||
| G19 | 33 | 126 | ||||
| L88 | 18 | 550 | ||||
| N94 | 400 | 7 | ||||
| P24 | 90 | 18 | ||||
| R66 | 8 | 250 | ||||
| T33 | 140 | 20 | ||||
| Z16 | 15 | 752 | ||||
Quantity and cost data from the last purchases invoice of the year and the next-to-the-last purchases invoice are summarized as follows:
| Last Purchases Invoice |
Next-to-the-Last Purchases Invoice |
||||||||||||
Description |
Quantity Purchased |
Unit Cost |
Quantity Purchased |
Unit Cost |
|||||||||
| B12 | 30 | $ 60 | 30 | $ 59 | |||||||||
| E41 | 35 | 178 | 20 | 180 | |||||||||
| G19 | 20 | 128 | 25 | 129 | |||||||||
| L88 | 10 | 563 | 10 | 560 | |||||||||
| N94 | 500 | 8 | 500 | 7 | |||||||||
| P24 | 80 | 22 | 50 | 21 | |||||||||
| R66 | 5 | 248 | 4 | 260 | |||||||||
| T33 | 100 | 21 | 100 | 19 | |||||||||
| Z16 | 10 | 750 | 9 | 745 | |||||||||
Required:
Determine the inventory at cost and also at the lower of cost or market, using the first-in, first-out method. Record the appropriate unit costs on the inventory sheet, and complete the pricing of the inventory. When there are two different unit costs applicable to an item, proceed as follows:
Insert the quantity and unit cost of the last purchase.
On the following line, insert the quantity and unit cost of the next-to-the-last purchase.
Total the cost and market columns and insert the lower of the two totals in the LCM column.
The first item on the inventory sheet has been completed as an example.
| Inventory Sheet December 31 |
|||||||
|---|---|---|---|---|---|---|---|
| Description | Inventory Quantity | Cost Price Unit | Market Value per Unit (Net Realizable Value) |
||||
| Cost | Market | LCM | |||||
| B12 | 38 | 30 | $60 | $57 | $1,800 | $1,710 | |
| 8 | 59 | 57 | 472 | 456 | |||
| 2,272 | 2,166 | $2,166 | |||||
| E41 | 18 | ||||||
| G19 | 33 | ||||||
| L88 | 18 | ||||||
| N94 | 400 | ||||||
| P24 | 90 | ||||||
| R66 | 8 | ||||||
| T33 | 140 | ||||||
| Z16 | 15 | ||||||
| Total | $ | $ | $ | ||||
In: Accounting
Materials Requirements Planning
QUESTION
An MRP exercise is being implemented over an 8-week period and the following relevant information is provided:
One (1) unit of A is made of two (2) units of B and three (3) units of C. One (1) unit of B is made up of three (3) units of D and two (2) units of E. One(1) unit of C is made up of two (2) units of B and two (2) units of D. Items A, C and E have one (1) week lead time. Items B and D have lead times of two (2) weeks. Assume that lot-for-lot (L4L) lot sizing is used for Items A, C and E and a lot size of 100 is used for items B and D. Items A and D have beginning inventories of twenty (20) and forty ( 40) units respectively; all other items have zero beginning inventory. We are scheduled to receive ten (10) units of item B in week two (2) and twenty (20) units of item D in week one (1). There are no other scheduled receipts.
In: Operations Management
|
The following statements apply to concepts and material discussed in Chapter 6; identify which statement is TRUE. |
||||||||||||||||||||||||
|
In: Biology
0. Introduction.
In this assignment you will implement a stack as a Java class, using a linked list of nodes. Unlike the stack discussed in the lectures, however, your stack will be designed to efficiently handle repeated pushes of the same element. This shows that there are often many different ways to design the same data structure, and that a data structure should be designed for an anticipated pattern of use.
1. Theory.
The most obvious way to represent a sequence of objects is simply to list them, one after the other, like this.
|
a |
a |
b |
b |
b |
c |
a |
a |
d |
d |
d |
d |
Note that the same objects often appear many times in a row. This is called a run of those objects. In the example sequence, there is a run of 2 a’s, a run of 3 b’s, a run of 1 c, a run of 2 a’s, and a run of 4 d’s. You can represent a sequence with runs by listing its objects, along with the number of times each object appears. For example, you can represent the sequence shown above like this.
|
a |
b |
c |
a |
d |
|
2 |
3 |
1 |
2 |
4 |
Representing a sequence in this way is called run-length
encoding. If a sequence has long runs, or many runs, then
run-length encoding will represent it more efficiently than simply
listing its objects. However, if a sequence has short runs, or few
runs, then run-length encoding may represent it less
efficiently, because extra space is needed to store the lengths of
the runs.
Since a stack is just a simple kind
of sequence, you can use run-length encoding to implement it. In
this assignment, you will write a Java class called RunnyStack that
implements a stack which uses run-length encoding. Here are some
examples of how it works. Suppose you push an object a on
an empty RunnyStack. Then the stack will look like this, with a run
of 1 a.
|
a 1 |
Now suppose you push b. The stack now looks like this, with a run of 1 b, and a run of 1 a.
|
b 1 |
|
a 1 |
If you push another b on the RunnyStack, then the length of the run on top of the stack is incremented, so the stack looks like this.
|
b 2 |
|
a 1 |
If you push yet another b, then the length of the run at the top of the stack would increase to 3. However, suppose that you pop the RunnyStack instead. Then the length of the run at the top is decremented, so that the stack looks like this.
|
b 1 |
|
a 1 |
If you pop the RunnyStack one more time, then the length of the run on top of the stack is decremented to 0. However, a run of 0 objects is like no run at all, so it vanishes, and the stack looks as it did after the first push.
|
a 1 |
Stacks with run-length encoding are used internally by some compilers and interpreters, because they often push the same objects over and over again.
2. Implementation.
You must write a class called RunnyStack that represents a stack. Your class must implement run-length encoding, as described previously. It must also hold objects of type Base, so it will look like this.
class RunnyStack<Base>
{
⋮
}
Your class must define at least the following methods, as described below. To simplify grading, your methods must have the same names as the ones shown here.
public RunnyStack()
Constructor. Make a new, empty instance of RunnyStack.
public int depth()
Return the depth of the stack: the sum of the lengths of all the runs it holds. This is not necessarily the same as the number of runs it holds, which is returned by the method runs.
public boolean isEmpty()
Test if the stack is empty.
public Base peek()
If the stack is empty, then throw an IllegalStateException. Otherwise, return the Base at the top of the stack.
public void pop()
If the stack is empty, then throw an IllegalStateException. Otherwise, decrement the length of the run on top of the stack. If this leaves a run of zero Base’s on top of the stack, then remove that run.
public void push(Base base)
If the stack is empty, then add a new run of one Base at the top of the stack. If the stack is not empty, then test if base is equal to the object in the run at the top of the stack. If it is, then increment the length of that run. If it isn’t, then add a new run of one base at the top of the stack. Note that base may be null.
public int runs()
Return the number of runs in the stack. This is not necessarily the same as its depth, which is returned by the method depth.
Important!!!!!!!! Here are some hints, requirements, and
warnings. First, all these methods must work using O(1)
operations, so they are not allowed to use loops or recursions.
You will receive no points for this assignment if you use loops
or recursions in any way!
Second, your RunnyStack class must
have a private nested class called Run. You must use instances of
Run to implement your stack. Each instance of Run represents a run
of Base’s. You will receive no points for this assignment if
you use arrays in any way! The class Run must have three
private slots that have the following names and types. The slot
base points to the Base that appears in the run. The slot length is
an int that is the length of the run. The slot next points to the
instance of Run that is immediately below this one on the stack, or
to null. It must also have a private constructor that initializes
these slots.
Third, your push method must test
non-null Base’s for equality using their equals methods. It must
use the Java ‘==’ operator only for testing null Base’s. It is
helpful to define an extra private method called isEqual that takes
two Base’s as arguments, and tests if they are equal. If either
Base is null, then isEqual uses ‘==’. If neither Base is null, then
isEqual uses equals.
Fourth, RunnyStack’s methods are not
allowed to print things. If you were writing RunnyStack in the Real
World, then it might be part of some larger program. You don’t know
if that larger program should print things.
TEST.JAVA FILE AS FOLLOW:
// The TRY-CATCH statements catch exceptions thrown by RUNNY STACK's methods,
// so that the program can continue to run even if a method fails.
//
// Tests have comments that show what they should print, and how many points
// they are worth, for a total of 40 points.
//
// Camembert is a soft French cheese. It may be runny. It can be stacked.
//
class Camembert
{
public static void main(String [] args)
{
RunnyStack<String> s = new RunnyStack<String>();
System.out.println(s.isEmpty()); // true 1 point
System.out.println(s.depth()); // 0 1 point
System.out.println(s.runs()); // 0 1 point
try
{
s.pop();
}
catch (IllegalStateException ignore)
{
System.out.println("No pop"); // No pop 1 point
}
try
{
System.out.println(s.peek());
}
catch (IllegalStateException ignore)
{
System.out.println("No peek"); // No peek 1 point
}
s.push("A");
System.out.println(s.peek()); // A 1 point
System.out.println(s.depth()); // 1 1 point
System.out.println(s.runs()); // 1 1 point
System.out.println(s.isEmpty()); // false 1 point
s.push("B");
System.out.println(s.peek()); // B 1 point
System.out.println(s.depth()); // 2 1 point
System.out.println(s.runs()); // 2 1 point
s.push("B");
System.out.println(s.peek()); // B 1 point
System.out.println(s.depth()); // 3 1 point
System.out.println(s.runs()); // 2 1 point
s.push("B");
System.out.println(s.peek()); // B 1 point
System.out.println(s.depth()); // 4 1 point
System.out.println(s.runs()); // 2 1 point
s.push("C");
System.out.println(s.peek()); // C 1 point
System.out.println(s.depth()); // 5 1 point
System.out.println(s.runs()); // 3 1 point
s.push("C");
System.out.println(s.peek()); // C 1 point
System.out.println(s.depth()); // 6 1 point
System.out.println(s.runs()); // 3 1 point
s.pop();
System.out.println(s.peek()); // C 1 point
System.out.println(s.depth()); // 5 1 point
System.out.println(s.runs()); // 3 1 point
s.pop();
System.out.println(s.peek()); // B 1 point
System.out.println(s.depth()); // 4 1 point
System.out.println(s.runs()); // 2 1 point
s.pop();
System.out.println(s.peek()); // B 1 point
System.out.println(s.depth()); // 3 1 point
System.out.println(s.runs()); // 2 1 point
s.pop();
s.pop();
System.out.println(s.peek()); // A 1 point
System.out.println(s.depth()); // 1 1 point
System.out.println(s.runs()); // 1 1 point
s.pop();
System.out.println(s.isEmpty()); // true 1 point
System.out.println(s.depth()); // 0 1 point
System.out.println(s.runs()); // 0 1 point
try
{
System.out.println(s.peek());
}
catch (IllegalStateException ignore)
{
System.out.println("No peek"); // No peek 1 point
}
}
}In: Computer Science
The International Air Transport Association surveyed business travellers to determine the assessment of international airports. The maximum possible rating was 10. Suppose a simple random sample of 50 travelers rated Miami Airport, and another simple random sample of 50 travelers rated Los Angeles airport. The answers were as follows.
Miami:
6 4 6 8 7 7 6 3 3 8 10 4 8
7 8 7 5 9 5 8 4 3 8 5 5 4
4 4 8 4 5 6 2 5 9 9 8 4 8
9 9 5 9 7 8 3 10 8 9 6
Los Angeles:
10 9 6 7 8 7 9 8 10 7 6 5 7
3 5 6 8 7 10 8 4 7 8 6 9 9
5 3 1 8 9 6 8 5 4 6 10 9 8
3 2 7 9 5 3 10 3 5 10 8
With α = 0.025, perform all the steps discussed in the course with the respective appropriate null and alternative hypotheses to determine that the two airports are highly competitive.
In: Statistics and Probability
In 1974, Loftus and Palmer conducted a classic study demonstrating how the language used to ask a question can influence eyewitness memory. In the study, college students watched a film of an automobile accident and then were asked questions about what they saw. One group was asked, “About how fast were the cars going when they smashed into each other?” Another group was asked the same question except the verb was changed to “hit” instead of “smashed into.” The “smashed into” group reported significantly higher estimates of speed than the “hit” group. You, as a researcher wonder if Loftus and Palmer’s study is reliable, and repeats this study with a sample of FIU students and obtains the following data.
|
Hit Group |
Smashed Into Group |
|
|
32 |
50 |
|
|
26 |
44 |
|
|
40 |
54 |
|
|
23 |
45 |
|
|
42 |
44 |
|
|
20 |
40 |
|
|
37 |
49 |
|
|
25 |
34 |
|
|
24 |
38 |
|
|
22 |
30 |
|
|
19 |
50 |
|
|
24 |
46 |
|
|
19 |
40 |
|
|
22 |
35 |
|
|
29 |
43 |
|
|
24 |
41 |
|
|
34 |
30 |
|
|
33 |
39 |
|
|
37 |
44 |
|
|
20 |
35 |
Your job is to determine if smashed into group reports higher speed than hit group. As you work on this problem, make sure to provide information for each of the eight steps we cover in Chapter 11 (Salkind) as well as the APA write-up you would see in a results section.
In: Statistics and Probability
A large operator of timeshare complexes requires anyone interested in making a purchase to first visit the site of interest. Historical data indicates that 20% of all potential purchasers select a day visit, 50% choose a one-night visit, and 30% opt for a two-night visit. In addition, 40% of day visitors ultimately make a purchase, 50% of one-night visitors buy a unit, and 50% of those visiting for two nights decide to buy. Suppose a visitor is randomly selected and is found to have made a purchase.
How likely is it that this person made a day visit? (Round your answer to three decimal places.)
How likely is it that this person made a one-night visit? (Round your answer to three decimal places.)
How likely is it that this person made a two-night visit? (Round your answer to three decimal places.)
In: Statistics and Probability
In part A of the synthesis of Lidocaine you will have to perform multiple extractions. Answer the following questions with the correct match. (bottom, top, aqueous layer, or ethereal layer)
|
40-50 ml of 8M KOH was added to damp solid and the pH of the solution was adjusted to be above 10. You cooled the aqueous solution and transferred it to the separatory funnel, added diethyl ether and have shaken the funnel several times. Which layer will be aqueous layer, top or bottom? |
|
|
40-50 ml of 8M KOH was added to damp solid and the pH of the solution was adjusted to be above 10. You cooled the aqueous solution and transferred it to the separatory funnel and performed two sequential extractions with diethyl ether. In which layer, aqueous or etheral, the product 2,6-dimethylaniline will be found? |
|
|
40-50 ml of 8M KOH was added to damp solid and the pH of the solution was adjusted to be above 10. You cooled the aqueous solution and transferred it to the separatory funnel and first portion of diethyl ether extracted the aqueous layer. Which layer you will place back into separatory funnel to extract it second time with diethyl ether, aqueous or etheral? |
|
|
Potassium chloride and stannic hydroxide will be the inorganic products of the reaction with KOH. In which layer they will be found after two sequential extractions with diethyl ether, etheral layer or aqueous layer? |
In part C of the synthesis of Lidocaine you will have to perform multiple extractions. Answer the following questions with the correct match. (bottom or top)
|
35 ml of toluene is transferred to the separatory funnel and 20 ml of 3M HCl is added, the separatory funnel has been shaken several times. Which layer will be aqueous layer, the top or the bottom? |
|
|
35 ml of toluene is transferred to the separatory funnel and 20 ml of 3M HCl is added, the separatory funnel has been shaken several times. Which layer will contain the lidocaine product, the top or the bottom? |
|
| Two acidic aqueous extracts were combined and 25 nl of 8M KOH solution has been added. This solution has been transferred to the separatory funnel and 15 ml of diethyl ether has been added. The separatory funnel has been shaken several times. Which layer will be the aqueous one, the top or the bottom? | |
|
35 ml of toluene is transferred to the separatory funnel and 20 ml of 3M HCl is added, the separatory funnel has been shaken several times. To which layer the second portion of 20 ml of 3M HCl should be added, the top or the bottom? |
|
|
two acidic aqueous extracts were combined and 25 nl of 8M KOH solution has been added. This solution has been transferred to the separatory funnel and 15 ml of diethyl ether has been added. The separatory funnel has been shaken several times.Which layer will contain the lidocaine product, the top or the bottom? |
In: Chemistry