Questions
use R # Problem 4 (5 pts each): # Set x as a vector of 500...

use R

# Problem 4 (5 pts each):
# Set x as a vector of 500 random numbers from Unif(100,300).
# This vector will be kept fixed for the rest of this problem.
#
# (a) Define a function b1(x, beta0, beta1, sigm) that uses the lm() function to
# return the regression line slope b1 for y as a linear function of x, where
#
# y = beta0 + beta1 x + err
#
# and the error term 'err' has a normal N(0,sigm^2) distribution
# (note that standard deviation is equal 'sigm').
#
# Hint: See how the slope b1 is extracted in the initial example of Session 11.


# (b) Replicate the function b1 twenty thousand times for
# beta0 = 15, beta1 = 2, and sigm =10, and store into a vector 'Slopes'.


# (c) Plot the empirical density of Slopes.


# (d) Calculate sample mean and sample variance of Slopes.


# (e) Add to the plot the pdf of a Normal distribution with parameters from part (d).

In: Math

Sorting algorithm for arrays: understand how to perform the following algorithms. (a). Simple sorting Bubblesort:T(n)ÎO(n2) Selection...

  1. Sorting algorithm for arrays: understand how to perform the following algorithms. (a). Simple sorting

    1. Bubblesort:T(n)ÎO(n2)

    2. Selection sort : T(n) Î O(n2)

    3. Insertion sort: T(n) Î O(n2)

    (b).Advanced sorting

i. Shell sort: O(n2) < O(n1.25) < O(nlogn), O(n1.25) is empirical result for shell sort.

  1. Merge sort: T(n) Î O(nlogn), need one temporary array with the same length as the array needed to be sorted.

  2. Quick sort: -average case: T(n) Î O(nlogn),
    -worst case(rare occurrence): T(n) Î O(n2)

5. Searching algorithm for arrays: understand how to perform the following algorithms. (a). Searching in unsorted arrays

i. Sequentialsearch
ii. Sequential search with sentinel

(b).Searching in sorted arrays

  1. Binary search

  2. Interpolation search

In: Computer Science

Calculate the ultimate biochemical oxygen demand (BOD) and the total organic carbon (TOC) concentration of an...

Calculate the ultimate biochemical oxygen demand (BOD) and the total organic carbon (TOC) concentration of an industrial wastewater containing 434 mg/L of organic matter that has been analyzed and found to have the empirical formula C9H15O5N and to be 100% biodegradable. Assume that no other organic, biodegradable or oxygen-demanding materials are present in the wastewater; and also assume that the nitrogen is converted to ammonia, NH3. Hints: a) although the molecular weight of the organic matter is not known, and may vary from one molecule to another, the formula weight can be used in similar fashion to convert mg/L to M; b) for completely biodegradable organic matter, the ultimate BOD is equal to the theoretical oxygen demand; and c) it is best to begin by writing the appropriate reaction and balancing it.

P.S. I know this is supposed to go in the Chemical Engineering subject but I can't find it. I have tried Civil Engineering but I have received no replies. Please help as much as you can.

In: Chemistry

Alison and Chuck Renny began operations of their furniture repair shop (Lazy Sofa Furniture, Inc.) on...

Alison and Chuck Renny began operations of their furniture repair shop (Lazy Sofa Furniture, Inc.) on January 1, 2017. The annual reporting period ends December 31. The trial balance on January 1, 2018, follows (amounts are rounded to thousands of dollars to simplify).

Account Titles Debit Credit
Cash $ 6
Accounts Receivable 3
Supplies 2
Equipment 5
Accumulated Depreciation $ 0
Software 10
Accumulated Amortization 4
Accounts Payable 6
Notes Payable (long-term) 0
Salaries and Wages Payable 0
Interest Payable 0
Income Tax Payable 0
Deferred Revenue 0
Common Stock 14
Retained Earnings 2
Service Revenue 0
Supplies Expense 0
Depreciation Expense 0
Salaries and Wages Expense 0
Amortization Expense 0
Interest Expense 0
Income Tax Expense 0
Totals $ 26 $ 26

