Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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.

Java, Programming

  • Category:- Java
  • Reference No.:- M92406683
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Java

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As