# computer science

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?

1. 👍 0
2. 👎 0
3. 👁 194
1. please write this in C. Thanks

1. 👍 0
2. 👎 0

## Similar Questions

1. ### Accounting

On March 1, 2003, a company paid a \$16,200 premium on a 36-month insurance policy for coverage beginning on that date. Refer to that policy and fill in the blanks in the following table: Check 2005 insurance expense: Accrual,

2. ### Finance

An insurance company is offering a new policy to its customers. Typically, the policy is bought by a parent or grandparent for a child at the child's birth. The details of the policy are as follows: The purchaser (say, the parent)

3. ### Math

Ophira's insurance company has notified her that her premiums will increase due to a poor insurance score and a recent claim she filed. The recent claim has increased her premiums by 41%, and her poor insurance score will cost her

4. ### math

Which of the following are true of ordinary whole-life insurance policies? 1. The insured pays premiums on this type of insurance until his death. 2. Ordinary whole life insurance covers the insured for the states term of the

1. ### Math

There was water damage to personal property in a home. The items damaged were originally priced at \$4000. The items lose value by 11% per year. The items were four years old when they were damaged. The owner had actual cash value

2. ### statistics

The probability that a 30-year old white male will live another year is .99842. What premium would an insurance company charge to break even on a 1-year \$1 million dollar term life insurance policy?

3. ### 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

4. ### math

Solve the following problems related to automobile insurance. Jerry Adams normally pays \$875 for bodily injury and property damage insurance. His insurance company increases premiums by 150% for 1 accident, 200% for 2-3 accidents,

1. ### Finance and literacy

A college professor's compensation package includes the total cost of a \$350-per-month health insurance plan, the total cost of a \$45-per-month life insurance plan, and a salary of \$65,000 per year. What is the yearly value of the

2. ### Insurance

Of 500 employees of a firm 280 have a life insurance policy ,400 have a medical insurance cover and 200 participate in both programs. 1)what is the probability that a randomly selected employee will be a participant in at least

3. ### accounting

A review of the ledger of Terrell Company at December 31, 2012, produces these data pertaining to the preparation of annual adjusting entries. 1. Prepaid Insurance \$18,279. The company has separate insurance policies on its

4. ### financial literacy

A college professor's compensation package includes the total cost of a \$350-per-month health insurance plan, the total cost of a \$45-per-month life insurance plan, and a salary of \$65,000 per year. What is the yearly value of the