Assignment You are required to implement an insurance management solution. The system provides functionalities which allow issuing different types of policies and submitting claims in case of...

Hello, I need someone to correct my assignment, I've done it but i don't know if it is done in a proper way and if I respected the principles, can someone please correct it for me? please it is urgent because it is part of a job interview process.


Assignment You are required to implement an insurance management solution. The system provides functionalities which allow issuing different types of policies and submitting claims in case of accidents. Below are the allowed types of policies that can be issued in the system: Policy Type Members Premium Validation Rules Display Template Travel · Id (int) · Effective (date) · Expiry (date) · PolicyNo (string) · Premium (decimal) · IsValid() (Boolean) · Departure (string) · Destination (string) · Family (Boolean) Number of days travelled * X If Family is covered by the policy, then X = 10 USD otherwise X = 5 USD · Effective must be less than Expiry · Number of days travelled cannot exceed 30 Each property is displayed on a separate line followed by a separator (dashes), ex: Id: 1 Effective: 2019-11-25 Expiry: 2019-11-30 ... and so on --------------------------------------- Motor · Id (numeric) · Effective (date) · Expiry (date) · PolicyNo (string) · Premium (decimal) · IsValid() (Boolean) · VehiclePrice (decimal) VehiclePrice * 0.2 USD · Effective must be less than Expiry Same as Travel Medical · Id (numeric) · Effective (date) · Expiry (date) · PolicyNo (string) · Premium (decimal) · IsValid()(Boolean) · Beneficiaries (list of Beneficiary object) Sum of premium by beneficiary, where the premium of each beneficiary is calculated as follows: Age < 10="" then="" 15="" usd="" 11=""><= age=""><= 45="" then="" 30="" usd="" age=""> 45 then 63 USD · Effective must be less than Expiry · At least one beneficiary is required · Beneficiaries should only allow one Beneficiary with Relationship “Self” Same as Travel but for Beneficiaries, display the number of dependents (i.e: beneficiaries whose Relationship is not Self) A Beneficiary object has the following properties: · Name (string) · Relationship (enum with possible values: Self, Spouse, Son, Daughter) · Gender (enum with possible values: Male, Female) · DateOfBirth (date) A Claim object has the following properties · Id (int - auto increment) · Incurred Date · Policy No (string) · ClaimedAmount (decimal) Create a console application which does the following (it should not take input from the user, it simply executes the below instructions in sequence): 1. Create 3 valid policies of different types. 0. The Id of a property should be auto-incremented and cannot be set by a calling class. 0. The Policy No should be auto-generated with the following format: {Current Year}-{Policy Type}-{Id} 1. Attempt adding 5 more policies. Ensure that one Travel and one Medical policies fail the validation. 1. Whenever a policy is created, a message should be displayed in the console “Policy {Policy No} was added successfully!”, otherwise display “Cannot add policy because it is invalid.” 1. Display all available policies (following the Display Template). 1. Display all policies whose premium is between 500 USD and 2000 USD. 1. Attempt adding 15 claims against the available policies. 5. If a claim is submitted against a policy which does not exist, display a message in the console: “Cannot submit a claim for Policy# {PolicyNo} because it does not exist”. 5. If the Incurred Date of the submitted claim does not fall within the Effective and Expiry dates of the policy, display a message in the console: “Claim is rejected because Policy# {PolicyNo} is inactive or expired”. 1. Display the following information per policy number: 6. Number of submitted claims for the given policy 6. Summation of the claimed amounts 6. Min and Max claimed amount Tutorials Please check below the needed tutorials for the candidates to solve the shared Java assignment. 1. SOLID Principles: https://www.baeldung.com/solid-principles 2. Creating Relational Database Schema: https://www.ntu.edu.sg/home/ehchua/programming/sql/Relational_Database_Design.html 3. Create Java 'Hello World!' Console Application: https://www.baeldung.com/java-hello-world
May 15, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here