Decision Tables

Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 13
Reputation: andy4919 is an unknown quantity at this point 
Solved Threads: 0
andy4919's Avatar
andy4919 andy4919 is offline Offline
Newbie Poster

Decision Tables

 
0
  #1
Aug 1st, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 36
Reputation: mittelgeek is an unknown quantity at this point 
Solved Threads: 0
mittelgeek's Avatar
mittelgeek mittelgeek is offline Offline
Light Poster

Re: Decision Tables

 
0
  #2
Sep 28th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Legacy and Other Languages Forum


Views: 1556 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Legacy and Other Languages
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC