Questions
Write a function double mysqrt( double x ) which computes the value of the square root...

Write a function double mysqrt( double x ) which computes the value of the square root of x using
the bisection method. First you need to set the left and right bounds for x. If 0<x<1 then lt = x
and rt = 1 and the sqrt(x) is somewhere in between. If x > 1 then lt = 1 and rt = x and sqrt(x)
is somewhere in between. In a loop you need to compute the mid value between lt and rt and
compare the mid square with x. Depending on this comparison, you would need to set either lt or
rt to the mid. The loop executes as long as fabs(rt-lt) > ERR . You can set the const double ERR =
1-10. The function needs to return the mid.

In the main function use a loop to read a double, then print is square root in 2 ways: one using
cmath’s sqrt function and the other using mysqrt. Of course, the code is correct if the 2 values
from the functions are very close to eachother. The loop terminates when the user enters q.


Sample output:
Enter a non-negative real number to compute the square root: 0
sqrt( 0 ) = 0
mysqrt( 0 ) = 0
Enter a non-negative real number to compute the square root: 1
sqrt( 1 ) = 1
mysqrt( 1 ) = 1
Enter a non-negative real number to compute the square root: 2
sqrt( 2 ) = 1.41421356237309514547462185874
mysqrt( 2 ) = 1.41421356232604011893272399902
Enter a non-negative real number to compute the square root: 3
sqrt( 3 ) = 1.73205080756887719317660412344
mysqrt( 3 ) = 1.73205080762272700667381286621
Enter a non-negative real number to compute the square root: 16
sqrt( 16 ) = 4
mysqrt( 16 ) = 4.00000000001091393642127513885
Enter a non-negative real number to compute the square root: 0.26
sqrt( 0.260000000000000008881784197001 ) = 0.509901951359278515774064999277
mysqrt( 0.260000000000000008881784197001 ) = 0.509901951344217785333512438228
Enter a non-negative real number to compute the square root: 0.25
sqrt( 0.25 ) = 0.5
mysqrt( 0.25 ) = 0.500000000029103830456733703613
Enter a non-negative real number to compute the square root: 0.36
sqrt( 0.359999999999999986677323704498 ) = 0.599999999999999977795539507497
mysqrt( 0.359999999999999986677323704498 ) = 0.599999999999999977795539507497
Enter a non-negative real number to compute the square root: q

C++,will leave a like if correct and will appreciate if able to copy and paste.

In: Computer Science

Three Rivers Inc. provides cable TV and Internet service to the local community. The activities and...

Three Rivers Inc. provides cable TV and Internet service to the local community. The activities and activity costs of Three Rivers are identified as follows:

a. Identify the cost of quality classification for each activity and whether the activity is value-added or non-value-added.

Quality Control Activities Activity Cost Quality Cost Classification Value-Added/
Non-Value-Added
Classification
Billing error correction $21,700 External failure Non-value-added
Cable signal testing 49,000 Appraisal Value-added
Reinstalling service (installed incorrectly the first time) 46,700 External failure Non-value-added
Repairing satellite equipment 10,500 Internal failure Non-value-added
Repairing underground cable connections to the customer 14,100 External failure Non-value-added
Replacing old technology cable with higher quality cable 76,400 Prevention Value-added
Replacing old technology signal switches with higher quality switches 87,400 Prevention Value-added
Responding to customer home repair requests 26,000 External failure Non-value-added
Training employees 18,200 Prevention Value-added
   Total activity cost $350,000

Feedback

Correct

b. Prepare a cost of quality report. Assume that sales are $1,400,000. If required, round percentages to one decimal place.

Three Rivers Inc.
Cost of Quality Report
Quality Cost Classification Quality Cost Percent of Total Quality Cost Percent of Total Sales
Prevention $ % %
Appraisal % %
Internal failure % %
External failure % %
Total $ % %

Feedback

