Expert answer:Assignment 1: Insurance Agent App: Part 1

Solved by verified expert:Please take a look at attachment Thanks
20171022180343cis407_part_1.docx

Unformatted Attachment Preview

Assignment 1: Insurance Agent App: Part 1
This assignment consists of two (2) 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 InsuranceAgentApp 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 members 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:
o Uses the System.out.* and System.in.* methods for all the input / output.
o Includes an object of each insurance type. Prompts the user to enter the type and
riskAmount (or value of the object being insured).
o Displays the values in each of the objects created using the display() method.
o 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: Go
to http://www.take-a-screenshot.org/ 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:
1. The program must compile, execute, produce correct results, and meet all of the specifications
stated in Section 1.
Additionally you must:
2. Organize the code for user readability.
3. Organize the code for reusability.
4. Organize the code for efficiency.
5. 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.
Grading for this assignment will be based on the following rubric.
Points: 180
Criteria
Assignment 1: Insurance Agent App: Part 1
Unacceptable
Below 60% F
Meets
Minimum
Expectations
60-69% D
Fair
70-79% C
Proficient
80-89% B
Exemplary
90-100% A
1. Specifications
Weight: 60%
The program
does not compile.
The program
compiles but
does not
execute.
The program
compiles and
executes but
produces
incorrect
results.
The program
compiles,
executes, and
produces correct
results but does
not meet all of
the
specifications.
The program
compiles,
executes,
produces
correct results,
and meets all of
the
specifications.
2. Readability
Weight: 10%
The code is not
organized and
very difficult to
read.
The code is
poorly organized
and difficult to
read.
The code is
partially
organized but
readable only
by someone
who knows the
expected end
result.
The code is
organized and
easy to read.
The code is
exceptionally
organized and
very easy to
read.
3. Reusability and
object-oriented
programming
constructs
Weight: 10%
The code is not
organized for
reusability.
The code is
poorly organized
for reusability.
The code is
partially
organized and
some parts of
the code could
be reused in
other programs.
The code is
organized and
most of the code
could be reused
in other
programs.
The code is
exceptionally
organized and
could be
reused as a
whole or each
routine could
be reused.
4. Efficiency
Weight: 10%
The code is
unnecessarily
long and appears
to be patched
together.
The code is
unnecessarily
long.
The code is
fairly efficient
but sacrifices
readability and
understanding.
The code is
efficient without
sacrificing
readability and
understanding.
The code is
extremely
efficient without
sacrificing
readability and
understanding.
5. Documentation
Weight: 10%
No
documentation is
provided.
The
documentation
consists of
embedded
comments but
does not help
the reader
understand the
code.
The
documentation
consists of
embedded
comments and
some header
comments
separating
routines.
The
documentation
consists of
embedded
comments and
header
documentation
that is useful in
understanding
the code.
The
documentation
consists of
embedded
comments and
clearly explains
what the code
is
accomplishing
and how.

Purchase answer to see full
attachment

How it works

  1. Paste your instructions in the instructions box. You can also attach an instructions file
  2. Select the writer category, deadline, education level and review the instructions 
  3. Make a payment for the order to be assignment to a writer
  4.  Download the paper after the writer uploads it 

Will the writer plagiarize my essay?

You will get a plagiarism-free paper and you can get an originality report upon request.

Is this service safe?

All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 20% with the discount code ESSAYHELP