Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Identify the classes and associations in the following narrative, and draw a class diagram with multiplicities. Then answer questions 1 to 8 below: Paige runs
Identify the classes and associations in the following narrative, and draw a class diagram with multiplicities. Then answer questions 1 to 8 below: Paige runs a small frozen yogurt shop. She buys several flavors of frozen yogurt mix from her yogurt supplier. She buys plastic cups in several sizes from another supplier. She buys cones from a third supplier. She counts yogurt and cones as inventory, but she treats the cups as an operating expense and doesn't track any cup inventory. Required: 1. How many classes did you include in your diagram? 2. Which of the following best describes the names of the classes that you selected for your diagram? 3. If there is an association between a SUPPLIERS class and a PURCHASES class, which of the following best describes the multiplicities next to the PURCHASES class? Assume that SUPPLIERS are added to the database before the first purchase. 4. If there is an association between a SUPPLIERS class and a PURCHASES class, which of the following best describes the multiplicities next to the SUPPLIERS class? Assume that SUPPLIERS are added to the database before the first purchase. 5. If there is an association between an INVENTORY class and a PURCHASES class, which of the following best describes the multiplicities next to the PURCHASES class? Assume that INVENTORY records are added to the database before the first purchase. 6. If there is an association between an INVENTORY class and a PURCHASES class, which of the following best describes the multiplicities next to the INVENTORY class? Assume that INVENTORY records are added to the database before the first purchase. 7. If there is an association between a PAIGE class and a SUPPLIERS class, which of the following best describes the multiplicities next to the PAIGE class? Assume that SUPPLIERS records are added to the database before the first purchase. 8. Assume that Paige's yogurt business expanded and Paige hired several employees to purchase inventory from suppliers. What class(es) and association(s) would you add to the diagram to track this information? Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 How many classes did you include in your diagram? ld Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 Which of the following best describes the names of the classes that you selected for your diagram? Paige, Yogurt Shop, Supplier Yogurt, Cones, Supplier Inventory, Purchases, Suppliers Plastic cups, Paige, Cones Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 If there is an association between a SUPPLIERS class and a PURCHASES class, which of the following best describes the multiplicities next to the PURCHASES class? Assume that SUPPLIERS are added to the database before the first purchase. Minimum 0, Maximum 1 Minimum 0, Maximum * Minimum 1, Maximum 1 Minimum 1, Maximum * There is no association between SUPPLIERS and PURCHASES in the model Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 If there is an association between a SUPPLIERS class and a PURCHASES class, which of the following best describes the multiplicities next to the SUPPLIERS class? Assume that SUPPLIERS are added to the database before the first purchase. Minimum 0, Maximum 1 Minimum 0, Maximum * Minimum 1, Maximum 1 Minimum 1, Maximum * There is no association between SUPPLIERS and PURCHASES in the model Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 If there is an association between an INVENTORY class and a PURCHASES class, which of the following best describes the multiplicities next to the PURCHASES class? Assume that INVENTORY records are added to the database before the first purchase. O Minimum 0, Maximum 1 Minimum 0, Maximum * Minimum 1, Maximum 1 Minimum 1, Maximum * There is no association between INVENTORY and PURCHASES in the model Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 If there is an association between an INVENTORY class and a PURCHASES class, which of the following best describes the multiplicities next to the INVENTORY class? Assume that INVENTORY records are added to the database before the first purchase. O Minimum 0, Maximum 1 Minimum 0, Maximum * Minimum 1, Maximum 1 Minimum 1, Maximum * There is no association between INVENTORY and PURCHASES in the model Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 If there is an association between a PAIGE class and a SUPPLIERS class, which of the following best describes the multiplicities next to the PAIGE class? Assume that SUPPLIERS records are added to the database before the first purchase. Minimum 0, Maximum 1 Minimum 0, Maximum * Minimum 1, Maximum 1 Minimum 1, Maximum * There is no association between PAIGE and SUPPLIERS in the model Required 1 Required 2 Required 3 Required 4 Required 5 Required 6 Required 7 Required 8 Assume that Paige's yogurt business expanded and Paige hired several employees to purchase inventory from suppliers. What class(es) and association(s) would you add to the diagram to track this information? An EMPLOYEES class and an association between EMPLOYEES and PURCHASES. An EMPLOYEES class and an association between EMPLOYEES and SUPPLIERS. An EMPLOYEES class and an association between EMPLOYEES and INVENTORY. An EMPLOYEES class and an association between EMPLOYEES and PAIGE. None of these is a correct addition to the diagram
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started