Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need full code typed and pic Methods, Classes and objects (Exercise 9) 0 Methods, Classes and Objects Insurance.java 1 // Insurance.java 2 // Chapter 3,

image text in transcribed

need full code typed and pic

Methods, Classes and objects (Exercise 9) 0 Methods, Classes and Objects Insurance.java 1 // Insurance.java 2 // Chapter 3, Exercise 9 3 import java.util.Scanner; 4 class Insurance 5 { 6 public static void main(String args[]) 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. // declare your variables here // accept user input here Il call calculate Premium here Write an application that prompts a user for the current year and a birth year. Pass both to a method that calculates and returns the premium amount, and then display the returned amount. public static int calculatePremium(int curr, int b // place your calculate Premium method logic here 19)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions