943,777 Members | Top Members by Rank

Ad:
Aug 1st, 2008
0

Decision Tables

Expand Post »
I have a little problem with decision tables. I do under stand that for every 2 conditions there should be 4 possible outcomes or true/false condidtions.

I have this telephone problem where the telephone company charges .10 a minute for all calls outside the callers area code (2 outcomes) and charges .13 cents a minute for all other calls (1 outcome?) The phone company wants a report showing the callers area code and number, the area code called and number, number of minutes and the charge per minute.

I only have 3 outcomes and there are supposed to be 4. I am totally stuck, does anyone know a little about desicion tables.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
andy4919 is offline Offline
13 posts
since Jul 2008
Sep 28th, 2008
0

Re: Decision Tables

Sorry about the formatting. I tried to use LaTeX formatting codes, but to no avail... =8(

<br />
\begin{tabular}{| c | c | c | c |}<br />
      \hline<br />
          Area Code & \$0.00 & \$0.10 & \$0.13 \\ \hline<br />
          None & X &   &   \\ \hline<br />
          Outside &   & X &   \\ \hline<br />
          Others &   &   & X \\ \hline<br />
\end{tabular}<br />

If you look at this table, which I tried to layout what issues the problem states, there are only two possible types of calls that can be made: outside the caller's area code and any other call. The only other possibility is that there is no call made, as indicated.

Not sure if laying it out this way gives you a better understanding of decision tables or helps at all with this problem. Try looking up logic or truth tables and/or Algebraic/Boolean Logic on the 'net. It might give you a better understanding.
Reputation Points: 10
Solved Threads: 0
Light Poster
mittelgeek is offline Offline
37 posts
since Aug 2005
Aug 10th, 2010
0
Re: Decision Tables
The problem is that the conditions are not independent. You can use conditions that have more than 2 states: ex: area code: local, within US, England. In the condition cell you could use "L", "U", and "E", say, for the 3 states.

I hope this helps.

(the reason I changed your area code example was because I don't understand what "outside" and "other" refer to.)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
leg1 is offline Offline
1 posts
since Apr 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: errors compiling scanner created by flex
Next Thread in Legacy and Other Languages Forum Timeline: Haskell: Data and Class problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC