Right now Lili is in a strange planet and she wants to study the calendar system of said planet. Each year on the planet consists of N months and each month on the planet consists of exactly K days. Bibi arrived on the planet on the first day of the first month, and now she has T questions: What’s the month and date on Bibi’s A i-th day on the planet? Help her to answer the questions!
Format Input
The first line contains the numbers N and K. The next N lines contain Si which is the name of the i-th month. The next line then contains T and next T lines contain A i.
Format Output
For each question, output one line starting with “Case # X: ” (without quotes) where X is the question number (starting from 1) followed by the month and date on Bibi’s A i-th day on the planet.
Constraints
• 1 ≤ N, K ≤ 100
• 1 ≤ Q ≤ 1000
• 1 ≤ A i ≤ 1000000
• 1 ≤ | Si | ≤ 100 (|Si| means the length of Si )
• Si only contains lowercase English letters a-z
Sample Input 1 (standard input)
12 30
january
february
march
april
may
june
july
august
september
october
november
december
10
1
2
31
69
360
361
362
420
720
1337
Sample Output 1 (standard output)
Case #1: january 1
Case #2: january 2
Case #3: february 1
Case #4: march 9
Case #5: december 30
Case #6: january 1
Case #7: january 2
Case #8: february 30
Case #9: december 30
Case #10: september 17
NOTE: USE C LANGUAGE, DONT USE FUNCTION(RESULT,RETURN),VOID,RECURSIVE, USE BASIC CODE AND CODE IT UNDER int main (){, constraint must be the same
In: Computer Science
write the pseudocode to process these tasks:
For the second module, write the pseudocode to complete these tasks:
In: Computer Science
Smoky Mountain Corporation makes two types of hiking boots—the Xtreme and the Pathfinder. Data concerning these two product lines appear below:
|
Mercer Asbestos Removal Company removes potentially toxic asbestos insulation and related products from buildings. There has been a long-simmering dispute between the company’s estimator and the work supervisors. The on-site supervisors claim that the estimators do not adequately distinguish between routine work, such as removal of asbestos insulation around heating pipes in older homes, and nonroutine work, such as removing asbestos-contaminated ceiling plaster in industrial buildings. The on-site supervisors believe that nonroutine work is far more expensive than routine work and should bear higher customer charges. The estimator sums up his position in this way: “My job is to measure the area to be cleared of asbestos. As directed by top management, I simply multiply the square footage by $3.60 to determine the bid price. Since our average cost is only $2.775 per square foot, that leaves enough cushion to take care of the additional costs of nonroutine work that shows up. Besides, it is difficult to know what is routine or not routine until you actually start tearing things apart.” To shed light on this controversy, the company initiated an activity-based costing study of all of its costs. Data from the activity-based costing system follow:
Required: 1. Perform the first-stage allocation of costs to the activity cost pools. 2. Compute the activity rates for the activity cost pools. 3. Using the activity rates you have computed, determine the total cost and the average cost per thousand square feet of each of the following jobs according to the activity-based costing system. a. A routine 1,000-square-foot asbestos removal job. b. A routine 2,000-square-foot asbestos removal job. c. A nonroutine 2,000-square-foot asbestos removal job. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The company has a traditional costing system in which manufacturing overhead is applied to units based on direct labor-hours. Data concerning manufacturing overhead and direct labor-hours for the upcoming year appear below:
| Estimated total manufacturing overhead | $ | 2,156,000 | ||
| Estimated total direct labor-hours | 107,800 | DLHs | ||
Required:
1. Compute the product margins for the Xtreme and the Pathfinder products under the company’s traditional costing system.
2. The company is considering replacing its traditional costing system with an activity-based costing system that would assign its manufacturing overhead to the following four activity cost pools (the Other cost pool includes organization-sustaining costs and idle capacity costs):
In: Accounting
Tamara has 80 hours per week that she can allocate to work or leisure. Her job pays a wage rate of $20 per hour, but Tamara is being taxed on her income in the following way. On the first $400 that Tamara makes, she pays no tax. That is, for the first 20 hours she works, her net wage (what she takes home after taxes) is $20 per hour. On all income above $400, Tamara pays a 75% tax. That is, for all hours above the first 20 hours, her net wage rate is only $5 per hour. Tamara decides to work 30 hours. Her indifference curves have the usual shape.
The government changes the tax scheme in a few ways. First, now only the first $100 of income is tax-exempt. That is, for the first 5 hours she works, Tamara's net wage rate is $20 per hour. Second, the government reduces the tax rate on all other income to 50%. That is, for all hours above the first 5 hours, Tamara's net wage rate is now $10. After these changes, Tamara finds herself just as well off as before so that her new optimal choice is on the same indifference curve as her initial optimal choice.
Draw Tamara's new time allocation budget line on the same diagram as her initial time allocation budget, with income on the vertical axis. Also illustrate her optimal choice. Bear in mind that she is equally as well off (on the same indifference curve) as before the tax changes occurred. Choose the correct statement.
A. At her new optimal choice, Tamara consumes less leisure and has more income.
B. At her new optimal choice, Tamara consumes less leisure and has less income.
C. At her new optimal choice, Tamara consumes more leisure.
D. At her new optimal choice, Tamara consumes the same amount of leisure.
In: Economics
A company has the opportunity to do any, none, or all of the projects for which the net cash flows per year are shown below. The company has a cost of capital of 14%. Which should the company do and why? You must use at least two capital budgeting methods. Show your work.
|
Year |
A |
B |
C |
|
0 |
-300 |
-150 |
-350 |
|
1 |
100 |
50 |
100 |
|
2 |
100 |
100 |
100 |
|
3 |
100 |
100 |
100 |
|
4 |
100 |
100 |
100 |
|
5 |
100 |
100 |
100 |
|
6 |
50 |
100 |
100 |
|
7 |
100 |
200 |
0 |
In: Finance
(TCO E) A company has the opportunity to do any, none, or all of the projects for which the net cash flows per year are shown below. The company has a cost of capital of 14%. Which should the company do and why? You must use at least two capital budgeting methods. Show your work.
|
Year |
A |
B |
C |
|
0 |
-300 |
-150 |
-350 |
|
1 |
100 |
50 |
100 |
|
2 |
100 |
100 |
100 |
|
3 |
100 |
100 |
100 |
|
4 |
100 |
100 |
100 |
|
5 |
100 |
100 |
100 |
|
6 |
50 |
100 |
100 |
|
7 |
100 |
200 |
0 |
In: Finance
A company has the opportunity to do any, none, or all of the projects for which the net cash flows per year are shown below. The company has a cost of capital of 14%. Which should the company do and why? You must use at least two capital budgeting methods. Show your work.
|
Year |
A |
B |
C |
|
0 |
-300 |
-150 |
-350 |
|
1 |
100 |
50 |
100 |
|
2 |
100 |
100 |
100 |
|
3 |
100 |
100 |
100 |
|
4 |
100 |
100 |
100 |
|
5 |
100 |
100 |
100 |
|
6 |
50 |
100 |
100 |
|
7 |
100 |
200 |
0 |
In: Finance
Teddy, Inc. sells donuts. They pride themselves on fresh ingredients and products, and therefore bake the donuts fresh each morning.The average selling price is $1 per donut. Average variable costs are $.40 per donut. When producing at full capacity – 1,000 donuts per day – the fixed cost is $.10 per donut.
Just before closing, a tour bus arrives and the driver offers to purchase 100 donuts that are already made for $40. As he is just about to lock up, Teddy's manager accepts the offer.
Considering a financial perspective, which of the following is true?
Teddy's manager is incorrect, as the special offer price is below per unit costs.
Teddy's manager is correct, and he probably would have accepted a lower price.
Teddy's manager is incorrect, as the special offer price is below normal revenues.
Teddy's manager is correct, but this is the lowest price he could accept.
Joseph Company incurs per-unit costs of $11 in variable costs and $4 in fixed costs to produce its main product, which sells for $24. A new customer in the market, Katherine, offers to purchase 2,500 units at $16 each.
If the special offer is accepted, the units sold to Katherine would have to be produced with capacity that was otherwise going to be used to produce units sold to other customers.
Which of the following statements are true? (Check all that apply.)
The sales price of $24 is irrelevant.
The fixed costs of $4 are irrelevant.
The lost sales to other customers are relevant.
The lost sales to other customers is irrelevant.
In: Accounting
Imagine a person’s utility function over two goods, X and Y, where Y represents dollars. Specifically, assume a Cobb-Douglas utility function:
U(X,Y) = Xa Y(1-a)
where 0<a<1.
Let the person’s budget be B. The feasible amounts of consumption must satisfy the following equation:
B = pX+Y
where p is the unit price of X and the price of Y is set to 1.
Solving the budget constraint for Y and substituting into the utility function yields
U = Xa (B-pX)(1-a)
Using calculus, it can be shown that utility is maximized by choosing
X=aB/p
Also, it can be shown that the area under the demand curve for a price increase from p to q yielding a change in consumption of X from xp to xq is given by
ΔCS = [aBln(xq) -pxq] - [aBln(xp)-pxp] - (q-p)xq
When B=100, a=0.5, and p=.2, X=250 maximizes utility, which equals 111.80. If price is raised to p=.3, X falls to 204.12.
a.Calculate the compensating variation. Increase B until the utility raises to its initial level. The increase in B needed to return utility to its level before the price increase is the compensating variation for the price increase. (It can be found by guessing values until utility reaches its original level.)
b. Following the same logic (but now for the equivalent variation concept), calculate the equivalent variation.
c. Compare ΔCS, as measured with the demand curve, to the compensating variation and equivalent variation.
In: Economics
Consider the following data on price ($) and the overall score for six stereo headphones tested by a certain magazine. The overall score is based on sound quality and effectiveness of ambient noise reduction. Scores range from 0 (lowest) to 100 (highest).
| Brand | Price ($) | Score |
|---|---|---|
| A | 180 | 74 |
| B | 150 | 73 |
| C | 95 | 63 |
| D | 70 | 58 |
| E | 70 | 40 |
| F | 35 | 28 |
Find the value of the test statistic. (Round your answer to three decimal places.)_____
Find the p-value. (Round your answer to four decimal places.)
p-value = ____
2.-Test for a significant relationship using the F test. Use α = 0.05.
Find the value of the test statistic. (Round your answer to two decimal places.)_____
Find the p-value. (Round your answer to three decimal places.)
p-value = ____
What is your conclusion?
Reject H0. We conclude that the relationship between price ($) and overall score is significant.
Do not reject H0. We conclude that the relationship between price ($) and overall score is significant.
Reject H0. We cannot conclude that the relationship between price ($) and overall score is significant.
Do not reject H0. We cannot conclude that the relationship between price ($) and overall score is significant.
(c)Show the ANOVA table for these data. (Round your p-value to three decimal places and all other values to two decimal places.)
| Source of Variation |
Sum of Squares |
Degrees of Freedom |
Mean Square |
F | p-value |
|---|---|---|---|---|---|
| Regression | |||||
| Error | |||||
| Total |
In: Statistics and Probability