In: Computer Science
Consider the following description below:
A furniture company produces several products for sale.
Each product (described by Product ID, name and price) is made up of one or more components (described by Component ID and name). A component can be used in one or more products.
A component can be a simple component or compound component. A compound component is one that contains one or more other components (which can be simple or compound components). A simple component is indivisible, i.e. it cannot contain other components.
The quantity of a component in a product must be recorded. For example, if product P contains 2 physical units of component C, the quantity 2 must be recorded. Similarly, if component C1 contain 4 physical unit of component C2, the quantity 4 must be recorded.
Using the Main Flow–Extensions format, write the description of the following use cases:
(i) Add a product, and
(ii) Remove a compound component
1. Use case Description for Add a product
| Use Case ID | UC01 | 
| Use Case Name | Add a Product | 
| Brief Description | Company Employee add a product in order to sale it. | 
| Actor | Company Employee. | 
| Pre-condition | Employee login in order to add product . | 
| Post-Condition | Employee successfully add the product | 
| Main-Flow | 
  | 
| Alternate Flow | 
  | 
2 Use Case Description for Remove a Compound Component
| Use Case ID | UC02 | 
| Use Case Name | Remove a Compound Component | 
| Brief Description | Company Employee remove a Compound Component. | 
| Actor | Company Employee | 
| Pre-condition | Employee login to the System in order to remove a Compound Component. | 
| Post-Condition | Employee successfully remove a Compound Component. | 
| Main-Flow | 
  | 
| Alternate Flow | 
  |