Question: Programming Assignment 6 Scenario: You have been hired by the National Insurance Company to create a program to track insurance policies for all its customers.
Programming Assignment Scenario: You have been hired by the National Insurance Company to create a program to track insurance policies for all its customers. National Insurance provides three types of insurance: automobile, home and life insurance. The program should be able to track up to policies.
You have been hired by the National Insurance Company to create a program to track insurance policies for all its customers. National Insurance provides three types of insurance: automobile, home and life insurance. The program should be able to track up to policies.
For each policy, the solution should capture the following...
Field
Type
Description
Validations
Policy number
Alphanumeric
Unique identifier for the policy
Ex: A
Must start with a letter AZ followed by digits
Must have a length of characters
Policy Owner
Alphanumeric
Full name of the policy owner
Required, cannot be blank
Yearly Premium
Decimal
Dollar amount for the yearly premium paid for the insurance
Required
For each automobile policy, the solution should also capture the following...
Field
Type
Description
Validations
Vehicle ID No VIN
Alphanumeric
Unique Id for the vehicle
Ex: GCECZL
Required, cannot be blank
Must have a length of characters,
Cannot contain the letters O o I i and Q qto avoid confusion with numerals and
Make
Alphanumeric
Name of manufacturer
Ex: Dodge
Required, cannot be blank
Model
Alphanumeric
Name of model
Ex: Charger
Required, cannot be blank
For each home policy, the solution should also capture the following...
Field
Type
Description
Validations
Street Address
Alphanumeric
Home address
Ex: Main Street
Required, cannot be blank
Year Built
Numeric
Year that the home was built
Ex:
Must be a number between
Deductible
Decimal
Dollar amount for the deductible for any claims
Required
For each life insurance policy, the solution should also capture the following...
Field
Type
Description
Validations
Beneficiary Name
Alphanumeric
Full name for the beneficiary for the policy
Required, cannot be blank
Face Value
Decimal
Dollar amount of the policy
Required
Based on the provided information, create an efficient, objectoriented solution with good design principles that will allow a user to manage policies.
To do this, the solution should have a menu with the following capabilities:
Add Policy
This capability will allow a user to add a policy. The user should specify if the policy is for home, auto, or life. Once the type of policy has been selected, the user should be prompted for all required fields for the policy type.
Remove Item
This capability will allow a user to select any policy and remove it from the list.
View policies
This capability will allow a user to see all the policies. All policy fields should be displayed and formatted
Quit
This capability will allow a user to end working with the solution. It will print a message thanking the user for using the solution.
Other Requirements:
Your solution must use objectoriented techniques, including appropriate constants, constructors, accessors, validating mutators, and special purpose methods, including a toString method. No points earned for a procedural solution.
Your solution must contain reasonably appropriate validation. Try to think about what might be considered appropriate as you are designing your solution beyond what has already been explicitly provided.
Your solution must demonstrate use of arrays
Your solution must demonstrate the concept of inheritance.
Your solution must be designed as a modular solution using methods other than main, with each method performing one task.
Your solution must not import any Java library other than JOptionPane.
Your solution may not use regular expressions for validation.
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
