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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!