#11 BreakingNews OR should be AND

open
nobody
5
2012-08-14
2012-08-14
Fred spiessens
No

In "BreakingNews", an "OR" is used to enforce: "The 30-pound baby wasn't born in South Amboy or New Hope."
That should probably be "AND" instead, as in:

NOT BornIn(SouthAmboy OR NewHope) <=> AND( NOT BornIn(SouthAmboy), NOT BornIn(NewHope))

If it is a bug, the Scala version of the example has the same bug.

Discussion

  • Hi,

    Yes, you are right.

    Good catch. I missed that when I was checking and cleaning student solutions.

    Thanks for the bug report.

    best,
    Radek

     
  • Qxb0QO <a href="http://fwmsqjwmgnga.com/">fwmsqjwmgnga</a>, [url=http://valpdbbpuysj.com/]valpdbbpuysj[/url], [link=http://bqajuspswswq.com/]bqajuspswswq[/link], http://mjlefhcubhmk.com/

     
  • kris
    kris
    2013-04-16

    Obviously there is the same mistake since it has been re-coded from Java version.