b. Classify each activity as either prevention, appraisal, internal failure or external failure. List the total costs of each of these four categories in a column called quality cost. In a separate column, determine the percent of each quality cost as compared to the total quality costs by dividing individual quality cost categories by the total quality cost. In another column, determine the percent of each quality cost classification as compared to total sales by dividing individual quality cost classes by the total sales amount. Total all columns. Remember that the Percent of total quality cost column should total to 100%.

Learning Objective 1 and Learning Objective 3.

c. Prepare a value-added/non-value-added analysis.

Three Rivers Inc.
Value-Added/Non-Value-Added Activity Analysis
Category Amount Percent
Value-added $ %
Non-value-added %
Total $ %

In: Accounting

Use this scenario to answer questions below. The Collins Research Crew (CRC) is interested in examining...

Use this scenario to answer questions below.

The Collins Research Crew (CRC) is interested in examining the number of vape/smoking stores (i.e. stores that sell vaping and cigarette/cigar smoking products) in low-income neighborhoods compared to other types of neighborhoods. CRC's research question is, "Do low-income neighborhoods have more vape/smoke shops than other types of neighborhoods?" Low-income neighborhoods were defined as those where the median household income is less than the U.S. federal poverty line. Non-low-income neighborhoods are those that the median household income is greater than the U.S. federal poverty line.

CRC employed a team of undergraduate researchers to go out and count the number of vape/smoke shops in a random selection of low-income and non-low-income neighborhoods. They define the population as all neighborhoods in King County.

They found a significant difference in the number of vape/smoke shops across neighborhoods. Specifically, low-income neighborhoods had a greater number of vape/smoke shops compared to non-low-income neighborhoods.

Match the null hypothesis, directional hypothesis, and non-directional hypothesis with their most appropriate statement.

Null Hypothesis

      [ Choose ]           

There is a relationship between the average number of vape/smoke shops and neighborhood type..           

There is no relationship between the number of vape/smoke shops and neighborhood type.           

Low-income neighborhoods have more vape/smoke shops than non-low-income neighborhoods.average.      

Directional Hypothesis

      [ Choose ]           

There is a relationship between the average number of vape/smoke shops and neighborhood type..           

There is no relationship between the number of vape/smoke shops and neighborhood type.           

Low-income neighborhoods have more vape/smoke shops than non-low-income neighborhoods.average.      

Non-directional hypothesis

      [ Choose ]           

There is a relationship between the average number of vape/smoke shops and neighborhood type..           

There is no relationship between the number of vape/smoke shops and neighborhood type.           

Low-income neighborhoods have more vape/smoke shops than non-low-income neighborhoods.average.      

Given the research question asked in the scenario above, the best research hypothesis is a non-directional hypothesis.

True OR False

"Specifically, low-income neighborhoods had a greater number of vape/smoke shops compared to non-low-income neighborhoods." What is this sentence indicating?

A. Low-income people vape/smoke at higher levels than the average King County resident

B. Any difference is due to chance and not some systematic influence

C. Any difference is due to some systematic influence and not by chance

D. There is no difference in the number of vape/smoke shops

In: Statistics and Probability

Karane Enterprises, a calendar-year manufacturer based in College Station, Texas, began business in 2017. In the...

Karane Enterprises, a calendar-year manufacturer based in College Station, Texas, began business in 2017. In the process of setting up the business, Karane has acquired various types of assets. Below is a list of assets acquired during 2017:

Asset Cost Date Placed in Service
Office furniture $ 150,000 02/03/2017
Machinery 1,560,000 07/22/2017
Used delivery truck* 40,000 08/17/2017

*Not considered a luxury automobile.

During 2017, Karane was very successful (and had no §179 limitations) and decided to acquire more assets this next year to increase its production capacity. These are the assets acquired during 2018:

