Create interactive java application for the insurance agent

Assignment Help JAVA Programming
Reference no: EM131597970

Assignment 1: Insurance Agent App: Part 1
A screenshot of the driver testing and source code of the implementation
Label each file name according to the section of the assignment for which it is written. Put both sections together in a single zip file, and submit the file.
It is a common knowledge that most households, for protection against their major perils, take out insurance on their property, automobiles, travel, and so on. Insurance premiums are often paid on a monthly basis. In this assignment, you will build an interactive Java application that will help an insurance agent generate a quote for a household. Assume that the household wants to purchase property insurance, automobile insurance, and travel insurance. The Java application must generate a quote when the agent runs the application.
The application must contain four (4) Java classes that are stated and shown in the diagram below.

The InsuranceAgent App class is an abstract class. The PropertyInsurance, AutomobileInsurance, and TravelInsurance classes inherit from the InsuranceAgentAppabstract class.
The specifications of each class are described below. The column on the left shows the class members and the column on the right provides a description of the class members. The 'S' designates a static member; the 'C' designates a constructor; and the 'A' designates an abstract member. The data types of each class member are shown on the left column.
Class Members and Their Properties
Member's Description
· type is the type of insurance (e.g. "Property").
· Name is the name of the insured object (e.g. "Home"); totalPremium is the static quote for all the insurances taken by the household.
· InsuranceAgentApp(String) is the constructor that takes the type value.
· three get methods for the three variables.
· InsuranceAgentApp() is the empty constructor; setInsuredObjectName(), setRiskAmount(), and display() are abstract methods.
· riskAmount is the value of the Property being insured.
· the static RATE is the % used to calculates the annual premium.
· The constructor PropertyInsurance(String) takes a string which indicates the insurance type (e.g. "Property").
· the three get methods return values of the three variables.
· setInsuredObjectName(), setRiskAmount(), and display() are implementations of the abstract methods.
· riskAmount is the value of the Automobile being insured.
· the static RATE is the % used to calculates the annual premium.
· The constructor AutomobileInsurance(String)takes a string which indicates the insurance type (e.g. "Automobile").
· the three get methods return values of the three variables.
· setInsuredObjectName(), setRiskAmount(), and display() are implementations of the abstract methods.
· riskAmount is the value of the flight being insured; the static RATE is the % used to calculates the annual premium.
· The constructor TravelInsurance(String) takes a string which indicates the insurance type (e.g. "Travel").
· the three get methods return values of the three variables.
· setInsuredObjectName(), setRiskAmount(), and display() are implementations of the abstract methods.
The RATEs used to calculate the premiums are:
PropertyInsurance
AutomobileInsurance
TravelInsurance
0.25%
0.75%
0.73%

Section 1: Java Program File
Create an interactive Java application for the insurance agent in order to generate a quote for a household. According to your design, the program must:
Implement all the four (4) Java classes described with the correct inheritance of abstract classes.
Calculate the premium and multiply the value of the object being insured by the corresponding RATE. Note: See the RATE tables above.
Get a quote and add all the premiums for all the objects being insured.
Include a driver problem to test the implementation in which it:
- Uses the System.out.* and System.in.* methods for all the input / output.
- Includes an object of each insurance type. Prompts the user to enter the type and riskAmount (or value of the object being insured).
- Displays the values in each of the objects created using the display() method.
- Displays the quote (totalPremium in the abstract InsuranceAgentApp class).
Section 2: Screenshot of the Driver Testing and Source Code of the Implementation
Create a screenshot of the driver testing and include a copy of source code of the implementation.
Submit a screenshot of the driver testing of the implementation of your Java program. Note: Click here if you need a tutorial on taking a screenshot.
Submit a copy of the source code of the implementation.
Section 1 and Section 2 will be graded based on the following:
The program must compile, execute, produce correct results, and meet all of the specifications stated in Section 1. Additionally, you must:
Organize the code for user readability.
Organize the code for reusability.
Organize the code for efficiency.
Provide documentation with embedded comments for reader understanding.
The specific course learning outcomes associated with this assignment are:
Discuss the concepts of inheritance and polymorphism.
Compare and contrast abstract and concrete data types.
Apply the Java concepts of file input / output.
Use technology and information resources to research issues in Java programing.

Reference no: EM131597970

Questions Cloud

Write a program that draws a diamond shape : Write a program that draws a diamond shape according to the number you read as seen below. The program will readone int value (lineCount).
Average beta of the new stocks added to the portfolio : What should be the average beta of the new stocks added to the portfolio?
Discuss what factors and risks may affect the costs : Discuss what factors and risks may affect the costs? What are some of the strategies you can implement to reduce unexpected costs?
What will be the required return on your portfolio : what will be the required return on your $5.5 million portfolio?
Create interactive java application for the insurance agent : Create an interactive Java application for the insurance agent in order to generate a quote for a household - Calculate the premium and multiply the value
Developing vision and strategy process : Using the company that your instructor previously approved, apply Kotter's eight (8) steps of change management to an HR situation you have selected for change.
What is the standard deviation of the stock returns : What was the stock’s return for the missing year? What is the standard deviation of the stock’s returns?
Cross-exchange rate between the peso and the krone : What is the cross-exchange rate between the peso and the krone; that is, how many pesos would you receive for every krone exchanged?
What is the company debt-equity ratio : Fama’s Llamas has a weighted average cost of capital of 10.8 percent. What is the company's debt-equity ratio?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd