Calculate the premium and multiply the value of the object

Assignment Help JAVA Programming
Reference no: EM131299782

Assignment

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.

Insurance Agent App Diagram

The InsuranceAgent App class is an abstract class. The PropertyInsurance, AutomobileInsurance, and TravelInsurance classes inherit from the InsuranceAgentApp 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.

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).

Reference no: EM131299782

Questions Cloud

What do you think is the main point of this video clip : Go to one of the Web sites that contain video clips (such as www.youtube.com) and view some video clips about estate planning. You can use search phrases such as "tips on estate planning." Select one video clip on this topic that you would recomme..
Discuss the trends revealed in each ratio : Report each ratio value as well as the numerator and denominator of each of the 4 ratios for the past 3 years (12 ratios in total). Discuss the trends revealed in each ratio.
University campus with one main campus : Answer the following questions if you were creating a network infrastructure for: 1. A university campus with one main campus 2. A large metropolitan area network 3. A corporate campus with multiple sites across the globe
What is your view on estate planning : Read one practical article about how psychology affects estate planning decisions. You can easily retrieve possible articles by doing an online search using the terms "psychology" and "estate planning." Summarize the main points of the article.
Calculate the premium and multiply the value of the object : 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.
How much are dave’s cash flows reduced over the coming year : Assuming that Dave's marginal tax bracket is 25%, by how much should his federal taxes decline this year if he contributes $7,000 to his retirement account?
Frame definition file : Find a Web site that uses frames and view the source code that underlies the site to see the frame definition file. Include a link, screenshot and the code in your submission.
Does managements assessment of the financial condition : Does management's assessment of the financial condition agree with your assessment from the Financial Statements Paper Part I? Explain your response. Support your answer using trend analysis, vertical analysis, or ratio analysis.
How many dollar worth in 5 years time : A five year discount factor is $0.801. If interest rate is 10%.- How many dollar is the $0.801 worth in 5 years time if invested at 10%?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Briefly explain the code in sort inventory

Draw a UML diagram of the Shoe class using the code that has been provided - Briefly explain the code in sort Inventory. What is the inventory being sorted by? What is the sort algorithm that is being used. Explain in words how it works. Why do you..

  Exception handling

Write a java program to Facilitates keyboard input by abstracting details about input parsing, conversions, and exception handling.

  Function searches all files specified on the command line

Write a program Find that searches all files specified on the command line and prints out all lines containing a reserved word. For example, if you call java Find ring report.txt address.txt Homework.java, then the program might print:

  Implement savings account using locks and conditions

A savings account object holds a non-negative balance - Use a shared counter protected by test-and-test-and-set lock. Each thread locks the counter, increments it, releases the lock, and repeatedly reads the counter until it reaches n.

  Write a java code to count number of capital letters in line

Write a java codenpseudo-code to count the number of capital letters in a line of text. How many comparisons does it do? What is the fewestnumber of increments it might do? What is the largest number?

  Create a program using a gui interface

In your lab5 folder, compile the file that is a starting point for this assignment. The listing and image of this Java class is on the bottom of this lab description. You can create the programs by cutting and pasting.

  Your taskbullthe auction system should allow the user to

your taskbullthe auction system should allow the user to participate in a number of items and for the user to be able

  Java program to ask user to enter favorite color

Write a Java program to ask the user to enter favorite color, a favorite food, favorite animal, and first name of a friend or relative.

  Determine the precise big-oh values

Determine the precise Big-Oh values for each of the following code samples, based on the number of statement executions - Remember to consider each statement in compound statements separately.

  For the given scenario identify various classes

Scenario: Universal Bank offers various services to its customers. The bank has various branches all over the country and, therefore, each branch has a unique code. For the given scenario, you have to identify various classes and their attributes

  Design and implement the class day

Design and implement the class Day that implements the day of the week in a program. The class Day should store the day, such as Sun for Sunday

  Imagine that you have been assigned

Imagine that you have been assigned to implement a sorting program. The goal is to make this program general purpose, in that you don't want to define in advance what record or key types are used

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