Question: Need help in Java please. The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current
Need help in Java please.
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 customers age, adding to it and multiplying by For example, a yearold would pay $ which is calculated by adding the decades to and then multiplying by
Create a class called Insurance that prompts a user for the current year and a birth year. Pass both to a method called calculatePremium that calculates and returns the premium amount, and then display the returned amount.
An example of the program is shown below:
Enter the current year
Enter the birth year
The premium is $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