Asset Cost Date Placed in Service
Computers & info. system $ 400,000 03/31/2018
Luxury auto† 80,000 05/26/2018
Assembly equipment 1,200,000 08/15/2018
Storage building 700,000 11/13/2018

†Used 100% for business purposes.

Karane generated taxable income in 2018 of $1,732,500 for purposes of computing the §179 expense. (Use MACRS Table 1, Table 2, Table 3, Table 4, Table 5, and Exhibit 10-10.) Assume the 2017 §179 limits are the same as those in 2018.(Leave no answer blank. Enter zero if applicable. Input all the values as positive numbers.)

rev: 09_14_2018_QC_CS-135704

Comprehensive Problem 10-76 Part a

a. Compute the maximum 2017 depreciation deductions including §179 expense (ignoring bonus depreciation).

b. Compute the maximum 2018 depreciation deductions including §179 expense (ignoring bonus depreciation).

c. Compute the maximum 2018 depreciation deductions including §179 expense, but now assume that Karane would like to take bonus depreciation.

In: Accounting

The following information relates to the June 2018 cash transactions for Allmar Pty Ltd. The following...

The following information relates to the June 2018 cash transactions for Allmar Pty Ltd.

  1. The following unpresented cheques (outstanding cheques) appeared on the 31st May 2018 bank reconciliation:

Cheque no.

Amount ($)

6539

1,207.60

6548

3,605.00

6549

317.40

6555

575.60

6558

990.00

  1. All cheques except for cheque no. 6558 are included in the 30th June 2018 bank statement. On 31st May 2018, a deposit of $5,163.00 was outstanding.
  2. In the company’s records the cash balance at 31st May 2018 was $39,659.56 debit.
  3. Total cash payments of $99,565.60 were credited to cash at bank for the month of June 2018.
  4. Total cash receipts for June were $104,291.40, but $3,964.90 of these were received on 30th June are outstanding as they have not yet been credited by the bank.
  5. The bank statement at 30th June 2018 shows a closing credit balance of $53,852.26.
  6. The following information only appeared on the bank statement in June, service charges of $64.80; a $190.80 returned cheque due to insufficient funds in the drawer’s account; and the 31st May deposit of $5,163.00 which was credited by the bank on 1st June.
  7. Cheque no. 6585, written for telephone expenses on 20th June, and recorded by the company at $1,978.00, was correctly paid by the bank as $1,996.00
  8. The June bank statement shows a debit of $1,165.00 for a cheque which was not written by Allmar Pty Ltd, but which was incorrectly debited to their account by the bank.
  9. The following cheques are included in the company’s records but do not appear on the company’s bank statement for June:

Cheque no.

Amount ($)

6598

574.80

6599

5,137.40

6614

4,181.20

6615

3,987.00

Required:

  1. Prepare the cash bank account in the general ledger as a result of the adjustments required to balance the account to the bank statement for the month of June 2018.
  2. Prepare the bank reconciliation as at 30th June 2018.
  3. Explain how a dishonoured cheque would be treated by Allmar’s bank and why it is treated this way

In: Accounting

Murderer of Love began operations on 1/1/2016. All shares of common and preferred stock were issued...

Murderer of Love began operations on 1/1/2016. All shares of common and preferred stock were issued on that date. The following information relates to the company as of December 31, 2018:

Balance sheet info 2018

Preferred Stock, Cumulative, Par $5,10% dividend rate $160,000

Additional pain in capital- Preferred stcok 40,000

Common stock par $2 400,000

Additional pain in capital- common stock 3,024,000

Treasury Stock- 1,000 shares repurchased during 2016 (20,000)

Beginning Retained Earnings balance ( as of Jan. 1, 2018) 180,000

Income statement Info 2018

Net income 414,000

During 2018, Murderer of Love declared and paid a cash dividend of $60,000. The only other dividend the company has ever issued was a $20,000 cash dividend declared and paid during 2016.

Required (1):  What should be the company’s ending retained earnings balance (as of December 31, 2018)? Answer below.

