Explore BrainMass
Share

Using switch statements to determine acceptable error

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

An airline vice president in charge of operations needs to determine whether the current estimates of flight times are accurate. because there is a larger possiblity of variations due to wether and air traffic in the longer flights, he allows a larger error in the time estimates for them. He compares an actual flight time with the estimated flight time and considers the estimate to be too large, acceptable, or too small, depending on the following table of acceptable error margins:

Estimated flight time in minutes Acceptable error margin in minutes
0-29 1
30-59 2
60-89 3
90-119 4
120-179 6
180-239 8
240-359 13
360 or more 17

For example, if an estimated flight time is 106 mins, the acceptable error margin is 4 mins. Thus, the estimated flight time is too large if the actual flight time is less than 102 mins, or the estimated flight time is too large if the actual flight time is greater than 110 mins; otherwise, the estimate is acceptable.
Write a function that uses a switch statement to determine the acceptable error for a given estimated flight time, according to this table. Use the function in a program that reads an estimated flight time and an actual flight time and then determines whether the estimated time is too large, acceptable, or too small. If the estimated flight time is too large or too small, the program should also print the amount of the overestimate or underestimate.

© BrainMass Inc. brainmass.com October 24, 2018, 6:06 pm ad1c9bdddf
https://brainmass.com/computer-science/programming-language-theory/switch-statements-determine-acceptable-error-31585

Solution Summary

Use the function in a program that reads an estimated flight time and an actual flight time and then determines whether the estimated time is too large, acceptable, or too small.

$2.19
See Also This Related BrainMass Solution

Discuss generally how revenue should be recognized at interim dates and specifically how revenue should be recognized for industries subject to large seasonal fluctuations in revenue and for long term

V Part.

1- Rensing Company "s December 31 year end financial statements contained the followings errors:

Dec 31 2007 Dec 31 2008

Ending Inventory $7,500 understated $11,000 overstated

Depreciation Expense 2,000 understated

An insurance premium of $18,000 was prepaid in 2007 covering the years 2007, 2008 and 2009. The prepayment was recorded with a debit to insurance expense.

In addition, on December 31, 2008, fully depreciation machinery was sold for $9,500 cas , but the sale was not recorded until 2009.

There were no other errors during 2008,or 2009 and no corrections have been made for nay of the errors.

What is the total net effect of the errors on the balance of Rensing's retained earnings at December 31, 2008? (Ignore income tax considerations)

a) Retained earnings understated by $10,000
b) Retained earnings understated by $4,500
c) Retained earnings understated by $2,500
d) Retained earnings understated by $3,500

2-Change in estimate, change in entity, correction errors.

Discuss the accounting procedures for and illustrate the following:

a) Change in estimate
b) Change in entity
c) Correction of an error.

VI-Part

1- The following information is taken form Ryser Corporation financial statements:

December 31

2007 2008

Cash $90,000 $27,000

Account Receivable 92,000 80,000

Allowance for Doubtful accounts (4500) (3100)

Inventory 155,000 175,000

Prepaid expenses 7,500 6,800

Land 90,000 60,000

Buildings 287,000 244,000

Accumulated depreciation (32,000) (13,000)

Pattents 20,000 35,000

Total Assets $705,000 $611,700

Account Payable $90,000 $84,000

Accrued liablilities 54,000 63,000

Bonds payable 125,000 60,000

Common stock 100,000 100,000

Retained earnings 351,000 312,700

Treasury stock at cost (15,000) (8,000)

Total Liabilities and Equity $705,000 $611,700

For year 2008

Net Income $58,300

Depreciation Expense 19,000

Amortization of Patents 5,000

Cash dividends declared and paid 20,000

Gain or loss on sale of Patents none

Instructions:

Prepare a statement of cash flows for Reyser Corporation for the year 2008 (use the indirect method)

VII Part:

2- Interim reporting:

Interim financial reporting has become an important topic in accounting. There has been considerable discussion as to the proper method of reflecting results of operations at interim dates. Accordingly, the Accounting Principles Board issued an opinion clarifying some aspects of interim financial reporting.

Instructions:

A) Discuss generally how revenue should be recognized at interim dates and specifically how revenue should be recognized for industries subject to large seasonal fluctuations in revenue and for long term contracts using the percentage of completion method at annual reporting dates.
B) Discuss generally how product and period costs should be recognized at interim dates. Also discuss how inventory and cost of goods sold my be afforded special accounting treatment at interim dates.
C) Discuss how the provision for income taxes is computed and reflected in interim financial statement.

View Full Posting Details