Create an interactive java application for insurance agent

Assignment Help JAVA Programming
Reference no: EM131062469

Assignment: Insurance Agent App: Part 1

This assignment consists of two sections:

• A Java program file
• 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 theInsuranceAgentApp abstract 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(), anddisplay() 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(), anddisplay() 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(), anddisplay() 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(), anddisplay() 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 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.

Reference no: EM131062469

Questions Cloud

Determine the longitudinal normal strain : The deflection at the midpoint of the strip (measured from a line joining its end points) is found to be 0.20 in. Determine the longitudinal normal strain ε at the top surface of the strip.
Uncharged conducting object without touching : We know that charged objects with the same sign repel each other and objects charged with opposite signs attract. What happens when a charged insulating object is brought near an uncharged conducting object without touching it?
Tortoise have gone relative to the sloth : The three-toed sloth is the slowest moving land mammal. Assume that on the ground the sloth moves at an average speed of 0.0130 m/s, considerably slower than the giant tortoise, which walks at 0.0166 m/s. After 11 minutes of walking, how much furt..
What about the design made the team successful : How was the team created or built? What about the design made the team successful?
Create an interactive java application for insurance agent : Create an interactive Java application for insurance agent in order to generate a quote for a household. According to your design, the program must: Implement all the four Java classes described with the correct inheritance of abstract classes.
What is the maximum bending stress in the beam : The horizontal beam ABC of an oil-well pump has the cross section shown in the figure. If the vertical pumping force acting at end C is 9 k and if the distance from the line of action of that force to point B is 16 ft, what is the maximum bending ..
Define nuclear fusion : Define nuclear fusion and explain it with the help of the Binding Energy per Nucleon. Why would not this reaction happened naturally on Earth?
Nuclear reactor and an atomic bomb : Define nuclear fission and explain it with the help of the Binding Energy per Nucleon. What is the difference between the nuclear fission from a nuclear reactor and an atomic bomb?
Discuss key points about the function : Discuss key points about the function and Describe how employment works in coordination with the other functions of human resources.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Define a simple interface named motorized with one method

question 1 define a simple interface named motorized with one method maxspeed which returns the maximum attainable

  Write the code1 one argument used to justify the fact that

write the code1. one argument used to justify the fact that the stack data structure in the standard library does not

  Outline a test plan for a substantial real-life system

Describe how you would approach the design and testing process to ensure success and quality in the result and where are the risks? How are you going to address them?

  Implement/update specific methods for the dfs of a graph

implement/update specific methods for the DFS of a graph; for at least 2 graphs (1 being the provided one), show the DFS order of vertices in the graph, and for each node,

  Java program that asks the user for 100 values

Write a Java program that asks the user for 100 values (or generates these randomly) and stores and displays only the distinct values. Hint: use an array to store and display these values.

  Design and implement a java program that will gather info

Design and implement a Java program that will gather a user's first name, middle initial, lastname, age in years, and 3 lucky numbers. The program should output the following based on the user's input

  Modify the factorial method with a recursive call

You may want to add such display capabilities to other recursion examples and exercises throughout the text.

  Temporarily move to the street so that the

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave

  Generate and manipulate music and images

Arrays are a fundamental and versatile tool for representing data of all shapes and sizes In this assignment, you'll see how arrays can be applied to generate and manipulate music and images.

  Which class provides prebuilt dialog boxes

Which class provides prebuilt dialog boxes that enable programs to display windows containing messages (such windows are called message dialogs)

  Complete the method definitions in linkedqueue.java

Complete the method definitions in LinkedQueue.java. Some things to think about- In enqueue() and dequeue() you have to maintain both the front and back pointers - this takes a little thought. In particular, in enqueue be careful of the case where..

  Write a program which randomly chooses an integer

Write a program which randomly chooses an integer from 1 to 100. The program should then tell the user.The program should then ask the user to complete the puzzle such that each row and each column consists of the letters

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