Transactions during 2018 (summarized in thousands of dollars) follow:

  1. Borrowed $16 cash on July 1, 2018, signing a six-month note payable.
  2. Purchased equipment for $23 cash on July 2.
  3. Issued additional shares of common stock on July 3 for $5.
  4. Purchased additional equipment on August 4, $3 cash.
  5. Purchased, on account, supplies on September 5 for future use, $10.
  6. On December 6, recorded revenues in the amount of $60, including $9 on credit and $51 received in cash.
  7. Paid salaries and wages expenses on December 7, $24.
  8. Collected accounts receivable on December 8, $8.
  9. Paid accounts payable on December 9, $11.
  10. Received a $4 deposit on December 10 for work to start January 15, 2019.

Data for adjusting journal entries on December 31:

  1. Amortization for 2018, $4.
  2. Supplies of $4 were counted on December 31, 2018.
  3. Depreciation for 2018, $2.
  4. Accrued interest on notes payable of $5.
  5. Wages earned but not yet paid, $3.
  6. Income tax for 2018 was $4 and will be paid in 2019.

C4-4 Part 3

  1. Prepare an unadjusted trial balance. (Enter your answers in thousands of dollars.)
  1. Prepare an unadjusted trial balance. (Enter your answers in thousands of dollars.)
  1. Prepare an unadjusted trial balance. (Enter your answers in thousands of dollars.)
  1. Prepare an unadjusted trial balance. (Enter your answers in thousands of dollars.)

In: Accounting

Following is selected financial information from JM Smucker Co. for the year ended April 30, 2018...

Following is selected financial information from JM Smucker Co. for the year ended April 30, 2018 ($ millions).

Current assets, end of year $1,710.5 Long-term liabilities, end of year $7,013.9
Cash, end of year 211.9 Stockholders' equity, end of year 8,680.2
Cash from investing activities (305.4) Cash from operating activities 1,339.8
Cost of products sold 4,973.1 Total assets, beginning of year 17,203.7
Total liabilities, end of year 8,151.1 Revenue 8,092.8
Cash from financing activities* (1,006.1) Total expenses, other than cost of 1,647.3
Stockholders' equity, beginning of year 7,535.2 product sold
Dividends paid 385.3

* Cash from financing activities includes the effects of foreign exchange rate fluctuations.

a. Prepare the income statement for the year ended April 30, 2018.

Note: Do not use negative signs with any of your answers.

J M Smucker Co
Income Statement ($ millions)
For the year ended April 30, 2018
Revenues Answer
Cost of product sold Answer
Gross profit Answer
Expenses Answer
Net income Answer

b. Prepare the balance sheet as of April 30, 2018.

J M Smucker Co
Balance Sheet ($ millions)
April 30, 2018
Current assets Answer Current liabilities Answer
Long-term assets Answer Long-term liabilities Answer
Total liabilities Answer
- Stockholders' equity Answer
Total assets Answer Total liabilities and equity Answer


c. Prepare the statement of cash flows for the year ended April 30, 2018.
Note: Use a negative sign with your answer to indicate cash was used by activities and/or a decrease in cash.

J M Smucker Co
Statement of Cash Flow ($ millions)
For the year ended April 30, 2018
Cash from operating activities Answer
Cash from investing activities Answer
Cash from financing activities Answer
Net increase (decrease) in cash Answer
Cash, beginning of year Answer
Cash, end of year Answer

d. Compute ROA.
e. Compute profit margin (PM).
f. Compute asset turnover (AT).
g. Compute ROE.

Notes:
Round ROA, PM, and ROE to one decimal place (ex: 10.5%).
Round AT (asset turnover) to two decimal places (0.33).

ROA Answer
PM Answer
AT Answer
ROE Answer

In: Accounting

