# computer science

posted by .

n insurance company wants to offer a new 5-year, level-term life insurance policy to recent college graduates. The policy will have a face value (the amount paid in case of death) of \$50,000. Normally, the company charges different premiums depending on the age, gender, tobacco habits and health of the person to be insured*. However, for this simple policy, the company plans to charge a flat \$60/year for every eligible customer, and avoid the underwriting costs normally associated with new policies. It costs the company an average of \$30 per policy for advertising, sales and administration. In order to estimate the profitability of the new policy, you have been asked to simulate expected policy income (premium payments received) compared to costs (administrative/sale cost plus the occasional death benefit) for an anticipated 100,000 policies.

Background Information:
In each of the 5 policy years, there are 3 possible outcomes.
• The insured may die, and \$50,000 will be paid out (there is a 0.1% chance of death in any one year for persons in this age group)
• The insured may decide to drop the policy, with no payout, and all premiums paid so far are forfeited – (there is a 4% chance of this happening during any year)
• The insured may continue to pay the annual premium and the policy remains in force. At the end of the fifth year, the insurance terminates, with no further costs to either party.

Use a Monte Carlo simulation to solve this problem. Rather than a closed-form solution, Monte Carlo techniques depend on setting up the problem parameters and then inputting a series of random values. The combination of all the random solutions is taken as the problem solution.

Hints:
Set up the calculations for cash flow each year based on the costs and probabilities given above. Then, the actual cash flow for each policy (each simulation) depends on random numbers which determine which of the possible events actually occurs for that policy holder during that year. Sum the company’s total expected income for all the policies sold, compare this to the cost of selling the policies, and determine how profitable this will be for the company. (You can ignore the cost of money and treat all income as the same, no matter what year it happens.)

To generate random numbers, use the rand() function found in . It does not take any arguments, and it returns an integer between 0 and RAND_MAX (a constant already defined in the stdlib header). You will want to initialize, or “seed”, the random number function once, at the beginning of your program, by calling srand(time(NULL)). To use the time() function you must also include . Test your program for small numbers of random inputs, and hand-verify proper operation before you scale it up to the full 100,000 policies. Run the program multiple times and observe any differences in the results. If there are differences, what do you think caused them and what does that mean for your analysis?

• computer science -

please write this in C. Thanks

## Respond to this Question

 First Name School Subject Your Answer

## Similar Questions

1. ### Accounting

On April 1, 2009, the company paid an insurance company \$5,000 for a two-year fire insurance policy. The entire \$5,000 was debited to insurance expense. What is the Dec. 31, 2009 adusting journal entry?
2. ### statistic

Jim has a 5-year-old car in reasonably good condition. He wants to take out a \$30,000 term (that is, accident benefit) car insurance policy until the car is 10 years old. Assume that the probability of a car having an accident in the …
3. ### Statistics

A life insurance company sells a term insurance policy to a 21-year-old male that pays \$100,000 if the insured dies within the next 5 years. The probability that a randomly chosen male will die each year can be found in mortality tables. …
4. ### Intermediate Accounting

I am having a hard time calculating this my question is On April 1, 2011, the company paid an insurance company \$4,000 for a two-year fire insurance policy. The entire \$4,000 was debited to insurance expense. How do I calculate?
5. ### math

helping lil bro with homework and he forgot to bring his books home and I cant remember anything 1. The word “risk” is used often in insurance discussions. Assume you have an apartment and how likely you are to buy Renter’s Insurance?
6. ### accounting

A company has an insurance policy for fifty thousand dollars that is due. How is this set up when the company does not pay it in full. It is paid monthly to an insurance premium company within one year. How do we set it up on the company …
7. ### Math-Stats

An insurance company charges its policy holders an annual premium of \$200 for the following type of injury insurance policy. If the policy holder suffers a "major injury" resulting in lengthy hospitalization, the company will pay out …
8. ### statistics

An insurance company charges its policy holders an annual premium of \$200 for the following type of injury insurance policy. If the policy holder suffers a "major injury" resulting in lengthy hospitalization, the company will pay out …
9. ### Consumer Math: Insurance

Choose as many answers as apply. Which of the following statements are true of ordinary whole-life insurance policies?
10. ### Math

It is estimated that are 21 deaths for every 10 million people who use airplanes. A company that sells flight insurance provides 100,000 in case of death in a plane crash. A policy can be purchased for \$1. Calculate the expected value …

More Similar Questions