Draw a UML class diagram of your domain model from the information attached Create an interaction table for the Use case of a user purchasing a product from the machine. Create a UML sequence diagram of the use case in (v) above Make sure to capture all cases (alt, and loop) in the UML sequence diagram.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
  • Draw a UML class diagram of your domain model from the information attached
  • Create an interaction table for the Use case of a user purchasing a product from the machine.
  • Create a UML sequence diagram of the use case in (v) above
  • Make sure to capture all cases (alt, and loop) in the UML sequence diagram.
Synthesize the domain model of vending machine which has the following characteristics.
Products can be purchased by inserting the correct number of coins into the machine. A user selects a
product from a list of available products, adds coins, and either gets the product or gets the coins returned
if insufficient money was supplied or if the product is sold out. Products can be restocked and money
removed by an operator.
(i)
(ii)
Write a set of simple requirements for this system
Product Selection: Users will be able to choose a product from a list of available items.
The system must display the product list with corresponding prices.
Coin Insertion: Users can insert coins into the machine to pay for selected products.
The machine will accept common denominations.
Purchase Process: Upon sufficient coin insertion, the selected product will be dispensed.
If the inserted coins are insufficient, the machine should return the coins.
In case of a sold-out product, the machine will return coins.
Restocking: Operators will be able to restock products when inventory is low.
Restocking should not interfere with ongoing transactions.
Operator Management: Operators should have the ability to remove money from the
machine.
Write a set of key use cases from this description based on the requirements in (i)
User Purchases Product
Primary Actor: User
Flow: User selects product then insert coins machine then dispenses product if funds
sufficient or return coins if funds insufficient.
Sold-Out Scenario
Primary Actor: User
Flow: User selects product to check if product available, If sold out, return coins.
Restocking
Primary Actor: Operator
Flow: Check product inventory and Restock products.
Operator Removes Money
Primary Actor: Operator
Flow: Access money collection interface and operator removes money.
Transcribed Image Text:Synthesize the domain model of vending machine which has the following characteristics. Products can be purchased by inserting the correct number of coins into the machine. A user selects a product from a list of available products, adds coins, and either gets the product or gets the coins returned if insufficient money was supplied or if the product is sold out. Products can be restocked and money removed by an operator. (i) (ii) Write a set of simple requirements for this system Product Selection: Users will be able to choose a product from a list of available items. The system must display the product list with corresponding prices. Coin Insertion: Users can insert coins into the machine to pay for selected products. The machine will accept common denominations. Purchase Process: Upon sufficient coin insertion, the selected product will be dispensed. If the inserted coins are insufficient, the machine should return the coins. In case of a sold-out product, the machine will return coins. Restocking: Operators will be able to restock products when inventory is low. Restocking should not interfere with ongoing transactions. Operator Management: Operators should have the ability to remove money from the machine. Write a set of key use cases from this description based on the requirements in (i) User Purchases Product Primary Actor: User Flow: User selects product then insert coins machine then dispenses product if funds sufficient or return coins if funds insufficient. Sold-Out Scenario Primary Actor: User Flow: User selects product to check if product available, If sold out, return coins. Restocking Primary Actor: Operator Flow: Check product inventory and Restock products. Operator Removes Money Primary Actor: Operator Flow: Access money collection interface and operator removes money.
(iii) Draw a UML Use case diagram of your domain model
Vending Machine
User
Operator
Select Product
Insert Coins
Dispense Product
Restock Products
Check Product
Availability
Return Coins
Remove
Coins
Transcribed Image Text:(iii) Draw a UML Use case diagram of your domain model Vending Machine User Operator Select Product Insert Coins Dispense Product Restock Products Check Product Availability Return Coins Remove Coins
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Requirement Analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education