Background information Gifts Ltd (Gifts) operates 30 specialty gift stores. The company’s year-end is 30 June...

Background information

Gifts Ltd (Gifts) operates 30 specialty gift stores. The company’s year-end is 30 June 2018. The audit manager and partner recently attended a planning meeting with the finance director and have provided you with the planning notes below. You are the audit senior, and this is your first year on this audit. The audit manager has asked you to undertake some research to gain an understanding of Gifts, so that you are able to assist in the planning process. He has then asked that you identify relevant audit risks from the notes below and also consider how the team should respond to these risks. Gifts spent $2.1 million in refurbishing all of its stores and extending their central warehouse. In order to finance this refurbishment, Gifts borrowed $2 million from the bank. This is due to be repaid over five years. The company will be performing a year-end inventory count at the central warehouse, as well as at all 30 stores, on 30 June 2018. Inventory is valued at selling price less an average profit margin, as the finance director believes that this is a close approximation of cost. Prior to the 2018 financial year, each store maintained its own financial records and submitted returns monthly to head office. During the 2018 financial year all accounting records were centralised within head office. Therefore, at the beginning of the 2018 financial year, each store’s opening balances were transferred into head office’s accounting records. The increased workload at head office has led to some changes in the finance department and in May 2018 the financial controller left. Her replacement will start in late June 2018.

REQUIRED

: a) List two (2) sources of information that would be of use in gaining an understanding of Gifts, and for each source describe what information you would expect to obtain.

b) Using the background information provided above, identify six (6) audit risks and explain the auditor’s response to each risk in planning the audit of Gifts.

Part C.2 The finance director of Gifts is considering establishing an internal audit department and is unsure what factors he should consider when making his decision.

REQUIRED: Bearing in mind the differences and similarities between the roles of an internal auditor compared to an external auditor, outline four (4) factors the finance director should consider before establishing an internal audit department.

In: Accounting

Bolero Company holds 75 percent of the common stock of Rivera, Inc., and 30 percent of...

Bolero Company holds 75 percent of the common stock of Rivera, Inc., and 30 percent of this subsidiary’s convertible bonds. The following consolidated financial statements are for 2017 and 2018:

2017

2018

Revenues

$

(960,000

)

$

(1,090,000

)

Cost of goods sold

622,000

662,000

Depreciation and amortization

112,000

144,000

Gain on sale of building

0

(42,000

)

Interest expense

52,000

52,000

Consolidated net income

(174,000

)

(274,000

)

to noncontrolling interest

31,000

33,000

to parent company

$

(143,000

)

$

(241,000

)

Retained earnings, 1/1

$

(322,000

)

$

(393,000

)

Net income

(143,000

)

(241,000

)

Dividends declared

72,000

122,000

Retained earnings, 12/31

$

(393,000

)

$

(512,000

)

Cash

$

102,000

$

204,000

Accounts receivable

194,000

162,000

Inventory

222,000

384,000

Buildings and equipment (net)

662,000

746,000

Databases

194,000

167,000

Total assets

$

1,374,000

$

1,663,000

Accounts payable

$

(164,000

)

$

(134,000

)

Bonds payable

(422,000

)

(544,000

)

Noncontrolling interest in Rivera

(54,000

)

(73,000

)

Common stock

(142,000

)

(152,000

)

Additional paid-in capital

(199,000

)

(248,000

)

Retained earnings

(393,000

)

(512,000

)

Total liabilities and equities

$

(1,374,000

)

$

(1,663,000

)

Additional Information for 2018

The parent issued bonds during the year for cash.

Amortization of databases amounts to $27,000 per year.

The parent sold a building with a cost of $104,000 but a $52,000 book value for cash on May 11.

The subsidiary purchased equipment on July 23 for $253,000 in cash.

Late in November, the parent issued stock for cash.

During the year, the subsidiary paid dividends of $56,000. Both parent and subsidiary pay dividends in the same year as declared.