Answer: Work (optional):

Question 2

Required (2):  How many shares of common stock were issued on 1/1/16?

Answer: Work (optional):

Question 3

Required (3):  How many shares of common stock are outstanding as of December 31, 2018?

Answer: Work (optional):

Question 4

Required (4):  How much did Murderer of Love receive per share when the preferred stock was issued?

Answer: Work (optional):

Question 5

Required (5):  How much of the cash dividend declared and paid in 2018 was paid to common stockholders?

Answer: Work (optional):

Question 6

Required (6):  What is Murderer of Love's earnings per share for the year ended December 31, 2018?

Answer: Work (optional):

In: Accounting

The following information relates to the June 2018 cash transactions for Allmar Pty Ltd. The following...

The following information relates to the June 2018 cash transactions for Allmar Pty Ltd.

  1. The following unpresented cheques (outstanding cheques) appeared on the 31st May 2018 bank reconciliation:

Cheque no.

Amount ($)

6539

1,207.60

6548

3,605.00

6549

317.40

6555

575.60

6558

990.00

  1. All cheques except for cheque no. 6558 are included in the 30th June 2018 bank statement. On 31st May 2018, a deposit of $5,163.00 was outstanding.
  2. In the company’s records the cash balance at 31st May 2018 was $39,659.56 debit.
  3. Total cash payments of $99,565.60 were credited to cash at bank for the month of June 2018.
  4. Total cash receipts for June were $104,291.40, but $3,964.90 of these were received on 30th June are outstanding as they have not yet been credited by the bank.
  5. The bank statement at 30th June 2018 shows a closing credit balance of $53,852.26.
  6. The following information only appeared on the bank statement in June, service charges of $64.80; a $190.80 returned cheque due to insufficient funds in the drawer’s account; and the 31st May deposit of $5,163.00 which was credited by the bank on 1st June.
  7. Cheque no. 6585, written for telephone expenses on 20th June, and recorded by the company at $1,978.00, was correctly paid by the bank as $1,996.00
  8. The June bank statement shows a debit of $1,165.00 for a cheque which was not written by Allmar Pty Ltd, but which was incorrectly debited to their account by the bank.
  9. The following cheques are included in the company’s records but do not appear on the company’s bank statement for June:

Cheque no.

Amount ($)

6598

574.80

6599

5,137.40

6614

4,181.20

6615

3,987.00

Required:

  1. Prepare the cash bank account in the general ledger as a result of the adjustments required to balance the account to the bank statement for the month of June 2018.
  2. Prepare the bank reconciliation as at 30th June 2018.
  3. Explain how a dishonoured cheque would be treated by Allmar’s bank and why it is treated this way

In: Accounting

In 2017, Keenan Company paid dividends totaling $3,600,000 on net income of $10.8 million. Note that...

In 2017, Keenan Company paid dividends totaling $3,600,000 on net income of $10.8 million. Note that 2017 was a normal year and that for the past 10 years, earnings have grown at a constant rate of 10%. However, in 2018, earnings are expected to jump to $14.4 million and the firm expects to have profitable investment opportunities of $8.4 million. It is predicted that Keenan will not be able to maintain the 2018 level of earnings growth because the high 2018 earnings level is attributable to an exceptionally profitable new product line introduced that year. After 2018, the company will return to its previous 10% growth rate. Keenan’s target capital structure is 40% debt and 60% equity.

a. Calculate Keenan’s total dividends for 2018 assuming that it follows each of the following policies: 1. Its 2018 dividend payment is set to force dividends to grow at the long-run growth rate in earnings. 2. It continues the 2017 dividend payout ratio. 3. It uses a pure residual dividend policy (40% of the $8.4 million investment is financed with debt and 60% with common equity). 4. It employs a regular-dividend-plus-extras policy, with the regular dividend being based on the long-run growth rate and the extra dividend being set according to the residual dividend policy.

