An entity manufactures parts at its factory which it uses at a number of distribution centers. The following costs relate to the manufacture of the parts:
1. Fixed production overheads, apportioned on a reasonable basis
2. Costs of transporting the parts from the factory to the distribution centers
3. The costs of returning the transportation vehicles from the distribution centers to the factory
4.The ongoing costs of storing the parts at the distribution centers prior to their use.
Which of the above costs can be included in the cost of parts at the distribution centers under the principles of IAS 2?
A) 1 and 2
B) 2 and 4
C) 2 and 3
D) 1 and 4
In: Accounting
Java
Write a method intersect_or_union_fcn() that gets vectors of type integer v1, v2, and v3 and determines if the vector v3 is the intersection or union of vectors v1 and v2.
Example 1: If v1 = {2, 3, 1, 5}, v2 = {3, 4, 5} and v3 = {3, 5}, then:
intersect_or_union_fcn(v1, v2, v3) will print:
v3 is the intersection of v1 and v2
Example 2: If v1 = {2, 3, 1, 5}, v2 = {3, 4, 5} and v3 = {2, 3, 1, 5, 4}, then:
intersect_or_union_fcn(v1, v2, v3) will print:
v3 is the union of v1 and v2
Example 3: If v1 = {2, 3, 1, 5}, v2 = {3, 4, 5} and v3 = {2, 3, 1, 5, 4, 6}, then:
intersect_or_unition_fcn(v1, v2, v3) will print:
v3 is neither the intersection nor the union of v1 and v2.
Write a test program that prompts the user to enter three vectors and test your program with all the three examples above.
|
Your code for this problem |
|
-- Copy and paste your code here |
Run the code and insert the result in the following box.
|
The result of the query |
|
Copy and paste the result here (e.g. the screen shot of the result you get by running the code). |
In: Computer Science
Must Show Work
. Based on her own experiences in court, a prosecutor believes that some judges provide more severe punishments than other judges for people convicted of domestic violence. Five of the most recent domestic violence sentences (in years) handed down by three judges are recorded below.
|
Judge 1 |
Judge 2 |
Judge 3 |
|
1 |
3 |
1 |
|
1 |
2 |
5 |
|
3 |
4 |
2 |
|
2 |
3 |
1 |
|
2 |
4 |
1 |
Using this information, test the null hypothesis at the .05 level of significance that judges do not vary in the sentence lengths imposed on individuals convicted of domestic violence. In so doing, please: (1) identify the research and null hypotheses, (2) the critical value needed to reject the null, (3) the decision that you made upon analyzing the data, and (4) the conclusion you have drawn based on the decision you have made.
In: Statistics and Probability
Suppose an initially empty stack S has performed a total of 15 push operations, 12 top operations, and 13 pop operations ( 3 of which returned null to indicate an empty stack ). What is the current size of S?
Question 1 options:
Question 2 (1 point)
Saved
What values are returned during the following series of stack operations, if executed upon an initially empty stack? push(5), push(3), pop(), push(2), push(8), pop(), pop(), push(9), push(1), pop(), push(7), push(6), pop(), pop(), push(4), pop(), pop().
seperate by commas ie: 1, 2, 3, 4, 5, 6, 7, 8, 9
Question 2 options:
Question 3 (1 point)
Saved
What values are returned during the following sequence of queue operations, if executed on an initially empty queue? enqueue(5), enqueue(3), dequeue(), enqueue(2), enqueue(8), dequeue(), dequeue(), enqueue(9), enqueue(1), dequeue(), enqueue(7), enqueue(6), dequeue(), dequeue(), enqueue(4), dequeue(), dequeue().
seperate by commas ie: 1, 2, 3, 4, 5, 6, 7, 8, 9
Question 3 options:
Question 4 (1 point)
Saved
What values are returned during the following sequence of deque ( double ended queue ) ADT operations, on an initially empty deque? addFirst(3), addLast(8), addLast(9), addFirst(1), last( ), isEmpty( ), addFirst(2), removeLast( ), addLast(7), first( ), last( ), addLast(4), size( ), removeFirst( ), removeFirst( ).
seperate by commas ie: 1, 2, 3, 4, 5, 6, 7, 8, 9
Question 4 options:
Question 5 (1 point)
Saved
Suppose an initially empty queue Q has performed a total of 30 enqueue operations, 10 first operations, and 15 dequeue operations, 5 of which returned null to indicate an empty queue. What is the current size of Q?
Question 5 options:
In: Computer Science
1.You have a 4-year investment holding horizon, would like to earn a 5% annual compound return each year, you have a choice between two bonds. Whatever money you have to invest will be invested in one type of bonds or another. Find the Duration and Modified Duration for each bond
Bond 1 has a 5% annual coupon rate, $1000 maturity value, n = 4 years, YTM =5% (pays a $50 annual coupon at the end of each year and $1,000 maturity
payment at maturity).
Bond 2 is a zero coupon bond with a $1000 maturity value, and n = 4 years; YTM= 5%. (pays no coupons); only a $1,000 maturity payment at maturity).
a. Price Bond 1 ______________ Price Bond 2 _____________
b. Duration Bond 1 ______________ Duration Bond 2 ____________
c. Modified Duration Bond 1 ______ _ Modified Duration Bond 2 ____________
d. Which of the two bonds should you choose for your 4-year investment horizon to duration match to ensure your desired 5% annual compound return if you hold either bond to the end of 4 years? Explain why. (assume the same default risk for each bond)
._______________________________________
e. If interest rates go up by 1%, what will be the % Change in the market value for each
Bond’s Price? (Hint Change in Price % = - Modified Duration x Change in Rate
(expressed as a fraction, i.e. .01).
% Change in Price for Bond 1 ________% Change in Price for Bond 2 ____________
f. Which of the 2 bonds has more price risk, and which has more reinvestment risk?
Explain why
.____________________________________________
2. For the Zero Coupon Bond 2 above that has a $1,000 maturity value and 4 years to maturity, what will be your annual compound yield for your 4-year holding
period if you hold the bond to maturity, receiving the $1000 maturity value at the end of Year 4?
Annual Compound Yield for Bond 2 at End of Year 4 __________________
3 Suppose for the Coupon Bond 1 above that has a 5% annual coupon rate, $1,000 maturity value and 4 years to maturity, rates go down to 3% after you purchase the
bond for the life of the bond. Thus, you have to invest each of your coupon payments at the 3% rate, and you hold the bond to maturity.
What will be your annual compound yield if the bond is held to maturity?
Hint: Recall FV of Bond Coupons Reinvested for 4years = Coupon Payment (FVIFA 3%, 4)
ACY ={[(FV of Coupons +Maturity Value)] / (Bond’s Price)] ^1/n } - 1, where n = 4 years
Annual Compound Yield for Bond 1 at the End of Year 4
____________
c.Explain why you didn’t received your desired annual compound yield for Bond 1.
In: Finance
I. Consider the random experiment of rolling a pair of dice. Note: Write ALL probabilities as reduced fractions or whole numbers (no decimals).
|
1-1 |
2-1 |
3-1 |
4-1 |
5-1 |
6-1 |
|
1-2 |
2-2 |
3-2 |
4-2 |
5-2 |
6-2 |
|
1-3 |
2-3 |
3-3 |
4-3 |
5-3 |
6-3 |
|
1-4 |
2-4 |
3-4 |
4-4 |
5-4 |
6-4 |
|
1-5 |
2-5 |
3-5 |
4-5 |
5-5 |
6-5 |
|
1-6 |
2-6 |
3-6 |
4-6 |
5-6 |
6-6 |
2) How many outcomes does the sample space contain? _____36________
3)Draw a circle (or shape) around each of the following events (like you would circle a word in a word search puzzle). Label each event in the sample space with the corresponding letter.
A: Roll a sum of 3.
B: Roll a sum of 6.
C: Roll a sum of at least 9.
D: Roll doubles.
E: Roll snake eyes (two 1’s). F: The first die is a 2.
3) Two events are mutually exclusive if they have no outcomes in common, so they cannot both occur at the same time.
Are C and F mutually exclusive? ___________
Using the sample space method (not a special rule), find the probability of rolling a sum of at least 9 and rolling a 2 on the first die on the same roll. P(C and F) = __________
Using the sample space method (not a special rule), find the probability of rolling a sum of at least 9 or rolling a 2 on the first die on the same roll.
P(C or F) = __________
4) Special case of Addition Rule: If A and B are mutually exclusive events, then
P(A or B) = P(A) + P(B)
Use this rule and your answers from page 1 to verify your last answer in #6:
P(C or F) = P(C) + P(F) = ________ + ________ = _________
5) Are D and F mutually exclusive? __________
Using the sample space method, P(D or F) = _________
6) Using the sample space method, find the probability of rolling doubles and rolling a “2” on the first die.
P (D and F) = _______
7) General case of Addition Rule: P(A or B) = P(A) + P(B) – P(A and B)
Use this rule and your answers from page 1 and #9 to verify your last answer in #8:
P(D or F) = P(D) + P(F) – P(D and F) = ________ + ________ − ________ = _________
8) Two events are independent if the occurrence of one does not influence the probability of the other occurring. In other words, A and B are independent if P(A|B) = P(A) or if P(B|A) = P(B).
Compare P(D|C) to P(D), using your answers from page 1: P(D|C) = ________ P(D) = ________ Are D and C independent? _________ because _______________________________
When a gambler rolls at least 9, is she more or less likely to roll doubles than usual? ___________ Compare P(D|F) to P(D), using your answers from page 1: P(D|F) = ________ P(D) = ________
Are D and F independent? __________ because ______________________________
9) Special case of Multiplication Rule: If A and B are independent, then P(A and B) = P(A) · P(B).
Use this rule and your answers from page 1 to verify your answer to #9: P(D and F) = P(D) • P(F) = ________ · ________ = ________ .
10) Find the probability of rolling a sum of at least 9 and getting doubles, using the sample space method.
P(C and D) = ___________ .
11) General case of Multiplication Rule: P(A and B) = P(A) · P(B|A).
Use this rule and your answers from page 1 to verify your answer to #13: P(C and D) = P(C) • P(D|C) = ________ · ________ = ________ .
In: Statistics and Probability
Construct the visualization matrix for the following coin problem and find its optimal solution:
Coins: Penny, Nickle, Dime, and Quarter The amount= 27cents
USE DYNAMIC PROGRAMMING METHOD
Dynamic Programming
Let c[k,x] be the minimum number of coins for the amount x using the first k coins.
Goal: find a recurrence relation for c[k, x].
There are only two possible choices:
1. amount x includes the largest coin which is dk
c[k, x] = 1 + c[k, x – dk]
2. amount x does not include the largest coin
c[k, x] = c[k - 1, x ]
Among these two choices, we always pick the smallest one.
Goal: find a recurrence relation for c[k, x]
c[k, x] = MIN (1 + c[k, x – dk], c[k - 1, x ])
c[k, x] = c[k - 1, x ], if x < dk
c[k, 0] = 0
c[1, x] = x
where 1 ≤ k ≤ n and 0 ≤ x ≤ m.
Solution to the problem is c[n, m]
Example of Money Changing Problem d1 =1 d2=4 d3=6 and the amount = 8
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
|
|
k==1 1 cent |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
|
k=2 4 cents |
0 |
1 |
2 |
3 |
1 |
2 |
3 |
4 |
2 |
|
k=3 6 cents |
0 |
1 |
2 |
3 |
1 |
2 |
3 |
1 |
2 |
c[k, x] = MIN (1 + c[k, x – dk], c[k - 1, x ])
c[k, x] = c[k - 1, x ], if x < dk
c[k, 0] = 0
c[1, x] = x
where 1 ≤ k ≤ n and 0 ≤ x ≤ m The minimum number of coins= C[3,8]=2
In: Computer Science
A time study was conducted on a job that contains four elements. The observed times and performance ratings for six cycles are shown in the following table.
| OBSERVATIONS (minutes per cycle) | |||||||||||||||||||||
| Element | Performance Rating |
1 | 2 | 3 | 4 | 5 | 6 | ||||||||||||||
| 1 | 90 | % | 0.44 | 0.50 | 0.43 | 0.45 | 0.44 | 0.46 | |||||||||||||
| 2 | 85 | 1.50 | 1.56 | 1.47 | 1.51 | 1.49 | 1.52 | ||||||||||||||
| 3 | 110 | 0.84 | 0.89 | 0.77 | 0.83 | 0.86 | 0.80 | ||||||||||||||
| 4 | 100 | 1.10 | 1.14 | 1.08 | 1.16 | 1.16 | 1.26 | ||||||||||||||
a. Determine the average cycle time for each
element. (Round your answers to 3 decimal
places.)
| Element | Average cycle |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
b. Find the normal time for each element.
(Round your answers to 3 decimal places.)
| Element | Normal time |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
c. Assuming an allowance percentage of 15 percent
of job time, compute the standard time for this job. (Round
your answers to 3 decimal places.)
| Element | Standard time |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
In: Operations Management
Approximate the net signed area under the graph of y=x-1 curve on [0,2], using rectangles with n=4 and n=8 when taking the right end points as your sampling points (sampling points are the points where you are measuring the heights of the rectangles).
Have a picture of the graph and all the specific values. For example, for n=4 , you interval of [0,2] of f(x) will have f(1/2)times delta x +f(1)*delta x+ f(3/2)*delta x+f(2)*delta x=the area of A1+A2+A3+A4=?? Delta x is, of course, the width of our rectangles. It is equal to the distance between the two sampling points! Then you will divide into n=8 subintervals....You will need deltax= (2-0)/8=1/4 , and you will need f(1/4)*deltax+f(2/4)*deltax+... =you will have 8 rectangles. Area= ( approximately) A1+A2+A3+A4+A5+A6+A7+A8
In: Math
Design a network with the following requirements:
- 4 LANS separated by a WAN
- Utilize any Class C address; any routing protocol
-Implement the following:
In Router 0,
1. Banner
2. Time-out
3. Block Log in
4. Telnet
In Router 1:
1. Privilege Level 15 for User1
2. Privilege level 3 for User 2
3. SSH
In: Computer Science