Question

In: Computer Science

The Harrison Group Life Insurance company computes annual policypremiums base on the age the customer...

The Harrison Group Life Insurance company computes annual policy premiums base on the age the customer turns in the current calendar year. The premium is computed by taking the decade of the customer’s age, adding 15 to it, and multiplying by 20. For example, a 34 year old would pay $360, which is calculated by adding the decades(3) to 15, and then multiplying by 20. Write an application that prompts a user for the current year(yyyy) and a birth year(yyyy). A customer must be at least 18 in the current year to purchase life insurance.   The program should allow five customers’ annual premiums to be calculated without exiting. Once the fifth customer’s premium is computed, the program should display the following message and exit: Thanks for using our services.

The following must be included in the program: Use Python

Functions:

The program must contain a function, calcAge, that calculates and returns the customer’s age. This function takes the birth year and current year as parameters

Include a second function, calcPremium, which calculates and displays the annual premium. This function takes the customer’s age as parameter.

Validation:

If the customer’s age is less than 18, the program should not compute the annual premium. The following message must should be displayed: Sorry, you are not old enough to purchase life insurance

Solutions

Expert Solution

def calcAge(birthYear, currentYear):

return currentYear - birthYear

def calcPermium(age):

decades = age / 10

premium = (decades + 15 ) * 20

return premium

for i in range(5):

birthYear = int(input("Enter birth year: \n"))

currentYear = int(input("Enter current year: \n"))

age = calcAge(birthYear, currentYear)

if age < 18:

print("Sorry, you are not old enough to purchase life insurance")

else:

premium = calcPermium(age)

print("Premium to be paid is", premium)

print("Thanks for using our services.")


Related Solutions

The Harrison Group Life Insurance company computes annual policypremiums based on the age the customer...
The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current calendar year. The premium is computed by taking the decade of the customre's age, adding 15 to it, and multiplying by 20. For example, a 34-year-old would pay $360, which is calculated by adding the decades (3) to 15, and then multiplying by 20. Write an application that prompts a user for the current year and then display the returned...
The Harrison GroupLife Insurance company computes annual policy premiums based on theage the customer...
The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current calendar year. The premium is computed by taking the decade of the customer’s age, adding 15 to it, and multiplying by 20.For example, a 34-year-old would pay $360, which is calculated by adding the decades (3) to 15, and then multiplying by 20.Write an application that prompts a user for the current year then a birth year. Pass both to...
A customer buys a $250,000 life insurance policy with an annual premium of $300. Her probability...
A customer buys a $250,000 life insurance policy with an annual premium of $300. Her probability of dying during the year is 0.001. If she dies, the insurance company will have to give her beneficiary $250,000. a) If there is a 0.001 chance she dies, what is the probability she does not die? b) Fill in the table below, let X= Amount the insurance company makes. X P(X) c) Use a computer or calculator: What is the insurance company’s expected...
What amount of life insurance does group life insurance usually provide?
What amount of life insurance does group life insurance usually provide?
Group Term Life Insurance Many employers limit providing employer-paid Group Term Life Insurance to $50,000. The...
Group Term Life Insurance Many employers limit providing employer-paid Group Term Life Insurance to $50,000. The IRS allows the $50k limit without assessing a tax on the value of this benefit. For a life insurance benefit in excess of $50k, the affected employee will have to include as income and pay income taxes. So some employers avoid the administrative chore of calculating the excess benefit and adding it to the employee’s annual W-2. A consequence to those employers may be...
Make a conversation of selling life insurance to a Hispanic customer?
Make a conversation of selling life insurance to a Hispanic customer?
1. A Life Insurance company offers a perpetuity that pays annual payments of $20,000. This contract...
1. A Life Insurance company offers a perpetuity that pays annual payments of $20,000. This contract sells for $320,000 today. What is the interest rate? 2. Noly Corp. issued preferred stock at $1,000 with a 5.8% dividend. The current rate of return investors require is 6.0%. What is the maximum price investors would be willing to buy for the preferred stock? 3. Crinkle Inc. is selling a product that it expects will generate cash flows of $715,000 every year. The...
This question regards life insurance: What makes someone a candidate for the product? (age, life circumstances,...
This question regards life insurance: What makes someone a candidate for the product? (age, life circumstances, income, etc.).   How can you find a pool of potential customers for this service? What information can you find or purchase, such as lists? How many prospects could you come up with to start a conversation (f2f, phone, email)? Recognize that most of the prospects will (a) not need, (b) not be able to buy, or (c) already have insurance. That is why developing...
Insurance companies typically do not sell term-life insurance policy for people over the age of 80,...
Insurance companies typically do not sell term-life insurance policy for people over the age of 80, and it is mainly because which of the following requirements of an insurable risk is NOT met? Calculable chance of loss Economically feasible premium Accidental and unintentional loss Determinable and measurable loss
Which of the following is not a valid method for determining life insurance needs? Group of...
Which of the following is not a valid method for determining life insurance needs? Group of answer choices The Financial Needs Method. The Human Life Value Method. The Dependency Method. The Capitalization of Earnings Method.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT