Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have a group of friends coming to visit, and you'd like to take them to eat at a local restaurant. You are not
You have a group of friends coming to visit, and you'd like to take them to eat at a local restaurant. You are not sure if any of them have dietary restrictions, so you decide to narrow down your restaurant choices as follows: Council Oak Steaks and Seafood - Vegetarian: No, Vegan: No, Gluten-Free: No Wood Fired Pizza Wine Bar - Vegetarian: Yes, Vegan: No, Gluten-Free: Yes Villaggio's Ristorante Italiano - Vegetarian: Yes, Vegan: No, Gluten-Free: No Farmacy Vegan Kitchen-Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes Write a program that asks whether any members of your party are vegetarian, vegan or gluten- free, then displays only the restaurants to which you may take the group. Your program should accept all versions of the words 'yes' and 'no'. Use the lower() method with your string variable to convert all user responses to lowercase. Sample output is shown below. Note that responses can be given in lower case or title case. Sample Output 1: Is anyone in your party a vegetarian? yes Is anyone in your party a vegan? no Is anyone in your party gluten free? no Here are your restaurant choices: Villaggio's Ristorante Italiano Wood Fired Pizza Wine Bar True Food Kitchen Sample Output 2: Is anyone in your party a vegetarian? No Is anyone in your party a vegan? No Is anyone in your party gluten free? Yes Here are your restaurant choices: Wood Fired Pizza Wine Bar True Food Kitchen Sample Output 3: Is anyone in your party a vegetarian? Yes Is anyone in your party a vegan? yes Is anyone in your party gluten free? yes Here are your restaurant choices: True Food Kitchen Sample output 4 Is anyone in your party a vegetarian? No Is anyone in your party a vegan? no Is anyone in your party gluten free? no Here are your restaurant choices: Council Oak Steaks and Seafood Villaggio's Ristorante Italiano Wood Fired Pizza Wine Bar True Food Kitchen
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started