Use a while(true) loop to ask the user to “Enter a non-negative
integer (enter negative integer to
quit):”
and store this into an int named n.
If the user enters a negative int for n, the while loop is broken
via the brake statement. Otherwise,
in the remaining part of the while loop, use a for loop to compute
the sum of the inverse factorials
from 0 to n, that is sum = 1/0! + 1/1! + 1/2! + . . . + 1/n!
Use the iomanip library in order to print the sum with 50 decimal
digits of precision.
Sample output:
Enter a non-negative integer (enter negative integer to quit):
8
1/0! + 1/1! + 1/2! + 1/3! + 1/4! + 1/5! + 1/6! + 1/7! + 1/8! =
2.7182787698412700372330164100276306271553039550781
Enter a non-negative integer (enter negative integer to quit):
0
1/0! = 1
Enter a non-negative integer (enter negative integer to quit):
-3
Will like if correct thank you
c++
In: Computer Science
Cost of Quality and Value-Added/Non-Value-Added Reports for a Service Company
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 | $33,100 | |||
| Cable signal testing | 79,800 | |||
| Reinstalling service (installed incorrectly the first time) | 71,100 | |||
| Repairing satellite equipment | 17,100 | |||
| Repairing underground cable connections to the customer | 21,500 | |||
| Replacing old technology cable with higher quality cable | 129,300 | |||
| Replacing old technology signal switches with higher quality switches | 147,700 | |||
| Responding to customer home repair requests | 39,600 | |||
| Training employees | 30,800 | |||
| Total activity cost | $570,000 | |||
b. Prepare a cost of quality report. Assume that sales are $2,850,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 | $ | % | % |
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 | $ | % |
d. What percentage of total costs of quality are considered to be value-added?
In: Accounting
Because of the high cost of hiring and training new employees, employers would like to ensure that they retain highly qualified workers. To help develop a hiring program, the human resources manager of a large company wanted to compare how long business and non-business university graduates worked for the company before quitting to accept a position elsewhere. The manager selected a random sample of 25 business and 20 nonbusiness graduates who had been hired 5 years ago. The number of months each employee 3 had worked for the company was recorded. (Those who had not quit were recorded as having worked for 60 months.) Is the average duration of employment the same for business and non-business graduates before quitting to accept a position elsewhere?
a) Are the samples independent? What is the appropriate parametric test here? Draw the histograms of duration of employment for business and non-business graduates and comment on the justification of using/not using a parametric test here to address the question of interest.
b) Use an appropriate non-parametric test to compare the average duration of employment of business and non-business graduates at 5% level of significance. Make sure you follow all the steps for hypothesis testing indicated in the Instructions section and show your computations.
| Business | Non-Bus |
| 60 | 25 |
| 11 | 60 |
| 18 | 22 |
| 19 | 24 |
| 5 | 23 |
| 25 | 36 |
| 60 | 39 |
| 7 | 15 |
| 8 | 35 |
| 17 | 16 |
| 37 | 28 |
| 4 | 9 |
| 8 | 60 |
| 28 | 29 |
| 27 | 16 |
| 11 | 22 |
| 60 | 60 |
| 25 | 17 |
| 5 | 60 |
| 13 | 32 |
| 22 | |
| 11 | |
| 17 | |
| 9 | |
| 4 |
In: Statistics and Probability
. For each of the following inductive generalizations, underline the conclusion; specify the target group and the sample group, and answer the questions that follow each to determine whether the argument is strong or weak whether there is not enough information to decide. If there is not, specify what you would need to know to make a decision.
1) Air samples were taken from a dozen locations around the city, and all showed unhealthy levels of pollutants. Therefore, the air in the city has an unhealthy level of pollution.
Target group:
Sample group:
Is the sample group representative of the target group? Why/why not?
Is the sample group sufficiently large?
Based on your answers to the previous two questions, is the argument strong or weak, or do you not have enough information to decide?
2) I have a 2012 Chevy Sonic, and it has been very reliable. Therefore, Chevy Sonics are reliable cars.
Target group:
Sample group:
Is the sample group representative of the target group? Why/why not?
Is the sample group sufficiently large?
Based on your answers to the previous two questions, is the argument strong or weak, or do you not have enough information to decide?
3) Reputable, non-partisan polling firm conducted a survey of more than 2000 randomly chosen"adults who are eligible to vote in the next presidential election, and they found that more than half are planning to vote for the incumbent. Therefore, the incumbent will get re-elected.
Target group:
Sample group:
Is the sample group representative of the target group? Why/why not?
Is the sample group sufficiently large?
Based on your answers to the previous two questions, is the argument strong or weak, or do you not have enough information to decide?
In: Statistics and Probability
Is the declining labor force participation rate amongst men a bad thing?
In class this week, we learned that 16% of men aged between 25-54 in 2014 were not working. That number is nearly triple the amount seen in 1968- ~5%- and is significantly larger than prior decades. In 1950, about 4/100 men didn't go to work. Currently 14/100 men don't go to work. So what's goin on?
Certainly it's a bad thing that the labor force participation amongst men is declining when looking at the perspective with a quick glance. But only 1/3rd of the rise for prime-aged men can be explained by unemployment. There's more to the story, which leads me to believe that it isn't as bad as it looks.
Male graduation rates have risen by 5% since 2000 and school accounts for a 13% increase in prime-aged non-workers. With more males going to school, the LFPR is declining. However, in the long-run education and skills are rising, which leads to a better occupation. Furthermore, about 24% of men are staying home to take care of their families now- which is a rise from 17% in 2016. So, I don't view it as a bad thing that males are staying home to protect and care for their loved ones. Additionally, disabilities might play a role. Disabilities significantly prevent workers from returning to work, which may be another answer to this "problem." However, those with disabilities receive payments to assist with their living conditions.
The debate can go either way on this topic, and I view this decline as neither good nor bad. There is evidence for both sides of the story. What do you think?
In: Economics
In 2018, the Westgate Construction Company entered into a
contract to construct a road for Santa Clara County for
$10,000,000. The road was completed in 2020. Information related to
the contract is as follows:
| 2018 | 2019 | 2020 | |||||||
| Cost incurred during the year | $ | 2,604,000 | $ | 4,032,000 | $ | 1,940,400 | |||
| Estimated costs to complete as of year-end | 5,796,000 | 1,764,000 | 0 | ||||||
| Billings during the year | 2,040,000 | 4,596,000 | 3,364,000 | ||||||
| Cash collections during the year | 1,820,000 | 4,000,000 | 4,180,000 | ||||||
Westgate recognizes revenue over time according to percentage of
completion.
rev: 09_15_2017_QC_CS-99734
Required:
1. Calculate the amount of revenue and gross profit (loss) to be recognized in each of the three years. (Do not round intermediate calculations. Loss amounts should be indicated with a minus sign.)
|
3. Complete the information required below to prepare a partial balance sheet for 2018 and 2019 showing any items related to the contract. (Do not round intermediate calculations.)
|
|||||||||||||||||||||||||||||||||||||||||
In: Accounting
On December 31, 2017, Berclair Inc. had 360 million shares of common stock and 3 million shares of 9%, $100 par value cumulative preferred stock issued and outstanding. On March 1, 2018, Berclair purchased 88 million shares of its common stock as treasury stock. Berclair issued a 5% common stock dividend on July 1, 2018. Four million treasury shares were sold on October 1. Net income for the year ended December 31, 2018, was $550 million. Also outstanding at December 31 were 30 million incentive stock options granted to key executives on September 13, 2013. The options were exercisable as of September 13, 2017, for 30 million common shares at an exercise price of $56 per share. During 2018, the market price of the common shares averaged $70 per share. Required: Compute Berclair's basic and diluted earnings per share for the year ended December 31, 2018. (Enter your answers in millions (i.e., 10,000,000 should be entered as 10).)
In: Accounting
On January 1, 2018, Nguyen Electronics leased equipment from
Nevels Leasing for a four-year period ending December 31, 2021, at
which time possession of the leased asset will revert back to
Nevels. The equipment cost Nevels $824,368 and has an expected
economic life of five years. Nevels expects the residual value at
December 31, 2018, will be $100,000. Negotiations led to the lessee
guaranteeing a $140,000 residual value.
Equal payments under the lease are $200,000 and are due on December
31 of each year with the first payment being made on December 31,
2018. Nguyen is aware that Nevels used a 5% interest rate when
calculating lease payments. (FV of $1, PV of $1, FVA of $1, PVA of
$1, FVAD of $1 and PVAD of $1) (Use appropriate factor(s)
from the tables provided.)
Required:
1. Prepare the appropriate entries for both
Nguyen and Nevels on January 1, 2018, to record the lease.
2. Prepare all appropriate entries for both Nguyen
and Nevels on December 31, 2018, related to the lease.
In: Accounting
Tanner-UNF Corporation acquired as a long-term investment $290 million of 6.0% bonds, dated July 1, on July 1, 2018. Company management has the positive intent and ability to hold the bonds until maturity. The market interest rate (yield) was 7% for bonds of similar risk and maturity. Tanner-UNF paid $260.0 million for the bonds. The company will receive interest semiannually on June 30 and December 31. As a result of changing market conditions, the fair value of the bonds at December 31, 2018, was $270.0 million. Required: 1. & 2. Prepare the journal entry to record Tanner-UNF’s investment in the bonds on July 1, 2018 and interest on December 31, 2018, at the effective (market) rate. 3. At what amount will Tanner-UNF report its investment in the December 31, 2018, balance sheet? 4. Suppose Moody’s bond rating agency downgraded the risk rating of the bonds motivating Tanner-UNF to sell the investment on January 2, 2019, for $250.0 million. Prepare the journal entry to record the sale.
In: Accounting
1) The Inouyes filed jointly in 2018. Their AGI is $78,000. They
reported $2,000 of qualified business income and $22,000 of
itemized deductions. They have two children, one of whom qualifies
as their dependent as a qualifying child. The 2018 standard
deduction amount for MFJ taxpayers is $24,000. What is the total
amount of from AGI deductions they are allowed to claim on their
2018 tax return?
2) Jane and Ed Rochester are married with a two-year-old child who lives with them and whom they support financially. In 2018, Ed and Jane realized the following items of income and expense: Item Amount Ed's Salary $ 35,000 Jane's Salary 70,000 Municipal bond interest income 400 Qualified business income 1,000 Alimony paid (for AGI deduction) (7,000 ) Real property tax (from AGI deduction) (10,000 ) Charitable contributions (from AGI) (15,000 ) They also qualified for a $2,000 child tax credit. Their employers withheld $5,800 in federal income taxes from their paychecks (in the aggregate). Finally, the 2018 standard deduction amount for MFJ taxpayers is $24,000. What is the couple's taxable income?
In: Accounting