In: Computer Science
Instructions
Given the course project problem statement excerpts below, diagram the relationships using aggregation or composition:
Problem statement
Excerpt 1
The auditorium is made up of a number of seats arranged in a floor plan. There is only one floor plan for the auditorium. All possible seat locations are accounted for on this plan.
Excerpt 2
Pricing is done using a pricing plan. A pricing plan consists of a set of price tiers. Each price tier defines prices for one or more price types:, adult, senior, student, and child. The event planner may also add one or more discounts to the pricing plan to try to improve sales.
Class is a collection of objects.Classes are represented with rectangular symbol.Classes are connected with Relationships.Dependency , Association , Generalization are some of the relationships in the UML(Unified Modelling Language).
Dependency is represented by a dotted arrowhead (- - - - ->). The arrow head represents the independent element and the other end represents the dependent element.
Association reperesents how many Classes (objects) are participated in the relationship(which is called multiplicity) It can be represented by a dotted line or solid line with (without) arrows on both sides(<...................> or ). The two ends represent two associated elements .
Generalization describes the parent and child(inheritance) relationship.Generalization is represented by an arrow with a hollow arrowhead . Hollow end represents the parent element and the other end represents the child element.
In the diagram part 1( Expert 1) :Auditorium is associated with 1 Floor plan (has relation) Floor plan associated with * seats(more no. of seats) .Every seat has Seat locations. If the Seat changes seat location also changes thtas why seat loaction is dependent on seats class.
In the part 2 (Expert 2) : If the seat location changes prices will also changes. so the relation between seat location and prices is dependency.
Pricing(prices) is dependent on pricing plan.If the pricing plan changes prices also changes.Every pricing plan has one or more pricing tiers. Each pricing tier has one or more pricing types. Each pricing type is generalised as Adult, senior, student and child.
Discounts are added to the pricing plans. Discounts may vary based on the Pricing plan that have been choosen.Change in Discounts also changes the Prices.