Prepare a consolidated statement of cash flows for this business combination for the year ending December 31, 2018. (Use indirect method) (Negative amounts and amounts to be deducted should be indicated by a minus sign.)

BOLERO COMPANY AND CONSOLIDATED SUBSIDIARY RIVERA

Consolidated Statement of Cash Flows

Year Ending December 31, 2018

Cash from operating activities:

Adjustment from accrual to cash:

Net cash flow from operating activities

$0

Cash flows from investing activities:

Net cash flow from investing activities

0

Cash flows from financing activities:

Net cash flow from financing activities

0

0

Cash, January 1, 2018

Cash, December 31, 2018

$0

In: Accounting

Santana Rey, owner of Business Solutions, decides to prepare a statement of cash flows for her...

Santana Rey, owner of Business Solutions, decides to prepare a statement of cash flows for her business using the following financial data.
  

BUSINESS SOLUTIONS

Income Statement

For Three Months Ended March 31, 2018

Computer services revenue

$

24,407

Net sales

18,193

Total revenue

42,600

Cost of goods sold

$

14,452

Depreciation expense—Office equipment

400

Depreciation expense—Computer equipment

1,240

Wages expense

2,550

Insurance expense

465

Rent expense

1,775

Computer supplies expense

1,265

Advertising expense

540

Mileage expense

230

Repairs expense—Computer

890

Total expenses

23,807

Net income

$

18,793

BUSINESS SOLUTIONS

Comparative Balance Sheets

December 31, 2017, and March 31, 2018

Mar. 31, 2018

Dec. 31, 2017

Assets

Cash

$

82,437

$

55,542

Accounts receivable

24,467

5,268

Inventory

624

0

Computer supplies

2,025

490

Prepaid insurance

1,110

1,595

Prepaid rent

815

815

Total current assets

111,478

63,710

Office equipment

7,000

7,000

Accumulated depreciation—Office equipment

(800

)

(400

)

Computer equipment

19,300

19,300

Accumulated depreciation—Computer equipment

(2,480

)

(1,240

)

Total assets

$

134,498

$

88,370

Liabilities and Equity

Accounts payable

$

0

$

1,140

Wages payable

945

570

Unearned computer service revenue

0

2,000

Total current liabilities

945

3,710

Equity

Common stock

111,000

77,000

Retained earnings

22,553

7,660

Total liabilities and equity

$

134,498

$

88,370

  
Required:
Prepare a statement of cash flows for Business Solutions using the indirect method for the three months ended March 31, 2018. Owner Santana Rey contributed $34,000 to the business in exchange for additional stock in the first quarter of 2018 and has received $3,900 in cash dividends. (Amounts to be deducted should be indicated with a minus sign.)
  

BUSINESS SOLUTIONS

Statement of Cash Flows (Indirect)

For Quarter Ended March 31, 2018

Cash flows from operating activities

Adjustments to reconcile net income to net cash provided by operating activities

$0

Cash flows from investing activities

Net cash used in investing activities

Cash flows from financing activities

0

$0

Cash balance at December 31, 2017

Cash balance at March 31, 2018

$0

In: Accounting

Placid Lake Corporation acquired 90 percent of the outstanding voting stock of Scenic, Inc., on January...

Placid Lake Corporation acquired 90 percent of the outstanding voting stock of Scenic, Inc., on January 1, 2017, when Scenic had a net book value of $490,000. Any excess fair value was assigned to intangible assets and amortized at a rate of $7,000 per year.

Placid Lake's 2018 net income before consideration of its relationship with Scenic (and before adjustments for intra-entity sales) was $390,000. Scenic reported net income of $200,000. Placid Lake declared $190,000 in dividends during this period; Scenic paid $49,000. At the end of 2018, selected figures from the two companies' balance sheets were as follows:

Placid Lake Scenic
Inventory $ 230,000 $ 99,000
Land 690,000 290,000
Equipment (net) 490,000 390,000

