Question

In: Computer Science

Instructions Given the course project problem statement excerpts below, diagram the relationships using aggregation or composition:...

Instructions

Given the course project problem statement excerpts below, diagram the relationships using aggregation or composition:

  1. Identify the classes involved (leave the event planner out for now).
  2. Identify the associations between the classes.
  3. Draw the associations and apply the proper icon to represent either aggregation or composition.
  4. Assign multiplicity to each end of each association.
  5. Add constraints where needed to account for all the rules documented in the problem statement.


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.

Solutions

Expert Solution

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.


Related Solutions

InstructionsUsing the original course project problem statement (below),identify the nouns.Which nouns qualify as...
InstructionsUsing the original course project problem statement (below), identify the nouns.Which nouns qualify as problem domain classes?Answer the following:If the word does not represent a class, then explain why.If the word does represent a class, then provide a name for the class.Finally, for each class you found, describe the purpose of the class to explain why you think it is needed as a class for this problem domain.Hints: Remember that problem domain classes are used by the users whether or...
1. Use the data given in the table below to construct a temperature-composition diagram for cyclohexane...
1. Use the data given in the table below to construct a temperature-composition diagram for cyclohexane toluene mixture (see p. 134 in the textbook for an example of such plot). Based on your plot, what is the composition of the distillate obtained by simple distillation of 20 mole percent cyclohexane and 80 mole percent toluene? Show your work on the plot (submit your plot). T ⁰C Mol % Cyclohexane Liquid Mol % Cyclohexane Vapor 110.7 0 0 108.3 4.1 10.2...
Instructions: Using the following data, complete the requirements given below. When you are given amounts to...
Instructions: Using the following data, complete the requirements given below. When you are given amounts to assume as the answers to previous requirements, be careful to use such assumed amounts rather than your answers (in order to minimize carry-through errors). The Finishing Department of Curtis Corporation reports the following for January 2011: Production: All materials are added at the beginning of the process. Beginning work in process 20,000 units, 60% complete. Units started into production 240,000 units. Ending work in...
Proocess Costing Instructions: Using the following data, complete the requirements given below. When you are given...
Proocess Costing Instructions: Using the following data, complete the requirements given below. When you are given amounts to assume as the answers to previous requirements, be careful to use such assumed amounts rather than your answers (in order to minimize carry-through errors). The Finishing Department of Curtis Corporation reports the following for January 2011: Production: All materials are added at the beginning of the process. Beginning work in process 20,000 units, 60% complete. Units started into production 240,000 units. Ending...
Using the Below​ Data:                                                                                                              ​A: Prepare an Income Statement using the information given below. Make sure...
Using the Below​ Data:                                                                                                              ​A: Prepare an Income Statement using the information given below. Make sure to identify Gross​ Pofit, Operating​ Income, and Net Income. ​B: Calculate the​ P/E Ratio Inventories ​$ 50,000 Cost of Goods Sold ​$ 250,000 Administrative Expenses ​$ 50,000 Accumulated Depreciation ​$ 150,000 Sales ​$ 600,000 Depreciation Expense                 ​$ 25,000 Selling Expense ​$ 150,000 Common Stoock Dividends ​$ 8,000 Interest Expense ​$ 8,000 Corporate Tax Rate ​40% Cmmon Stock Shares ​100,000 Current Stock Market Price ​$...
Problem 2: Instructions: Prepare a statement of cash flows using the indirect method. The comparative balance...
Problem 2: Instructions: Prepare a statement of cash flows using the indirect method. The comparative balance sheet for the ZYX Company at December 31, 2019 and 2018 is as follows:                                                                                                                    12/31/19                          12/31/18                                   Assets: Cash                                                                                                          $146,600                          $179,800 Accounts Receivable                                                                                 224,600                           242,000 Merchandise Inventory                                                                             321,600                          299,200 Prepaid Expenses                                                                                          13,400                              9,600 Equipment                                                                                                    655,000                           537,000 Accumulated depreciation-equipment                                                  (170,800)                         (132,200)                            Total Assets                                                                     $1,190,400                     $1,135,400               Liabilities and Stockholders’ Equity Accounts payable (merchandise creditors)                                           $250,200                         $237,600 Mortgage note payable                                                                                       0                               336,000 Common Stock,...
Solve the given below problem and justify the statement, “When the degree of saturation of a...
Solve the given below problem and justify the statement, “When the degree of saturation of a soil sample is less than 100% then its water content also should be less than 100%” Problem: A soil sample has a diameter of 38 mm and a height of 76 mm. Its wet weight is 1.15 N. Upon drying its weight reduced to 0.5 N. In the wet state what was the degree of saturation and water content of the soil sample. Take...
  The general form of a phase diagram is given below. Observe that this phase diagram...
  The general form of a phase diagram is given below. Observe that this phase diagram is divided into three regions by the blue boundary lines similar to the way the interactive phase diagram for CO2 was divided. Compare this general form of this phase diagram with the interactive phase diagram for CO2 and classify points a through g on the phase diagram according to the number of phases present at each point. One phase:             Two Phases:        Three Phases:
Find the area of the part given in the diagram below
Find the area of the part given in the diagram below  
Using the information given below, prepare an income statement, Statement of Retained Earnings and balance sheet...
Using the information given below, prepare an income statement, Statement of Retained Earnings and balance sheet for Hanson Storage from the adjusted trial balance. No additional investments in the company were made during the year. ( really need help with making an income statement, statement of retained earnings, and balance sheet. HANSON PRODUCTS COMPANY Adjusted Trial Balance December 31, 2018 Debit Credit Cash $    14,400 Accounts receivable 35,000 Allowance for doubtful accounts 800 Merchandise inventory 50,400 Office supplies 900 Prepaid...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT