For a system that allocates discounts on purchases, the following two business rules apply:
- Customers with a loyalty card or whose last purchase was at least $1,000 will receive a 10% discount. Otherwise, they will receive a 5% discount if they subscribe to the newsletter.
- If a customer has not signed up for the newsletter, they will receive no discount.
The requirements are modeled using the following decision table:
| Conditions | Rule 1 |
Rule 2 | Rule 3 | Rule 4 |
|---|---|---|---|---|
| Has a loyalty card? | YES | - | NO | - |
| Last purchase >= $1000? | - | YES | NO | - |
| Subscribed to the newsletter? | - | - | YES | NO |
| Action | ||||
| Discount | 10% | 10% | 5% | 0% |
What problem (if any) with the requirements can you discover by analyzing this decision table?
Select ONE option.
You are reviewing the requirements specification of a beverage vending machine. You are focusing on the coin controller that collects, validates, and counts the inserted coins. You notice the following requirements related to the behavior of the coin controller:
- Req201: For each ordering transaction, the coin controller distinguishes the situations among modes empty, partially inserted, and sufficient to identify whether the user has paid enough to start the beverage delivery
- Req215: If the user has paid enough, the controller shall immediately return any further inserted coins.
- Req235: The coin controller shall validate the inserted coins and immediately return invalid coins with an appropriate error message.
- Req236: The coin controller changes its mode to sufficient as soon as the user inserts enough coins.
- Req237: The user shall be able to cancel the transaction before beverage delivery and get the inserted coins returned. The coin controller will be empty after cancel is selected.
- Req243: The coin controller shall display an appropriate message when the user has inserted enough coins for payment and sum up any further coins inserted.
- Req253: When the user inserts a coin with which the required amount is not reached, the coin controller shall remain in the partially inserted mode and add the value of the inserted coin to the intermediate value paid.
- Req267: If the coin controller is in sufficient mode and the user triggers the delivery, it shall deliver the beverage to the user.
You decided to model the behavior of the coin controller with a state machine diagram. Which of the following anomalies will be MOST LIKELY detected by the modeling?
Select ONE option.