During 2017, intra-entity sales of $120,000 (original cost of $60,000) were made. Only 30 percent of this inventory was still held within the consolidated entity at the end of 2017. In 2018, $180,000 in intra-entity sales were made with an original cost of $68,000. Of this merchandise, 40 percent had not been resold to outside parties by the end of the year.

Each of the following questions should be considered as an independent situation for the year 2018.

  1. What is consolidated net income for Placid Lake and its subsidiary?

  2. If the intra-entity sales were upstream, how would consolidated net income be allocated to the controlling and noncontrolling interest?

  3. If the intra-entity sales were downstream, how would consolidated net income be allocated to the controlling and noncontrolling interest?

  4. What is the consolidated balance in the ending Inventory account?

  5. Assume that no intra-entity inventory sales occurred between Placid Lake and Scenic. Instead, in 2017, Scenic sold land costing $39,000 to Placid Lake for $68,000. On the 2018 consolidated balance sheet, what value should be reported for land?

  1. f-1. Assume that no intra-entity inventory or land sales occurred between Placid Lake and Scenic. Instead, on January 1, 2017, Scenic sold equipment (that originally cost $190,000 but had a $69,000 book value on that date) to Placid Lake for $98,000. At the time of sale, the equipment had a remaining useful life of five years. What worksheet entries are made for a December 31, 2018, consolidation of these two companies to eliminate the impact of the intra-entity transfer?

  2. f-2. For 2018, what is the noncontrolling interest’s share of Scenic’s net income?

In: Accounting

Santana Rey, owner of Business Solutions, decides to prepare a statement of cash flows for her...

Santana Rey, owner of Business Solutions, decides to prepare a statement of cash flows for her business using the following financial data.
  

BUSINESS SOLUTIONS
Income Statement
For Three Months Ended March 31, 2018
Computer services revenue $ 24,607
Net sales 18,493
Total revenue 43,100
Cost of goods sold $ 14,552
Depreciation expense—Office equipment 390
Depreciation expense—Computer equipment 1,190
Wages expense 2,650
Insurance expense 525
Rent expense 1,575
Computer supplies expense 1,255
Advertising expense 560
Mileage expense 260
Repairs expense—Computer 950
Total expenses 23,907
Net income $ 19,193
BUSINESS SOLUTIONS
Comparative Balance Sheets
December 31, 2017, and March 31, 2018
Mar. 31, 2018 Dec. 31, 2017
Assets
Cash $ 74,547 $ 53,022
Accounts receivable 23,967 5,268
Inventory 634 0
Computer supplies 2,005 560
Prepaid insurance 1,030 1,565
Prepaid rent 745 745
Total current assets 102,928 61,160
Office equipment 8,000 8,000
Accumulated depreciation—Office equipment (780 ) (390 )
Computer equipment 19,900 19,900
Accumulated depreciation—Computer equipment (2,380 ) (1,190 )
Total assets $ 127,668 $ 87,480
Liabilities and Equity
Accounts payable $ 0 $ 1,180
Wages payable 915 540
Unearned computer service revenue 0 2,100
Total current liabilities 915 3,820
Equity
Common stock 104,000 76,000
Retained earnings 22,753 7,660
Total liabilities and equity $ 127,668 $ 87,480


Required:
Prepare a statement of cash flows for Business Solutions using the indirect method for the three months ended March 31, 2018. Owner Santana Rey contributed $28,000 to the business in exchange for additional stock in the first quarter of 2018 and has received $4,100 in cash dividends. (Amounts to be deducted should be indicated with a minus sign.)

BUSINESS SOLUTIONS
Statement of Cash Flows (Indirect)
For Quarter Ended March 31, 2018
Cash flows from operating activities
Adjustments to reconcile net income to net cash provided by operating activities
$0
Cash flows from investing activities
Net cash used in investing activities
Cash flows from financing activities
0
$0
Cash balance at December 31, 2017
Cash balance at March 31, 2018 $0

In: Accounting