Write a predicate that return true or false as per condition, English

Alec is a picky eater. He will only eat pizza that contains pineapple, tuna, or both mushrooms and ham, but he will refuse to eat any pizza that contains pepperoni or tomato sauce. Suppose you have a function "contains" that can tell you if the pizza contains a certain ingredient: for example, you would write "contains(mozzarella)" to check if the pizza has mozzarella.

Write a predicate (condition) that returns "true" if Alec will eat the pizza and "false" if Alec will refuse it.

Posted Date: 3/20/2013 5:10:26 AM | Location : United States







Related Discussions:- Write a predicate that return true or false as per condition, Assignment Help, Ask Question on Write a predicate that return true or false as per condition, Get Answer, Expert's Help, Write a predicate that return true or false as per condition Discussions

Write discussion on Write a predicate that return true or false as per condition
Your posts are moderated
Related Questions


if you could speak to bierce, how would you describe your reaction to the ending of his story

Drilling in the Arctic Refuge is Not a Solution to Our Energy Problems, It's a Distraction Karen Wayland is the Natural Resources Defense Council's legislative director and an

how to do a good writing?

Hi all english teachers, Could you please help me with my english essay. I have to write a 600-800 word reflection outlining the poems that I learned in the unit which are ("The c

state the distinguishing features of literary writing by citing examples and discussing them. 450 words (you may give the sources.)

The autumn morning is sunny with heavy crowds using the several subway trains. It is a perfect day for shopping at the mall and other shopping areas around the city. As passengers

i need help in writing an annotated bibliography with citations and i don''t know how. i failed my first essay. can you help me