Question
I would like help on this particular assignment. Des/ign, implement, (Auto, Home, Life) as classes and test them, that represent different insurance policies. A policy
I would like help on this particular assignment.
Des/ign, implement, (Auto, Home, Life) as classes and test them, that represent different insurance policies. A policy contains information used by an insurance company to provide financial assi/stance in the event of an accident. It also contains information used to compute how much money, also called a commission. Develop instance variables, constructors, get/set methods, and a toString method for each class. Create a driver class called PolicyTest, whose main method creates objects from each type of class, sets each object with sample data for the information below, and prints the commis/sion totals based on the formulas below. You are not required to prompt a user for the information in this.
Auto insurance policy
Policy information includes: - name of insured - make and model of automobile - amount of liability coverage in dollars - amount of collision coverage in dollars Sales commission is based on the formula:
commission = (liability + collision) * 30%
Home insurance policy
Policy information includes: - name of insured - house square footage - amount of dwelling coverage in dollars - amount of contents coverage in dollars - amount of liability coverage in dollars Sales commission is based on the formula: commission = (liability * 30%) + ( (dwelling + contents) * 20% )
Life insurance policy
Policy information includes: - name of insured - age of insured - amount of term life coverage in dollars Sales commission is based on the following formula: commission = term life * 20%
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started