by Conrad Weisert
February 18, 2008
© 2008 Information Disciplines, Inc.
Last month we showed this informal requirement from a classic textbook, and invited readers to help transform it into a rigorous decision rule.
|Customers who place more than $10,000 business per year and have a good payment history or have been with us for more than 20 years are to receive priority treatment.|
We got several responses that addressed parts of the problem, but we're still a long way from a satisfactory rendering of the rule. I'll show the beginning here that everyone agrees on, and invite further refinements from readers.
We know that logical expressions of the form
P AND Q OR R
are ambiguous. We have to decide whether the user
IF (customer buys more than $10,000 per year AND customer has a good payment history) OR has been with us for more than 20 yearsor this:
IF customer buys more than $10,000 per year AND (customer has a good payment history OR has been with us for more than 20 years)
If we're working closely with a knowledgeable user representative we can ask. If not, then we'll choose the one that we think makes better business sense. In either case we'll document the result for the users' final review.
In this case the second interpretation seems more likely. We shouldn't be surprised if the user representatives will want to refine the rule further after they see it stated unambiguously, but this is what we have for now.
Everyone agreed that the result ("receiving priority treatment") can be a boolean (true-false) function result, assuming that another part of the program knows what priority treatment means.
We've still got lots of problems:
Let's have your ideas. Conrad Weisert (email@example.com).
Return to table of contents
systems analysis topics
Last modified February 18, 2008