Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a VendingMachine object that performs the following operations:
Purchases input number of drinks
Restocks input number of bottles
Reports inventory
The VendingMachine is found in VendingMachine.java. A VendingMachine's initial inventory is 20 drinks.
Ex: If the input is:
5 2
the output is:
Inventory: 17 bottles import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); /* Type your code here. */ } }
In: Other
The following table gives the number of pints of type A blood used at Damascus Hospital in the past 6 weeks:
Week Of | Pints Used |
---|---|
August 31 | 350 |
September 7 | 389 |
September 14 | 408 |
September 21 | 378 |
September 28 | 371 |
October 5 | 374 |
a) The forecasted demand for the week of October 12 using a 3-week moving average =pints (round your response to two decimal places).
b) Using a 3 -week weighted moving average, with weights of 0.20,0.30, and 0.50, using 0.50 for the most recent week, the forecasted demand for the week of October 12=_______ pints (round your response to two decimal places and remember to use the weights in appropriate order - the largest weight applies to most recent period and smallest weight applies to oldest period.)
c) If the forecasted demand for the week of August 31 is 350 and α = 0.25, using exponential smoothing, develop the forecast for each of the weeks with the known demand and the forecast for the week of October 12 (round your responses to two decimal places).
Week Of | Pints Used | Forecast for this Date |
---|---|---|
August 31 | 350 | 350 |
September 7 | 389 | 350.00 |
September 14 | 408 | 359.75 |
September 21 | 378 | ◻ |
September 28 | 371 | ◻ |
October 5 | 374 | ◻ |
October 12 | - | ◻ |
In: Other
Southeastern Bell stocks a certain switch connector at its central warehouse for supplying field service offices. The yearly demand for these connectors is 15,000 units Southeastern estimates its annual holding cost for this item to be $24 per unit. The cost to place and process an order from the supplier is $77. The company operates 300 days per year, and the lead time to receive an order from the supplier is 3 working days.
a)Find the economic order quantity.
b) Find the annual holding costs.
c) Find the annual ordering costs.
d) What is the reorder point?
In: Other
Sales of tablet computers at Ted Glickman's electronics store in Washington, D.C., over the past 10 weeks are shown in the table below:
Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
---|---|---|---|---|---|---|---|---|---|---|
Demand | 20 | 21 | 29 | 38 | 26 | 29 | 37 | 24 | 24 | 28 |
The forecast for weeks 2 through 10 using exponential smoothing with α = 0.50 and a week 1 initial forecast of 20.0 are (round your responses to two decimal places):
Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
---|---|---|---|---|---|---|---|---|---|---|
Demand | 20 | 21 | 29 | 38 | 26 | 29 | 37 | 24 | 24 | 28 |
Forecast | 20.0 |
In: Other
A shunt-type ohmmeter uses a 2 mA basic d'Arsonval movement with an internal resistance of 25 Ω. The battery emf is 1.5 V.
Calculate:-
(a) Value of the resistor in series with the battery to adjust the Full Scale Deflection (FSD)
(b) At what point (percentage) of full-scale will 100 Q be marked on the scale?
Rx = unknown resistance R1 = scale adjusting resistance E = omf of intemal battery Rm= PMMC meter resistance S = switch EI
In: Other
A toy manufacturer makes its own wind-up motors, which are then put into its toys While the toy manufacturing process is continuous, the motors are intermittent flow. Data on the manufacture of the motors appears below.
Annual demand (D)-50,000 units Daily subassembly production rate = 1,000
Setup cost (S) = $85 per batch Daily subassembly usage rate = 200
Carrying cost = $.20 per unit per year
1. To minimize cost, how large should each batch of subassemblies be?
2. What is the average inventory for this problem?
3. What is the total annual inventory cost (holding plus setup) of the optimal behavior in this 3 Marks problem?
In: Other
To determine whether the pipe welds in a nuclear power plant meet specifications a random sample of welds is selected, and tests conducted on each. Weld strength is measured as the force required to break the weld. Suppose the specifications state that mean strength of welds should exceed 100lb/in2; the inspection team decides to test Ho : μ = 100 versus Ha : μ < 100 why is this not as good as Ha : μ > 100
In: Other
YEAR | TOTAL ENROLLMENT |
---|---|
y | |
2015 | 2,000 |
2016 | 2,200 |
2017 | 2,800 |
2018 | 3,000 |
In: Other
The compound shaft shown in the figure consists of two steel [ G = 80 GPa ] pipe segments. The shaft is subjected to external torques T B and T C which act in the directions shown. Segment (1) has an outside diameter of 196 mm and a wall thickness of 8 mm. Segment (2) has an outside diameter of 134 mm and a wall thickness of 13 mm. The torque is known to have a magnitude of T C = 26 kN ⋅ m . The shear strain in segment (1) is measured as 495 μrad . Determine the magnitude of external torque TB .
In: Other
Sroute Manufacturing intends to increase capacity by overcoming a bottleneck operation by adding new equipment. Two vendors have presented proposals. The fixed costs are $60,000 for proposal A and $70,000 for proposal B. The variable cost is $13.00 for A and $11.00 for B. The revenue generated by each unit is $2200.
a) The break-even point in units for the proposal by Vendor A units (round your response to the nearest whole number)
b) The break-even point in units for the proposal by Vendor B = units (round your response to the nearest whole number).
In: Other
Consider the following bonds:
Bond | Coupon Rate (annual payments) | Maturity (years) |
A | 0% | |
B | 0% | |
C | % | |
D | % |
a. What is the percentage change in the price of each bond if its yield to maturity falls from % to %?
b. Which of the bonds AD is most sensitive to a 1% drop in interest rates from % to % and why? Which bond is least sensitive? Provide an intuitive explanation for your answer.
Note: Assume annual compounding.
In: Other
A simple pin-connected truss is loaded and supported as shown in the figure. The load P is 200 kN. All members of the truss are aluminum pipes that have an outside diameter of 115 mm and a wall thickness of 6 mm. Determine the normal stress in each truss member. Assume truss dimensions of a = 12.0 m, b = 7.5 m, and c = 6.0 m.
In: Other
C++
In: Other
Patients are arriving at a clinic at a rate of two per minute. Each patient’s visit consists of four steps: check in, record vital signs, receive treatment, and check out. A receptionist takes 1 minute to check a patient in. A nurse takes 2 minutes to record the patient’s vital signs. A doctor spends 10 minutes with a patient. A staff member takes 3 minutes to check a patient out. What is the cycle time of the process in minutes?
In: Other
Develop a three-week moving average for this time series. Compute MSE and a forecast for week 7. Round your answers to two decimal places.
Week |
Time Series Value |
Forecast |
---|---|---|
1 | 18 | |
2 | 13 | |
3 | 16 | |
4 | 11 | |
5 | 17 | |
6 | 14 |
MSE :
The forecast for week 7 :
Use = 0.2 to compute the exponential smoothing values for the time series. Compute MSE and a forecast for week 7. Round your answers to two decimal places.
Week |
Time Series Value |
Forecast |
---|---|---|
1 | 18 | |
2 | 13 | |
3 | 16 | |
4 | 11 | |
5 | 17 | |
6 | 14 |
MSE :
The forecast for week 7 :
Compare the three-week moving average forecast with the exponential smoothing forecast using = 0.2. Which appears to provide the better forecast based on MSE?
Explain.
The input in the box below will not be graded, but may be reviewed and considered by your instructor.
Use trial and error to find a value of the exponential smoothing coefficient that results in a smaller MSE than what you calculated for = 0.2. Find a value of for the smallest MSE. Round your answer to three decimal places.
=
In: Other