SlideShare a Scribd company logo
CIS 407 Final Exam
FOR MORE CLASSES VISIT
www.cis407study.com
This Tutorial contains one Final Exam + a set of over 200 MCQ from
Chapter 14-16 (it Doesn’t contains Chapter 17 MCQ)
Sample Final Exam listed Below
To specify an italic font, you pass _________ to the constructor.
A _________ is a Component the user can click with a mouse to make
a selection.
Which of the following statements will correctly set a JFram named
my Frame to be visible ?
Which of the following statement will change the value displayed in a
JLabelmamehello ?
When constructing a Font object, which of the following argument is
NOT required ?
You define the text to be displayed in a tool tip by using the set
ToolTipText() method and passing an appropriate to it.
Which is the immmcdiateparcnt class of JTextFicld ?
The parent class for all event object is named_________,which
descends from the Object class.
Each JMcnu can contain, called JMcnultcms, or can contain
submcnus that are .
If you wanted to see the x coordinate of a user click, you would use the
method of the MouseEvent class.
The state of a JCheckBoxMenuItem or JRadioButtonMenuItem can
be determined with the________method.
Use the________ layout manager when you need to add components
that are displayed one at a time.
The JMcnus areabbcd to the JMcnuBar using the method.
The_________ method creates a solid are.
The _________ method provides information about the system in use.
You specify 2D colors by using the _______ method.
The drawRoundRect ()method requires _________argument.
You can instruct a Graphics object to use a font by inscrting the font
as the argument in a _________ method.
If you callgetGraphics() in a feame that is visible, you receive a(n) --
_________.
The tag that begins every HTML document is ________ .
YOU override the existing empty________method only if you want to
take some action when a JApplet longer visible.
The _____ method is used to load an Image into the named Image in
the applet .
If you want to place an image on a button, it is simplest to the______
class.
With an applet, the browser can call __________ different methods
automatically at different times.
You can run an applet in a ---______.
==============================================
CIS 407 Midterm Exam (All Possible Questions)
FOR MORE CLASSES VISIT
www.cis407study.com
This Tutorial contains a set of over 300 MCQ from Chapter 10-13
Sample Questions are listed Below
CIS 407 Midterm Exam
When you employ____,your data can be altered only by the methods
you choose and only in ways that you can control.
Conventionally , arrows used in a____ to show inheritance
relationships extend form the descendant class and point to the from
which it descends.
Which of the following statements depicts the valid format to call a
superclass construcfor form a subclass constructor?
The class used as a basis for inheritance is the _class.
Usually, the subclass constructor only needs to initialize the___, that
are specific to the subclass.
6) You use the keyword to achieve inheritance in java.
7) ___ method is useful in debugging a program because it can be
used to display and examine values.
8) If java did not allow you to ___ classes, you would need to
create every part of a program from scratch.
9) When a class both extends and implements, by convention the
clause is layst in the class header.
10) When you define a class, if you do not explicitly extend another
class, your class in an extension of the ___class.
11) If you attempt to instantiate an object from an abstract class,
you receive an error message from the compiler that you have
committed a(n)___.
12) ___Compress the data they store, Which reduces the size of
archived class files.Selected Answer:
13) In the case where a method might throw more than one
exception type, you specify a list of potential exceptions in the method
header by separating them with___.
14) When you use a(n)___ statement, you state a condition that
should be true, and Jave throws an Assertion Error when it is not.
15) ___ statements are program statements that can never execute
under any circumstance. Selected Answer:
16) In order to use a variable both with a try or catch block and
afterward, you must declare the variable before the __ block begins.
17) If a method throws an exception that it will not catch but that
will be caught by a different method, you must also use the keyword
___ followed by an Exception type in the method header.
18) The___ class represents more serious errors form which your
program usually cannot recover. Selected Answer:
19) When you have actions you must perform at the end of a try
catch sequence, you can use a ___ block.
20) A ___ is a group of characters that has some meaning.
21) After you creagte a File System object, you can define a Path
using the ___ method with it. Selected Answer:
22) You can create a writeable file by using the Files class ___
method.
23) The___method returns the Path element in a list of pathnames.
Selected Answer:
24) An array of bytes can be wrapped, o encompassed, into a
ByteBuffer using the Byte Buffer__methoud.
25) Any of the file input or output methods in a Java program
might throw an exception, so all the relevant code in the class is placed
in a ___ block.
==============================================
CIS 407 Week 1 lab 1
FOR MORE CLASSES VISIT
www.cis407study.com
Week 1 Lab 1: Exercise 1 on page 539
==============================================
CIS 407 Week 1 lab 2
FOR MORE CLASSES VISIT
www.cis407study.com
Week 1 Lab 2: Exercise 8 on page 541
==============================================
CIS 407 Week 2 Lab 3
FOR MORE CLASSES VISIT
www.cis407study.com
Week 2 Lab 3: Exercise 9 on page 597
==============================================
CIS 407 Week 2 Lab 4
FOR MORE CLASSES VISIT
www.cis407study.com
Week 2 Lab 4: Exercise 13 on page 598
==============================================
CIS 407 Week 3 Lab 5
FOR MORE CLASSES VISIT
www.cis407study.com
Week 3 Lab 5 Exercise 4 on page 667
==============================================
CIS 407 Week 3 Lab 6
FOR MORE CLASSES VISIT
www.cis407study.com
Week 3 Lab 6 Exercise 8 on page 668
==============================================
CIS 407 Week 4 Lab 7
FOR MORE CLASSES VISIT
www.cis407study.com
Week 4 Lab 7
==============================================
CIS 407 Week 4 Lab8
FOR MORE CLASSES VISIT
www.cis407study.com
Week 4 Lab8 Exercise 5 Part b
==============================================
CIS 407 Week 6 Assignment 1 Insurance Agent App Part 1
FOR MORE CLASSES VISIT
www.cis407study.com
Assignment 1: Insurance Agent App: Part 1
Due Week 6 and worth 180 points
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.
ThePropertyInsurance, AutomobileInsurance, ,andTravelInsurance
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 astatic 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 staticquote for all the insurances taken by the household.
InsuranceAgentApp(String)is the constructor that takes the type
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 constructorPropertyInsurance(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 constructorAutomobileInsurance(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 staticRATE is
the % used to calculates the annual premium.
The constructorTravelInsurance(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 (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 abstractInsuranceAgentApp
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 tohttp://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:
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.
==============================================
CIS 407 Week 7 Lab 9
FOR MORE CLASSES VISIT
www.cis407study.com
Week 7 Lab 9 Exercise 1 Page 936
==============================================
CIS 407 Week 7 Lab 10
FOR MORE CLASSES VISIT
www.cis407study.com
Week 7 Lab 10 Exercise 3 pg.937
==============================================
CIS 407 Week 8 Case Study Bar Chart Java
FOR MORE CLASSES VISIT
www.cis407study.com
Case Study: Bar Chart Java
Due Week 8 and worth 100 points
Read the article titled, “Teaching software componentization: A bar
chart Java bean,” located in the online course shell.
(http://libdatab.strayer.edu/login?url=http://search.ebscohost.com/logi
n.aspx?direct=true&db=bth&AN=58034299&site=eds-
live&scope=site)
Write a two to four (2-4) page paper in which you:
Summarize the main points of the article.
Describe one (1) way in which one could apply Java graphics in
education. Provide one (1) example of such use to support your
response.
Analyze at least three (3) commands that you would use in order to
draw a bar chart. Provide a rationale for your response.
Suggest one (1) way in which you would use to modify a bar chart in
order to update it for new information. Justify your response.
Your assignment must follow these formatting requirements:
Be typed, double spaced, using Times New Roman font (size 12), with
one-inch margins on all sides; citations and references must follow
APA or school-specific format. Check with your professor for any
additional instructions.
Include a cover page containing the title of the assignment, the
student’s name, the professor’s name, the course title, and the date.
The cover page and the reference page are not included in the
required assignment page length.
The specific course learning outcomes associated with this assignment
are:
Analyze the methods used to implement graphics in Java programs.
Use technology and information resources to research issues in Java
programing.
Write clearly and concisely about Java programing using proper
writing mechanics and technical style conventions.
==============================================
CIS 407 Week 10 Assignment 2 Insurance Agent App Part 2
FOR MORE CLASSES VISIT
www.cis407study.com
Assignment 2: Insurance Agent App: Part 2
Due Week 10 and worth 180 points
This assignment consists of two (2) sections:
Java program file(s)
A screenshot of the execution and source code of your Java program
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.
This assignment is a modification of Assignment 1. The main
difference is that instead of using the System.in.* andSystem.out.*
methods, your will be using the JOptionPane class for all the inputs /
outputs.
Section 1: Java Program File(s)
Modify the Java program that you created from Assignment 1.
According to your design, the program must:
Use the JOptionPane class to create a driver program to test your
Assignment 1 InsuranceAgentAppJavaapplication.
Display a new driver test program’s user interface (The interface
should look like the image shown below):
The new driver test program’s user interface from Question 1b must:
Include a loop to display the user interface until the user clicks the
Quit button.
Instantiate a PropertyInsurance object and use
theJOptionPane.showInputDialog() method to capture the type and
riskAmount when the user clicks theProperty button.
Instantiate an AutomobileInsurance object and use the
JOptionPane.showInputDialog() method to capture the type and
riskAmount when the user clicks the Automobile button.
Instantiate a TravelInsurance object and use
theJOptionPane.showInputDialog() method to capture the type and
riskAmount when the user clicks theTravel button.
Display the quote (totalPremium in theInsuranceAgentApp class)
when the user clicks the “Get a Quote” button.
End when the user clicks the “Quit” button.
Section 2: Screenshot of the Execution of the Implementation
Create a screenshot of the execution and include a copy of source code
of the implementation.
Create a screenshot of the execution 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 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:
Compare and contrast abstract and concrete data types.
Apply the Java concepts of file input / output.
Design programs that handle events from user-interface components.
Use technology and information resources to research issues in Java
programingtions.
==============================================

More Related Content

PPT
Chapter 7 - Defining Your Own Classes - Part II
PPT
Chapter 4 - Defining Your Own Classes - Part I
DOCX
TY.BSc.IT Java QB U2
PPTX
Icom4015 lecture14-f16
PPTX
Icom4015 lecture10-f16
DOC
Advanced core java
Chapter 7 - Defining Your Own Classes - Part II
Chapter 4 - Defining Your Own Classes - Part I
TY.BSc.IT Java QB U2
Icom4015 lecture14-f16
Icom4015 lecture10-f16
Advanced core java

What's hot (20)

PPT
Java class
PPT
Java căn bản - Chapter2
PPT
Java căn bản - Chapter7
PPTX
Advanced Programming Lecture 6 Fall 2016
DOC
Delphi qa
PPTX
Structural pattern 3
PDF
27418524 design-patterns-dot-net-with-examples
PDF
Creational Design Patterns
PDF
PPT
Strategy Design Pattern
PDF
Junit tutorial
PPTX
Java swing
PDF
PDF ON JAVA - JFC CONCEPT
PDF
Constructors and destructors
PPTX
Java swing and events
DOC
PDF
PDF
Intro to iOS Development • Made by Many
DOCX
Object Oriented Programming in Android Studio
PDF
IRJET- Implementation and Unittests of AWS, Google Storage (Cloud) and Am...
Java class
Java căn bản - Chapter2
Java căn bản - Chapter7
Advanced Programming Lecture 6 Fall 2016
Delphi qa
Structural pattern 3
27418524 design-patterns-dot-net-with-examples
Creational Design Patterns
Strategy Design Pattern
Junit tutorial
Java swing
PDF ON JAVA - JFC CONCEPT
Constructors and destructors
Java swing and events
Intro to iOS Development • Made by Many
Object Oriented Programming in Android Studio
IRJET- Implementation and Unittests of AWS, Google Storage (Cloud) and Am...
Ad

Similar to CIS 407 STUDY Inspiring Innovation--cis407study.com (20)

PDF
CIS 407 STUDY Education Planning--cis407study.com
PPTX
OCA_1Z0-808_Module00_Introduction_Java.pptx
TXT
CORE JAVA
PPT
PDF
Test Bank for Java Software Solutions, 9th Edition John Lewis
PDF
ITI COPA Java MCQ important Questions and Answers
DOCX
Mcs 024 assignment solution (2020-21)
PDF
Java MCQ Important Questions and Answers
DOC
Java questions1
DOC
Java interview questions
PPTX
Java se7 features
PPTX
Selenium Training .pptx
DOC
MX Server is my friend
DOC
MX Server is my friend
DOC
MX Server is my friend
DOC
MX Server is my friend
DOCX
CIS 406 Inspiring Innovation/tutorialrank.com
DOC
Comp 328 final guide (devry)
DOC
Comp 328 final guide (devry)
DOC
13: What do the following statements do?
CIS 407 STUDY Education Planning--cis407study.com
OCA_1Z0-808_Module00_Introduction_Java.pptx
CORE JAVA
Test Bank for Java Software Solutions, 9th Edition John Lewis
ITI COPA Java MCQ important Questions and Answers
Mcs 024 assignment solution (2020-21)
Java MCQ Important Questions and Answers
Java questions1
Java interview questions
Java se7 features
Selenium Training .pptx
MX Server is my friend
MX Server is my friend
MX Server is my friend
MX Server is my friend
CIS 406 Inspiring Innovation/tutorialrank.com
Comp 328 final guide (devry)
Comp 328 final guide (devry)
13: What do the following statements do?
Ad

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
IGGE1 Understanding the Self1234567891011
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Lesson notes of climatology university.
UNIT III MENTAL HEALTH NURSING ASSESSMENT
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Indian roads congress 037 - 2012 Flexible pavement
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Digestion and Absorption of Carbohydrates, Proteina and Fats
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Orientation - ARALprogram of Deped to the Parents.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
History, Philosophy and sociology of education (1).pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
IGGE1 Understanding the Self1234567891011
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Unit 4 Skeletal System.ppt.pptxopresentatiom
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf

CIS 407 STUDY Inspiring Innovation--cis407study.com

  • 1. CIS 407 Final Exam FOR MORE CLASSES VISIT www.cis407study.com This Tutorial contains one Final Exam + a set of over 200 MCQ from Chapter 14-16 (it Doesn’t contains Chapter 17 MCQ) Sample Final Exam listed Below To specify an italic font, you pass _________ to the constructor. A _________ is a Component the user can click with a mouse to make a selection. Which of the following statements will correctly set a JFram named my Frame to be visible ?
  • 2. Which of the following statement will change the value displayed in a JLabelmamehello ? When constructing a Font object, which of the following argument is NOT required ? You define the text to be displayed in a tool tip by using the set ToolTipText() method and passing an appropriate to it. Which is the immmcdiateparcnt class of JTextFicld ? The parent class for all event object is named_________,which descends from the Object class. Each JMcnu can contain, called JMcnultcms, or can contain submcnus that are .
  • 3. If you wanted to see the x coordinate of a user click, you would use the method of the MouseEvent class. The state of a JCheckBoxMenuItem or JRadioButtonMenuItem can be determined with the________method. Use the________ layout manager when you need to add components that are displayed one at a time. The JMcnus areabbcd to the JMcnuBar using the method. The_________ method creates a solid are. The _________ method provides information about the system in use.
  • 4. You specify 2D colors by using the _______ method. The drawRoundRect ()method requires _________argument. You can instruct a Graphics object to use a font by inscrting the font as the argument in a _________ method. If you callgetGraphics() in a feame that is visible, you receive a(n) -- _________. The tag that begins every HTML document is ________ .
  • 5. YOU override the existing empty________method only if you want to take some action when a JApplet longer visible. The _____ method is used to load an Image into the named Image in the applet . If you want to place an image on a button, it is simplest to the______ class. With an applet, the browser can call __________ different methods automatically at different times. You can run an applet in a ---______. ============================================== CIS 407 Midterm Exam (All Possible Questions) FOR MORE CLASSES VISIT www.cis407study.com
  • 6. This Tutorial contains a set of over 300 MCQ from Chapter 10-13 Sample Questions are listed Below CIS 407 Midterm Exam When you employ____,your data can be altered only by the methods you choose and only in ways that you can control. Conventionally , arrows used in a____ to show inheritance relationships extend form the descendant class and point to the from which it descends. Which of the following statements depicts the valid format to call a superclass construcfor form a subclass constructor? The class used as a basis for inheritance is the _class. Usually, the subclass constructor only needs to initialize the___, that are specific to the subclass.
  • 7. 6) You use the keyword to achieve inheritance in java. 7) ___ method is useful in debugging a program because it can be used to display and examine values. 8) If java did not allow you to ___ classes, you would need to create every part of a program from scratch. 9) When a class both extends and implements, by convention the clause is layst in the class header. 10) When you define a class, if you do not explicitly extend another class, your class in an extension of the ___class. 11) If you attempt to instantiate an object from an abstract class, you receive an error message from the compiler that you have committed a(n)___. 12) ___Compress the data they store, Which reduces the size of archived class files.Selected Answer:
  • 8. 13) In the case where a method might throw more than one exception type, you specify a list of potential exceptions in the method header by separating them with___. 14) When you use a(n)___ statement, you state a condition that should be true, and Jave throws an Assertion Error when it is not. 15) ___ statements are program statements that can never execute under any circumstance. Selected Answer: 16) In order to use a variable both with a try or catch block and afterward, you must declare the variable before the __ block begins. 17) If a method throws an exception that it will not catch but that will be caught by a different method, you must also use the keyword ___ followed by an Exception type in the method header. 18) The___ class represents more serious errors form which your program usually cannot recover. Selected Answer: 19) When you have actions you must perform at the end of a try catch sequence, you can use a ___ block. 20) A ___ is a group of characters that has some meaning.
  • 9. 21) After you creagte a File System object, you can define a Path using the ___ method with it. Selected Answer: 22) You can create a writeable file by using the Files class ___ method. 23) The___method returns the Path element in a list of pathnames. Selected Answer: 24) An array of bytes can be wrapped, o encompassed, into a ByteBuffer using the Byte Buffer__methoud. 25) Any of the file input or output methods in a Java program might throw an exception, so all the relevant code in the class is placed in a ___ block. ============================================== CIS 407 Week 1 lab 1 FOR MORE CLASSES VISIT www.cis407study.com
  • 10. Week 1 Lab 1: Exercise 1 on page 539 ============================================== CIS 407 Week 1 lab 2 FOR MORE CLASSES VISIT www.cis407study.com Week 1 Lab 2: Exercise 8 on page 541 ============================================== CIS 407 Week 2 Lab 3 FOR MORE CLASSES VISIT www.cis407study.com Week 2 Lab 3: Exercise 9 on page 597 ==============================================
  • 11. CIS 407 Week 2 Lab 4 FOR MORE CLASSES VISIT www.cis407study.com Week 2 Lab 4: Exercise 13 on page 598 ============================================== CIS 407 Week 3 Lab 5 FOR MORE CLASSES VISIT www.cis407study.com Week 3 Lab 5 Exercise 4 on page 667 ============================================== CIS 407 Week 3 Lab 6
  • 12. FOR MORE CLASSES VISIT www.cis407study.com Week 3 Lab 6 Exercise 8 on page 668 ============================================== CIS 407 Week 4 Lab 7 FOR MORE CLASSES VISIT www.cis407study.com Week 4 Lab 7 ============================================== CIS 407 Week 4 Lab8 FOR MORE CLASSES VISIT
  • 13. www.cis407study.com Week 4 Lab8 Exercise 5 Part b ============================================== CIS 407 Week 6 Assignment 1 Insurance Agent App Part 1 FOR MORE CLASSES VISIT www.cis407study.com Assignment 1: Insurance Agent App: Part 1 Due Week 6 and worth 180 points 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.
  • 14. 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. ThePropertyInsurance, AutomobileInsurance, ,andTravelInsurance 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 astatic 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 staticquote for all the insurances taken by the household.
  • 15. InsuranceAgentApp(String)is the constructor that takes the type 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 constructorPropertyInsurance(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 constructorAutomobileInsurance(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 staticRATE is the % used to calculates the annual premium. The constructorTravelInsurance(String)takes a string which indicates the insurance type (e.g. “Travel”).
  • 16. 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 (4) Java classes described with the correct inheritance of abstract classes.
  • 17. 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 abstractInsuranceAgentApp 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 tohttp://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:
  • 18. 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. ============================================== CIS 407 Week 7 Lab 9 FOR MORE CLASSES VISIT
  • 19. www.cis407study.com Week 7 Lab 9 Exercise 1 Page 936 ============================================== CIS 407 Week 7 Lab 10 FOR MORE CLASSES VISIT www.cis407study.com Week 7 Lab 10 Exercise 3 pg.937 ============================================== CIS 407 Week 8 Case Study Bar Chart Java FOR MORE CLASSES VISIT www.cis407study.com
  • 20. Case Study: Bar Chart Java Due Week 8 and worth 100 points Read the article titled, “Teaching software componentization: A bar chart Java bean,” located in the online course shell. (http://libdatab.strayer.edu/login?url=http://search.ebscohost.com/logi n.aspx?direct=true&db=bth&AN=58034299&site=eds- live&scope=site) Write a two to four (2-4) page paper in which you: Summarize the main points of the article. Describe one (1) way in which one could apply Java graphics in education. Provide one (1) example of such use to support your response. Analyze at least three (3) commands that you would use in order to draw a bar chart. Provide a rationale for your response.
  • 21. Suggest one (1) way in which you would use to modify a bar chart in order to update it for new information. Justify your response. Your assignment must follow these formatting requirements: Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions. Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length. The specific course learning outcomes associated with this assignment are: Analyze the methods used to implement graphics in Java programs. Use technology and information resources to research issues in Java programing. Write clearly and concisely about Java programing using proper writing mechanics and technical style conventions.
  • 22. ============================================== CIS 407 Week 10 Assignment 2 Insurance Agent App Part 2 FOR MORE CLASSES VISIT www.cis407study.com Assignment 2: Insurance Agent App: Part 2 Due Week 10 and worth 180 points This assignment consists of two (2) sections: Java program file(s) A screenshot of the execution and source code of your Java program 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. This assignment is a modification of Assignment 1. The main difference is that instead of using the System.in.* andSystem.out.*
  • 23. methods, your will be using the JOptionPane class for all the inputs / outputs. Section 1: Java Program File(s) Modify the Java program that you created from Assignment 1. According to your design, the program must: Use the JOptionPane class to create a driver program to test your Assignment 1 InsuranceAgentAppJavaapplication. Display a new driver test program’s user interface (The interface should look like the image shown below): The new driver test program’s user interface from Question 1b must: Include a loop to display the user interface until the user clicks the Quit button. Instantiate a PropertyInsurance object and use theJOptionPane.showInputDialog() method to capture the type and riskAmount when the user clicks theProperty button. Instantiate an AutomobileInsurance object and use the JOptionPane.showInputDialog() method to capture the type and riskAmount when the user clicks the Automobile button. Instantiate a TravelInsurance object and use theJOptionPane.showInputDialog() method to capture the type and riskAmount when the user clicks theTravel button. Display the quote (totalPremium in theInsuranceAgentApp class) when the user clicks the “Get a Quote” button.
  • 24. End when the user clicks the “Quit” button. Section 2: Screenshot of the Execution of the Implementation Create a screenshot of the execution and include a copy of source code of the implementation. Create a screenshot of the execution 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 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: Compare and contrast abstract and concrete data types.
  • 25. Apply the Java concepts of file input / output. Design programs that handle events from user-interface components. Use technology and information resources to research issues in Java programingtions. ==============================================