b. Which of the preceding policies would you recommend? Restrict your choices to the ones listed but justify your answer.

c. Assume that investors expect Keenan to pay total dividends of $9,000,000 in 2018 and to have the dividend grow at 10% after 2018. The stock’s total market value is $180 million. What is the company’s cost of equity?

d. What is Keenan’s long-run average return on equity?

e. Does a 2018 dividend of $9,000,000 seem reasonable in view of your answers to parts c and d? If not, should the dividend be higher or lower? Explain your answer.

In: Finance

Assume Nortel Networks contracted to provide a customer with Internet infrastructure for $2,050,000. The project began...

Assume Nortel Networks contracted to provide a customer with Internet infrastructure for $2,050,000. The project began in 2018 and was completed in 2019. Data relating to the contract are summarized below:

20182019

Costs incurred during the year$304,000 $1,595,000

Estimated costs to complete as of 12/31 1,216,000  0

Billings during the year 385,000  1,630,000

Cash collections during the year 252,000  1,755,000


Required:
1. Compute the amount of revenue and gross profit or loss to be recognized in 2018 and 2019 assuming Nortel recognizes revenue over time according to percentage of completion.
2. Compute the amount of revenue and gross profit or loss to be recognized in 2018 and 2019 assuming this project does not qualify for revenue recognition over time.
3. Prepare a partial balance sheet to show how the information related to this contract would be presented at the end of 2018 assuming Nortel recognizes revenue over time according to percentage of completion.
4. Prepare a partial balance sheet to show how the information related to this contract would be presented at the end of 2018 assuming this project does not qualify for revenue recognition over time.

  • Required 1
  • Required 2
  • Required 3
  • Required 4

Compute the amount of revenue and gross profit or loss to be recognized in 2018 and 2019 assuming Nortel recognizes revenue over time according to percentage of completion. (Loss amounts should be indicated with a minus sign. Use percentages as calculated and rounded in the table below to arrive at your final answer.)

Percentages of completion
Choose numerator ÷ Choose denominator = % complete to date
2018 ÷ =
2019 ÷ =
2018
To date Recognized in prior years Recognized in 2018
Construction revenue
Construction expense
Gross profit (loss)
2019
To date Recognized in prior years Recognized in 2019
Construction revenue
Construction expense
Gross profit (loss)

In: Accounting

The Frost Company has accumulated the following information relevant to its 2018 earnings per share. 1....

The Frost Company has accumulated the following information relevant to its 2018 earnings per share. 1. Net income for 2018, $150,000. 2. Bonds payable: On January 1, 2018, the company had issued 10%, $200,000 bonds. Each $1,000 bond is currently convertible into 20 shares of ordinary share. To date, no bonds have been converted. 3. Bonds payable: On January 31, 2018, the company had issued $540,000 of 5.8% bonds. Each $1,000 bond is currently convertible into 11 shares of ordinary share. To date, no bonds have been converted. 4. Preference share: On July 1, 2017, the company had issued 3,800 shares of $7.5 preference share at $108 per share. Each share of preference share is currently convertible into 2.45 shares of ordinary share. To date, no preference share has been converted and no additional shares of preference share have been issued. The current dividends have been paid. 5. Ordinary share: At the beginning of 2018, 25,000 shares were outstanding. On July 1, 7,000 additional shares were issued. On September 1, a 20% bonus issue was declared and issued. On November 1, 2,000 shares were repurchased by the company. 6. Share options: Options to acquire ordinary share at a price of $33 per share were outstanding during all of 2018. Currently, 4,000 shares may be acquired. TO date, No options have been exercised. 7. Miscellaneous: Stock market prices on ordinary share averaged $41 per share during 2018, and the 2018 ending stock market price was $40 per share. The corporate income tax rate is 30%. Required: Compute the basic and diluted earnings per share for 2018 (Round to 2 decimal places).

In: Accounting