write a python program that include a function named activity_selection() and take in two arguments, first one would be the number of tasks and the second argument would be a list of activities. Each activity would have an activity number, start time and finish time.
Example activity_selection input and output:
activity_selection (11, [[1, 1, 4 ], [2, 3, 5], [3, 0, 6], [4, 5, 7], [5, 3, 9], [6, 5, 9],[7, 6, 10], [ 8, 8, 11], [ 9, 8, 12], [10, 2, 14], [11, 12, 16] ]
In the above example the first activity set contains 11 activities with activity 1 starting at time 1 and finishing at time 4, activity 2 starting at time 3 and finishing at time 5, etc. The activities are not in any sorted order. Your results including the number of activities selected and their order should be outputted to the terminal. For the above example the results are: Number of activities selected = 4 Activities: 2 4 9 11
Note: There can be multiple optimal solutions.
please comments the program.
In: Computer Science
In: Statistics and Probability
Below are matched pair data consisting of driving test scores
for a sample of 10 licensed drivers before and after they took an
online traffic safety class. At a 0.05 significance level, use the
sign test to test the claim that taking this online class affects
driving test scores.
| Before | 40 | 53 | 44 | 62 | 38 | 52 | 61 | 57 | 45 | 56 |
|---|---|---|---|---|---|---|---|---|---|---|
| After | 40 | 51 | 48 | 59 | 34 | 48 | 64 | 52 | 50 | 56 |
(a) What is the value of the test statistic used in this sign
test?
(b) What is the critical value in this sign test?
(c) What is the correct conclusion of this sign test?
In: Statistics and Probability
Q1: Fill in the Blanks. Assume the fixed cost is $200. Product price is $130.
|
Output |
Variable Cost |
Total Cost |
AFC |
AVC |
ATC |
Marginal Cost |
Total Revenue |
MR |
Profit |
|
1 |
$100 |
300 |
130 |
||||||
|
2 |
$150 |
350 |
260 |
||||||
|
3 |
$210 |
410 |
390 |
||||||
|
4 |
$300 |
500 |
520 |
||||||
|
5 |
$430 |
630 |
650 |
||||||
|
6 |
$600 |
800 |
780 |
||||||
|
7 |
$819 |
1019 |
910 |
In: Economics
a. Use an appropriate test to evaluate whether position in the batting order and bat speed contribute to the number of home runs (HR) hit per season. Keep in mind that we would like to be able to make inferences about the influence of bat speed across the entire range observed within Major League Baseball, not just the random bat speeds that we tested.
b. Make a single plot of the mean responses at each level of both factors and evaluate.
1) State all relevant hypotheses (nulls and alternatives).
2) State which test was used and why you used it.
3) State conclusions after completing your analyses.
| batting order slot | bat speed | HR per season |
| Top | Fast | 24 |
| Middle | Fast | 41 |
| Bottom | Fast | 21 |
| Top | Fast | 15 |
| Middle | Fast | 34 |
| Bottom | Fast | 18 |
| Top | Fast | 12 |
| Middle | Fast | 29 |
| Bottom | Fast | 14 |
| Top | Slow | 13 |
| Middle | Slow | 24 |
| Bottom | Slow | 8 |
| Top | Slow | 11 |
| Middle | Slow | 27 |
| Bottom | Slow | 12 |
| Top | Slow | 6 |
| Middle | Slow | 18 |
| Bottom | Slow | 9 |
In: Statistics and Probability
Match the terms in column A to the terms in column B: There is one extra phrase in column B that do not match with any term in Column A.
|
Column A |
Column B |
|
Entity Relationship diagrams |
1) A technique for identifying required classes and entities for any system. |
|
Brainstorming |
2) Diagrams widely for depicting business processes in industry |
|
Parallel deployment |
3) Application divided into view layer, logic layer, and data layer |
|
Three-Layer architecture |
4) The old and new systems run side by side for a period of time when using this approach to implementation. |
|
Association |
5) A diagram that shows major data entities with attributes and relationships |
|
6) Set of links that connects elements of the UML mode |
In: Computer Science
Compare the 2014 inventory turnover results for two or more publicily traded companies. Examples: 1)AutoZone (a Memphis based company with Advance Auto, 2) Apple, Dell, And Best Buy, 3) Walmart and Target.
Write an executive summary(two pages) detaling the respective inventory turnover ratios for the given period, giving the equivalent number of days of inventory for each company, and the potential financial impact if the under-performing company could match the inventory turnover ratio of the higher-performing company. Assume a 25% carrying cost ratio. Be careful to use the correct units for the financial impact
In: Operations Management
Danna Martin, president of Mays Electronics, was concerned about the end-of-the year marketing report that she had just received. According to Larry Savage, marketing manager, a price decrease for the coming year was again needed to maintain the company's annual sales volume of integrated circuit boards (CBs). This would make a bad situation worse. The current selling price of $18 per unit was producing a $2-per-unit profit—half the customary $4-per-unit profit. Foreign competitors kept reducing their prices. To match the latest reduction would reduce the price from $18 to $14. This would put the price below the cost to produce and sell it. How could these firms sell for such a low price? Determined to find out if there were problems with the company's operations, Danna decided to hire a consultant to evaluate the way in which the CBs were produced and sold. After two weeks, the consultant had identified the following activities and costs: Activities Costs Setting up equipment $125,000 Materials handling 180,000 Inspecting products 122,000 Engineering support 120,000 Handling customer complaints 100,000 Filing warranties 170,000 Storing goods 80,000 Expediting goods 75,000 Using materials 500,000 Using power 48,000 Manual insertion labor* 250,000 Other direct labor 150,000 Total costs** $1,920,000 * Diodes, resistors, and integrated circuits are inserted manually into the circuit board. ** This total cost produces a unit cost of $16 for last year’s sales volume. The consultant indicated that some preliminary activity analysis shows that per-unit costs can be reduced by at least $7. Since the marketing manager had indicated that the market share (sales volume) for the boards could be increased by 50% if the price could be reduced to $12, Danna became quite excited. Required: 1. CONCEPTUAL CONNECTION: What is activity-based management? What phases of activity analysis did the consultant provide? What else remains to be done? 2. CONCEPTUAL CONNECTION: Identify as many nonvalue-added costs as possible. Compute the cost savings per unit that would be realized if these costs were eliminated. Was the consultant correct in the preliminary cost reduction assessment? Identify actions that the company can take to reduce or eliminate the nonvalue-added activities. Round your answers to two decimal places. 3. Compute the unit cost required to maintain current market share, while earning a profit of $4 per unit. Now compute the unit cost required to expand sales by 50%, assuming a per unit profit of $4. How much cost reduction would be required to achieve each unit cost? 4. Assume that further activity analysis revealed the following: switching to automated insertion would save $60,000 of engineering support and $90,000 of direct labor. Now, what is the total potential cost reduction per unit available from activity analysis? With these additional reductions, can Mays achieve the unit cost to maintain current sales? To increase it by 50%? What form of activity analysis is this: reduction, sharing, elimination, or selection? Round your answers to two decimal places. 5. CONCEPTUAL CONNECTION: Calculate income based on current sales, prices, and costs. Then calculate the income by using a $14 price and a $12 price, assuming that the maximum cost reduction possible is achieved (including Requirement 4’s reduction). What price should be selected? For those boxes in which you must enter subtracted or negative numbers use a minus sign.
In: Accounting
A manufacturer knows that their items have a normally
distributed lifespan, with a mean of 10.3 years, and standard
deviation of 2.4 years.
If you randomly purchase one item, what is the probability it will
last longer than 7 years? (Give answer to 4 decimal places.)
A particular fruit's weights are normally distributed, with a
mean of 645 grams and a standard deviation of 18 grams.
The heaviest 13% of fruits weigh more than how many grams?
Give your answer to the nearest gram.
Suppose that 59% of people own dogs. If you pick two people at
random, what is the probability that they both own a dog?
(Give your answer as a fraction or decimal rounded to 3 places)
About 9% of the population has a particular genetic mutation.
1000 people are randomly selected.
Find the mean for the number of people with the genetic mutation in
such groups of 1000. (Remember that means should be rounded to one
more decimal place than the raw data.)
In: Statistics and Probability
Use the data below to compute 2014 FCF (Free Cash Flow):
| 2014 | 2013 | |
|
Cash |
14 | 20 |
| Short-term investments | 9 | 69 |
| Accounts receivable | 370 | 315 |
| Inventories | 552 | 419 |
| Property, plant & equipment (net) | 927 | 874 |
| Accounts payable | 47 | 35 |
| Short-term debt | 96 | 63 |
| Accrued liabilities | 149 | 134 |
| Long-term debt | 663 | 580 |
| Common stock | 130 | 130 |
| Retained earnings | 768 | 713 |
| Net revenue | 3148 | 2854 |
| Depreciation expense | 113 | 93 |
| Interest | 88 | 64 |
| Taxes | 82 | 82 |
| Net income | 255 | 123 |
(Round to the nearest whole dollar)
Answer:
| 111 | (114) |
|
Use the data below to compute the change in Gross Fixed Assets (i.e. Change in Gross property, plant & equipment)
(Round to the nearest whole dollar) Answer:
Use the data below to compute 2014 OCF (Operating Cash Flow):
(Round to the nearest whole dollar) Answer:
|
In: Accounting