Question

In: Computer Science

Model a book Draw a class diagram representing a book defined by the following statement: “A...

Model a book Draw a class diagram representing a book defined by the following statement: “A book is composed of a number of parts, which in turn are composed of a number of chapters. Chapters are composed of sections.” First, focus only on classes and associations.

Add multiplicity to the class diagram you produced.

Refine the class diagram to include the following attributes:

• Book includes a publisher, publication date, and an ISBN

• Part includes a title and a number

• Chapter includes a title, a number, and an abstract

• Section includes a title and a number

Consider the refined class diagram. Note that the Part, Chapter, and Section classes all include a title and a number attribute. Use inheritance to factor out these two attributes .

Solutions

Expert Solution

Rectangles are used for Class. Class Name should start from Capital letter and Name should be singular.

Diamond are the representation for Aggregation. * is used for Multiplicity. I have provided the Class diagram for each level for your understanding.

Level 1 is high level , when you have identified classes and their relationship.

Level 2 is refined version of level 1 where you have to show Attributes.

Level 3 is refined version of level 2 where you have to use inheritance for Title and Number attributes.

Please rate your answer. Thanks


Related Solutions

draw a uml diagram for a class
draw a uml diagram for a class
create the UML Diagram to model a Movie/TV viewing site. Draw a complete UML class diagram...
create the UML Diagram to model a Movie/TV viewing site. Draw a complete UML class diagram which shows: Classes (Only the ones listed in bold below) Attributes in classes (remember to indicate privacy level, and type) No need to write methods Relationships between classes (has is, is a, ...) Use a program like Lucid Cart and then upload your diagram. Each movie has: name, description, length, list of actors, list of prequals and sequals Each TV Show has: name, description,...
Draw a Lorenz curve diagram representing the cumulative share of income as a function of the...
Draw a Lorenz curve diagram representing the cumulative share of income as a function of the cumulative share of the population from the lowest to the highest individual income level. Explain how economic inequality using the Gini coefficient can be illustrated using this diagram. What would you expect the impact on inequality of the decrease in productivity to be? Illustrate using the Lorenz curve and explain.
Explain 5-Forces Model. Draw diagram to explain the model.
Explain 5-Forces Model. Draw diagram to explain the model.
Given the following UML class diagram, implement the class as described by the model. Use your...
Given the following UML class diagram, implement the class as described by the model. Use your best judgment when implementing the code inside of each method. +---------------------------------------------------+ | Polygon | +---------------------------------------------------+ | - side_count : int = 3 | | - side_length : double = 1.0 | +---------------------------------------------------+ | + Polygon() | | + Polygon(side_count : int) | | + Polygon(side_count : int, side_length : double) | | + getSides() : int | | + setSides(side_count : int) | |...
Draw a 5-year cash flow diagram representing the following cash flows to build springs: (Chapter 2)...
Draw a 5-year cash flow diagram representing the following cash flows to build springs: (Chapter 2) Initial investment in plant and equipment $30K Annual maintenance: $5K after year 1 and increasing $1K per year after that Annual production costs – $10K/year Annual revenue - $50K/year 2. A company plans to design and build transport vehicles for the Marine Corps. The cost for the design is $15M. The cost for the test prototype is $3M. The cost to produce and test...
Draw a diagram representing a spherical conductor in static equilibrium with an originally uniform electric field....
Draw a diagram representing a spherical conductor in static equilibrium with an originally uniform electric field. How does charge density depend on the curvature of an object? Explain one practical application. Calculate the electric field at one corner of a square 20 m on a side if the other three corners are occupied by 2.5 x 10-6 C charges.
1a. Construct (draw) an E-R diagram representing the conceptual design of the database. Be sure to...
1a. Construct (draw) an E-R diagram representing the conceptual design of the database. Be sure to identify primary keys, relationship cardinalities, etc. State any assumptions you make. 1b. Convert your E-R diagram to the relational schema. Identify the primary keys of ever relation. Consider the following application: An electronics vendor operates both a Web site and a chain of many physical stores. Examples include Best Buy and Circuit City. To find out more about this application, think about any experiences...
Draw a class diagram for a real estate firm that lists property for sale. The following...
Draw a class diagram for a real estate firm that lists property for sale. The following describes the organization: The firm has a number of sales offices in several states; location is an attribute of sales office. Each sales office is assigned one or more employees. Attributes of employee include employeeID and employeeName. An employee must be assigned to only one sales office. For each sales office, there is always one employee assigned to manage that office. An employee may...
Draw whole class diagram that represent Candy online shopping website. The class diagram should consist of...
Draw whole class diagram that represent Candy online shopping website. The class diagram should consist of following: 1) Inventory Management System 2) Delivery Management System 3) Production Management System 4) Order Management System 5) Payment Management System Note: The website offers special candy that with customer name.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT