IT 206 Spring 2014
Programming Assignment 6
For example, if you use Global Variable or your solution does not use methods other than main – you will lose points for poor design.
0 points will be awarded for a program that does not compile. There will be significant point loss if you violate good design rules as covered in class.
You are to create an efficient OO application that implements an application to manage clients within an insurance company. You should use an abstract class to hold Policy information. The policy number should be generated such that all policies begin with a4 digit ‘number’, the first policy number should be 1000. Homeowner policy numbers should end in HO and auto policies should end in A. In addition to the policy number, the customer’s name and valid phone number with no dashes (xxxxxxxxxx) should be stored.
Homeowner’s policies need to include the house’s appraised value (between $50,000 and $1,000,000) and the value of the contents of the house (between $10,000 and $250,000 – not to exceed 25% of the house’s appraised value.) Car insurance policies should hold up to 4 vehicles (with corresponding model names and years – no older than 1990).
The yearly cost for a homeowner’s policy is $500 + 1% of the appraised house value. The yearly cost for an auto policy is $250 for each vehicle that is less than 2 years old and $200 for each vehicle that is at least two years old.
Note: there are no multi-‐policy discounts, so every policy is a unique object.
Your application should be menu-‐driven, where the user is given the following:
The insurance company can manage up to 100 policies. The summary should include all information for all policies (including name, policy number, phone number – formatted as XXX-‐XXX-‐XXXX – either appraised and content values for Homes or list of cars for Autos) as well as:
§§Average value of contents for all homeowners policies
§§Number of high-‐dollar (at least $500,000 houses insured)
§§Total number of new cars (2014 models) insured
Design Documents (due in Module 11): 20 Points
Submit to the Blackboard site a detailed UML Class Diagrams– including associations, IPO (Hierarchy Chart) , detailed flowcharts and/or pseudocode AND a memory map.
Solution (due in Module 12): 60 points
Submit to the Blackboard site your .java files ONLY
0 points will be awarded for a program that does not compile
Your solution score will depend heavily on the following:
• Correct use of Abstract data class
• Appropriate inheritance structure
• Correct use of constructors
• Validation of values within data definition classes
• Correct methods in Auto data definition class to manage needs of counting number of new cars and listing cars in policy
• Correct overriding of cost() method from abstract Policy class
• Use of ONE array of policies in the implementation class
• Sound design using appropriate methods in application class – only menu provided in main()
• NO redundant code in any of the classes!
• Correct output
• Objective style documentation
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more