alec is a picky eater he will only eat pizza that


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.

Request for Solution File

Ask an Expert for Answer!!
English: alec is a picky eater he will only eat pizza that
Reference No:- TGS0217803

Expected delivery within 24 Hours