Homework #1 - Software Methodology

UML Modeling

1. Draw a UML class diagram of a book, where a book is modeled as containing a number of parts, which contain a number of chapters. Chapters contain a number of sections. Elements of the book contain the following attributes:

Question adapted from Object-Oriented Software Engineering: Conquering Complex and Changing Systems, by Bernd Bruegge and Allen H. Dutoit, Prentice-Hall, 2000, page 60.

2. Draw a UML class diagram of a book, where a book is modeled as containing a cover, a binding, and a series of sheets of paper. Each sheet of paper holds one or two pages. Elements of the book contain the following attributes: