Questions
Please answer this multi-part question. Thank you! For this assignment you must write the following function...

Please answer this multi-part question. Thank you!

For this assignment you must write the following function in Scheme:

4 Write a recursive function called mergesort that sorts a list by doing the following:
(a) Use split to split the list into two roughly equal-sized partitions.
(b) Recursively sort both partitions.
(c) Use merge to merge the sorted partitions together.
Once again you will need two base cases, one for the empty list and the other for a single-element list.
> (mergesort '())

()

> (mergesort '(9))

(9)

> (mergesort '(8 6 7 5 3 0 9))

(0 3 5 6 7 8 9)

In: Computer Science

Please answer this multi-part question. Thank you! For this assignment you must write the following functions...

Please answer this multi-part question. Thank you!

For this assignment you must write the following functions in Scheme:

4 Write a recursive function called mergesort that sorts a list by doing the following:
(a) Use split to split the list into two roughly equal-sized partitions.
(b) Recursively sort both partitions.
(c) Use merge to merge the sorted partitions together.
Once again you will need two base cases, one for the empty list and the other for a single-element list.
> (mergesort '())

()

> (mergesort '(9))

(9)

> (mergesort '(8 6 7 5 3 0 9))

(0 3 5 6 7 8 9)

In: Computer Science

A company is manufacturing building bricks and fire bricks. Both production require two processes. Brick forming...

A company is manufacturing building bricks and fire bricks. Both production require two processes. Brick forming and Heat treatment. The requirements for the two bricks are:

Building Bricks Fire Bricks
Forming per 100 bricks 3 hours 2 hours
Heating treatment per 100 bricks 2 hours 5 hours
Total cost of the two departments in one months were:
Forming $ 21 200
Heat treatment $ 48 800
Units produced during the month was: 130 000 70 000

Require:

Prepare statement of manufacturing costs for the two types of bricks.

In: Accounting

Burlingame Bank and the ABC Manufacturing Corp. enter into the following 7-year swap with a notional...

Burlingame Bank and the ABC Manufacturing Corp. enter into the following 7-year swap with a notional amount of $75 million and the following terms: Every year for the next seven years, Burlingame Bank agrees to pay ABC Manufacturing 7% per year and receive from ABC Manufacturing LIBOR.

a. What type of swap is this?

b. In the first year payments are to be exchanged, suppose that LIBOR is 4%. What is the amount of the payment that the two parties must make to each other?

In: Finance

Two firms compete in a homogeneous product market where the inverse demand function is P =...

Two firms compete in a homogeneous product market where the inverse demand function is P = 10 -2Q (quantity is measured in millions). Firm 1 has been in business for one year, while Firm 2 just recently entered the market. Each firm has a legal obligation to pay one year’s rent of $0.5 million regardless of its production decision. Firm 1’s marginal cost is $2, and Firm 2’s marginal cost is $6. The current market price is $8 and was set optimally last year when Firm 1 was the only firm in the market. At present, each firm has a 50 percent share of the market.

a. Based on the information above, what is the likely reason that Firm 1’s marginal cost is lower than Firm 2’s marginal cost? Limit pricing Second-mover advantage Learning curve effects Direct network externality

b. Determine the current profits of the two firms. Instruction: Enter all responses rounded to two decimal places. Firm 1's profits: $ million Firm 2's profits: $ million

c. What would each firm’s current profits be if Firm 1 reduced its price to $6 while Firm 2 continued to charge $8? Instruction: Enter all responses to two decimal places. Firm 1's profits: $ million Firm 2's profits: $ million

d. Suppose that, by cutting its price to $6, Firm 1 is able to drive Firm 2 completely out of the market. After Firm 2 exits the market, does Firm 1 have an incentive to raise its price? No Yes

e. Is Firm 1 engaging in predatory pricing when it cuts its price from $8 to $6? Yes No

In: Economics

Instructions: Aim to include an introductory paragraph with a thesis statement, a summary of the relevant...

Instructions: Aim to include an introductory paragraph with a thesis statement, a summary of the relevant articles, at least two paragraphs answering the questions, and a conclusion paragraph. A thesis statement is a position on the question with supporting reasons. A thesis statement probably includes a “because clause” (e.g. “I argue x because y and z”). Next come one to two paragraphs explaining the background texts necessary to support your thesis. Then, you should include two to three paragraphs supporting your thesis (such as one paragraph on each supporting reason you give). You also may want to critique what you consider the strongest opposing argument as a way of supporting your position. Last, you should end with a concluding paragraph that gives the “so what?” analysis of your topic. In all, you should have about five to seven paragraphs for your essay. Knowledge of the authors’ names is not required but knowledge of their ideas is.

Question:

Write an essay in which you either support or criticize as persuasively as possible the claim that everyone needing a liver or heart transplant should be entitled to receive it, regardless of either their ability to pay for the surgery and/or the aftercare or their blameworthiness as, for example, alcoholic cirrhosis of the liver.

In: Nursing

Suppose 2 candidates are vying for election by trying to position themselves along a discrete political...

Suppose 2 candidates are vying for election by trying to position themselves along a discrete political spectrum 0 1 2 3 4 5 6 7 8 9 . Ten percent of the votes are at each location on the spectrum. Each candidate wants to maximize her share of the votes by choosing her position on the spectrum; voters vote for the candidate closest to their position on the spectrum, and if there is a tie in distance they split their vote 50-50 between the two candidates.

A. Put the game in normal form.

B. Show that for player 1, position 1 dominates position 0 and that 8 dominates 9.

C. Find the rationalizable strategies for both players using iterative elimination of dominated strategies.

In: Economics

FIFO perpetual inventory The beginning inventory of merchandise at Dunne Co. and data on purchases and...

FIFO perpetual inventory

The beginning inventory of merchandise at Dunne Co. and data on purchases and sales for a three-month period ending June 30, 2016, are as follows:

Date

Transaction Number of Units Per Unit Total
Apr. 3 Inventory 25 $1,200 $30,000
8 Purchase 75 1,240 93,000
11 Sale 40 2,000 80,000
30 Sale 30 2,000 60,000
May 8 Purchase 60 1,260 75,600
10 Sale 50 2,000 100,000
19 Sale 20 2,000 40,000
28 Purchase 80 1,260 100,800
June 5 Sale 40 2,250 90,000
16 Sale 25 2,250 56,250
21 Purchase 35 1,264 44,240
28 Sale 44 2,250 99,000
Instructions
1. Record the inventory, purchases, and cost of merchandise sold data in a perpetual inventory record similar to the one illustrated in Exhibit 4, using the first-in, first-out method.
2. Determine the total sales and the total cost of merchandise sold for the period. Journalize the entries in the sales and cost of merchandise sold accounts. Assume that all sales were on account, and date your journal entry June 30. Refer to the Chart of Accounts for exact wording of account titles.
3. Determine the gross profit from sales for the period.
4. Determine the ending inventory cost on June 30, 2016.
5.

Based upon the preceding data, would you expect the inventory using the last-in, first-out method to be higher or lower?

1. Record the inventory, purchases, and cost of merchandise sold data in a perpetual inventory record similar to the one illustrated in Exhibit 4, using the first-in, first-out method.

Date Purchases Cost of Merchandise Sold Inventory
2016 Quantity Unit Cost Total Cost Quantity Unit Cost Total Cost Quantity Unit Cost Total Cost
Apr. 3
8
8
11
11
30
May 8
8
10
10
19
28
28
Jun. 5
5
16
21
21
28
28
30 Balances

2. Determine the total sales and the total cost of merchandise sold for the period. Journalize the entries in the sales and cost of merchandise sold accounts. Assume that all sales were on account, and date your journal entry June 30. Refer to the Chart of Accounts for exact wording of account titles.

PAGE 1

JOURNAL

DATE DESCRIPTION POST. REF. DEBIT CREDIT

1

2

3

4


3. Determine the gross profit from sales for the period.

4. Determine the ending inventory cost on June 30, 2016.

5. Based upon the preceding data, would you expect the inventory using the last-in, first-out method to be higher or lower?

In: Accounting

Answer all questions below. It is a whole question with multiple parts. Profit Forecasting: A company...

Answer all questions below. It is a whole question with multiple parts.

Profit Forecasting: A company is interested in predicting profit for a number of projects based on two explanatory variables: a measure of risk assigned at the outset of the project (x1 = RISK) and the expenditure on research and development for the project (x2 = RD). Data on the three variables PROFIT, RISK, and RD are available in the worksheet entitled RD5. PROFIT is measured in thousands of dollars and RD is measured in hundreds of dollars. Use the data to fit two separate regression models.

For the first model (Linear Model AKA First Order Model), regress PROFIT on the two explanatory variables RISK and RD. (Hint: "Regress PROFIT on x" implies that PROFIT is the y variable and x is the explanatory variable.)

PROFIT RISK RD
396 8.5 132.58
130 7.5 81.928
508 10 145.992
172 8 90.02
256 7 114.408
32 7.5 53.704
102 7 76.244
102 8 71.68
536 9.5 151.592
102 7.5 74.816
214 6 108.752
200 8.5 92.372
158 7 92.26
32 6.5 60.732
116 7.5 78.12
120 5.5 90
270 9 105.532
270 8 111.832

Use the Second Order Model to answer ALL of the questions below. Also, be sure to compute these values based on the UNROUNDED values in EXCEL.


e) Predict the profit for a project with a risk of 6.0 and a research and development expenditure of $5,500. (Enter your answers to two decimal places.)



f) Parts f) and h) require the use of partial differentiation. How quickly is the average profit increasing with respect to risk for a project with a risk of 6.0 and a research and development expenditure of $5,500? (Enter your answer to two decimal places.)

How quickly is the average profit increasing with respect to research and development expenditure for a project with a risk of 6.0 and a research and development expenditure of $5,500? (Enter your answer to two decimal places.)


g) Predict the profit for a project with a risk of 8.5 and a research and development expenditure of $9,500. (Enter your answers to two decimal places.)


h) How quickly is the average profit increasing with respect to risk for a project with a risk of 8.5 and a research and development expenditure of $9,500? (Enter your answer to two decimal places.)


How quickly is the average profit increasing with respect to research and development expenditure for a project with a risk of 8.5 and a research and development expenditure of $9,500? (Enter your answer to two decimal places.)

In: Statistics and Probability

Alex needs some caffeine to function well (and the more the better). Suppose that a cup...

Alex needs some caffeine to function well (and the more the better). Suppose that a cup of coffee contains twice as much caffeine as a cup of tea, so that Alex can perfectly substitute one cup of coffee for two cups of tea, and his utility function is of the form U(C, T)=2C+T where C denotes cups of coffee, and T denotes that of tea.

a. Suppose that the price of a cup of tea is fixed at pt =$1, but the price of coffee, pc , can vary. Describe Alex’s choice as a function of the price of coffee. Namely, identify the region of pc , where Alex drinks only tea and the region, where Alex drinks only coffee. Illustrate your answer with a graph.

b. Suppose that pc =$2, and Alex has a budget of $10. What will be his optimal consumption bundle? Illustrate your answer with a graph.

c. Now Alex’s cafeteria runs a special promotion: if he buys 3 cups of coffee (at pc =$2) he can have the forth cup of coffee for free. Draw his new budget constraint and show his new choice.

In: Economics