Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you please explain how do i do this assignment please I dont know how to do this assignment please explain. Directions for completing and

image text in transcribed
image text in transcribed
can you please explain how do i do this assignment please
I dont know how to do this assignment please explain.
Directions for completing and submitting the homework: . You may use a word processor such as Microsoft Word to complete the homework assignments. Create a single document for the assignment. Name the document using your last name, first initial, and the homework number, i.e. SmithJ_HW2.docx. Word processing documents must be saved using Microsoft Word format. You may also use a text editor such as Notepad++ to complete the homework assignments. Again, create a single document for the assignment. Name the document using your last name, first initial, and the homework number, i.e., SmithJ_HW2.txt. I would not suggest completing these assignments in Raptor. You may, however, create the UML class diagram in Raptor if you prefer it to ArgoUML When creating a UML class diagram in ArgoUML, open the file named ClassDiagramTemplate.zargo using the ArgoUML program. Immediately save the file using a different name by choosing File/Save Project As... Then use ArgoUML to draw the class diagram for the assignment. Attach the .zargo file to your submission. Assignments that are not submitted following the instructions above will NOT be accepted for grading. . . . Homework Assignment 1, Type the pseudocode needed to complete Chapter 6, Programming Exercise number 4-Maximum of Two Values in the text. This is either on page 263 or 265 depending on which edition of the text you are using. 2, The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a single class diagram showing the class, the application program, the relationship between the two, and multiplicity. Insert the completed class diagram into a Word document. Then write the pseudocode as described below. Be sure to follow the CTP 115 Style Criteria for naming conventions, class diagrams, pseudocode, keywords, and operators. 1. Create a PolicyHolder class that contains a policy number, customer age, and the number of accidents in which the driver has been involved in the last three years. Include the following: 1. A default constructor that initializes each attribute to some reasonable default value for a non-existent policyholder 2. Another constructor method that has a parameter for each data member, called the overloaded constructor. This constructor initializes each attribute to the value provided when an object of this type is instantiated. If the customer's age is not between 14 and 125 inclusive, then display an error message and set the 3. Accessor and mutator methods for each attribute. For the age mutator, if the customer's age is not between 14 to 0 and 125 inclusive, then set the age to O, since this is obviously an error 4. A method that displays all the data about a policy holder. 2. An application program that contains two modules: the main) module and the checkAccident) module. Include instructions in the main) module to do the following 1. Create and initialize a PolicyHolder object using the default constructor, naming it newPolicyHolder.c opriate methods to initializeall he data members for the newPolicy Holder object. choosing appropriate all the alize all the data members for the newPolicyHolder object, choosing appropriate values values for the attributes for each of the two PolicyHolder objects. method. The checkAccident) module must do the following: 2. Create and initialize 2 different PolicyHolder objects using the overloaded constructor. Choose appropriate 3. Call the checkAccident) method for each PolicyHolder object, so there will be 3 calls to the checkAccidento 1) Accept a PolicyHolder argument (i.e., it has a paramete r declared using PolicyHolder as the data type 2) Display all the data for any policy holder that is over 35 years old and has one accident or less

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

When does the Developmental Configuration start and end?

Answered: 1 week ago