Question: Programming Exercise 3-9 | Instructions Insurance.java+ 1 import java.util.Scanner 2 class Insurance [ The Harrison Group Life Insurance LCompany computes annual policy public static void

Programming Exercise 3-9 | Instructions Insurance.java+ 1 import java.util.Scanner 2 class Insurance [ The Harrison Group Life Insurance LCompany computes annual policy public static void main (String args[]) 4 // Write your code here 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 6 7public static int calculatePreium(int curr, int birth) // ite your code here 16 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 both to a method that calculates and returns the premium amount, and then display the returned amount. year. Pass GRADING Write your Java code in the coding area orn the right. Use the Run Code button to execute and run the code and the Test button to run a series of pre-configured tests against your project. Once you are happy with the test results, click Grade to submit your project for grading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
