Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways.
Write a program that takes a string and integer as input, and outputs a sentence using those items as below. The program repeats until the input string is quit 0.
# in python
In: Other
Lead time for one of your fastest- moving products is 21 days. Demand during this period averages 100 units per day.
a) What would be an appropriate reorder point?
b) How does your answer change if demand during lead time doubles?
c) How does your answer change if demand during lead time drops in half?
In: Other
Consider the following time series data:
Week 1 2 3 4 5 6
Value 18 13 16 11 17 14
using the naïve method (most recent value) as the forecast for the next week, compute the following measures of forecast accuracy.
a. mean absolute error
b.mean squared error
c. mean absolute percentage error
d.What is the forecast for Week 7?
2. refer to the time series data in exercise 1. using the average of all the historical data as a forecast for the next period, compute the following measures of forecast accuracy
: a. mean absolute error
b. mean squared error
c. mean absolute percentage error
d. What is the forecast for Week 7?
3. exercises 1 and 2 used different forecasting methods. Which method appears to provide the more accurate forecasts for the historical data? explain.
In: Other
A pension fund manager is considering three mutual funds. The first is a stock fund, the second is a long-term government and corporate bond fund, and the third is a T-bill money market fund that yields a sure rate of 5.5%. The probability distributions of the risky funds are:
Expected Return | Standard Deviation | |
---|---|---|
Stock fund (S) | 15% | 36% |
Bond fund (B) | 9% | 27% |
What is the expected return and standard deviation for the minimum-variance portfolio of the two risky funds? (Do not round intermediate calculations. Round your answers to 2 decimal places.)
Expected Return
Stardard Deviation
In: Other
The following graph shows the current short-run Phillips curve for a hypothetical economy; the point on the graph shows the initial unemployment rate and inflation rate. Assume that the economy is currently in long-run equilibrium.
Suppose the central bank of the hypothetical economy decides to increase the money supply.
On the following graph, shift the short-run (SR) Phillips curve or drag the blue point along the curve, or do both, to show the short-run effects of this policy.
Hint: You may assume that the central bank's move was unanticipated.
In the short run, an unexpected increase in the money supply results in in the inflation rate and in the unemployment rate.
On the following graph, shift the curve or drag the blue point along the curve, or do both, to show the long-run effects of the increase in the money supply.
In the long run, the increase in the money supply results in in the inflation rate and in the unemployment rate (relative to the economy's initial equilibrium).
In: Other
(1) C&A's potato chip filling process has a lower specification limit of 9.5 oz and an upper specification limit of 10.5 oz. The standard deviation is 0.3 oz. and the mean is 10 oz. What is the process capability index (Cp) for the chip filling process?
(a) 0.56
(b) 1.11
(c) 0.33
(d) 3.33
(2) Which of the following represents customer requirement from a process?
(a) Sample size in control charts
(b) USL and LSL
(c) Process standard deviation
(d) UCL and LCL
(3) The mean of a process is 50, and the standard deviation is 2. The company uses statistical control process (SPC) to monitor the process. It uses sample size on 4, and 3 sigma (z=3) control limits. What are the Upper Control Limit (UCL) and Lower Control Limit (LCL)?
(a) LCL=48 and UCL=52
(b) LCL=44 and UCL=56
(c) LCL=47 and UCL=53
(d) LCL=49 and UCL=51
(4) If a company narrows the control limits for a process without making any other changes, which of the following will happen?
(a) The process will generate more products not acceptable by customers
(b) The process will not be stopped even when assignable cause is present
(c) The capability index for the process will reduce to a lower value
(d) The process will be stopped more often suspecting assignable cause
In: Other
The local driver’s license center processes applications for driver’s license renewals through the following three steps. First, the customer registers with the receptionist, who updates the customer’s information in the database. This first step takes 2 minutes per customer. Then the customer visits one of two cashiers to pay the associated fees for the license renewal. This takes 8 minutes per customer because several forms must be printed from the computer and signed by the customer. Finally, the customer visits one of three license processing stations where the customer’s picture is taken and the license is printed. This final step takes 15 minutes per customer.
|
In: Other
A Firm purchased an old Machinery for RM37,000 on 1 January, 2017 and spent RM3,000 on its overhauling. On 1 July 2018, another machine was purchased for RM 10,000. On 1 July 2019, the machinery which was purchased on 1 January 2017, was sold for RM28,000 and the same day a new machinery costing RM25,000 was purchased. On 1 July, 2020, the machine which was purchased on 1 July, 2018 was sold for RM2,000. Depreciation is charged at 10% per annum on straight line method. The firm changed the method and adopted diminishing balance method with effect from 1 January, 2018 and the rate was increased to 15% per annum. The books are closed on 31 December every year.
Required:
Prepare Machinery account for four years from 1 January, 2017.
In: Other
Malware is suspected on a server in the environment. The analyst
is provided with the output of commands
from servers in the environment and needs to review all output
files in order to determine which process
running on one of the servers may be malware.
Instructions:
Servers 1, 2 and 4 are clickable. Select the Server which hosts the
malware, and select the process which
hosts this malware.
If any time you would like to bring back the initial state of the
simulation, please select the Reset button. When
01FBAEF084FA42B3BDA0C32C94CD0BF3
you have completed the simulation, please select the Done button to
submit. Once the simulation is submitted, please select the Next
button to continue.
Have to pick either server 1, server 2, or server 4. Than pick one process from the process list.
In: Other
Part D - Labeling the Spinal Anatomy
Drag the name of the nervous tissue to the proper spot
on the image.
Drag the name of the nervous tissue to the proper spot on the image. Drag the appropriate labels to their respective targets.
Spinal nerve
Posterior ramus
Motor nuclei
Anterior root
Posterior root
Anterior ramus
In: Other
C&A makes two types of products using four machines from 9 a.m. to 5 p.m. each day. Product A visits machines 1, 2, and 4. Product B only visits machines 1 and 3. The capacity is 0.4 unit per minute at machine 1, 0.12 unit per minute at machine 2, 0.2 unit per minute at machine 3, and 0.3 unit per minute at machine 4. The demand per day is 40 units for Product A and 160 units for Product B. Which is the implied utilization for the bottleneck resource?
In: Other
A crane drops a 0.30 kg steel ball onto a steel plate. The ball's speeds just before impact and after are 4.5 m/s and 4.2 m/s, respectively. If the ball is in contact with the plate for 0.030 s, what is the magnitude of the average force that the ball exerts on the plate during impact?
In: Other
Assuming the structure does
not deform out-of-plane, and that none of the members buckle, find
the force and stress that each member named in the table below
carries and the change in length of each of those members if they
are composed of structural steel.
a | b | c | d | h | F1F1 | θθ | F2F2 | ϕϕ |
1.9 m | 3.4 m | 2.4 m | 5.2 m | 9.5 m | 6 kN | 54 deg | 6.7 kN | 23 deg |
Members:
(Denote tension forces, tensile stresses, and elongations with
positive values; compressive forces, compressive stresses and
compactions with negative values.)
Member | Cross- | Force | Stress | Change in |
BCBC | 260 | |||
BPBP | 200 | |||
PQPQ | 260 | |||
PCPC | 200 | |||
CDCD | 260 | |||
DPDP | 200 | |||
NPNP | 260 |
In: Other
Zhu Manufacturing is considering the introduction of a family of new products. Long-term demand for the product group is somewhat predictable, so the manufacturer must be concerned with the risk of choosing a process that is inappropriate. Faye Zhu is VP of operations. She can choose among batch manufacturing or custom manufacturing, or she can invest in group technology. Faye won’t be able to forecast demand accurately until after he makes the process choice. Demand will be classified into four compartments: poor, fair, good, and excellent. The table below indicates the payoffs (profits) associated with each process/demand combination, as well as the probabilities of each long-term demand level.
Poor | Fair | Good | Excellent | |
---|---|---|---|---|
Probability | .1 | .4 | .3 | .2 |
Batch | -$ 200,000 | $1,000,000 | $1,200,000 | $1,300,000 |
Custom | $ 100,000 | $ 300,000 | $ 700,000 | $ 800,000 |
Group Tech. | -$ 1,000,000 | -$ 500,000 | $ 500,000 | $2,000,000 |
A) Based on expected value, what choice offers the greatest gain?
B) What would Faye Zhu be willing to pay for a forecast that would accurately determine the level of demand in the future?
In: Other
What is the expected value with perfect information of the following decision table?
States of nature
Alternative |
S1 |
S2 |
Probability |
0.4 |
0.6 |
Option 1 |
10,000 |
30,000 |
Option 2 |
5,000 |
45,000 |
Option 3 |
-4,000 |
60,000 |
A) 5,000 B) 10,000 C) 40,000 D) 60,000 E) 70,000
In: Other