Question
(Kotlin) You have a group of friends coming to visit for your high school reunion, and you want to take them out to eat at
(Kotlin) You have a group of friends coming to visit for your high school reunion, and you want to take them out to eat at a local restaurant. You arent sure if any of them have dietary restrictions, but your restaurant choices are as follows: Joes Gourmet Burgers Vegetarian: No, Vegan: No, Gluten-Free: No Main Street Pizza Company Vegetarian: Yes, Vegan: No, Gluten-Free: Yes Corner Caf Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes Mamas Fine Italian Vegetarian: Yes, Vegan: No, Gluten-Free: No The Chefs 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, and then displays only the restaurants that you may take the group to. Here is an example of the programs output: Is anyone in your party a vegetarian? yes [Enter] Is anyone in your party a vegan? no [Enter] Is anyone in your party gluten-free? yes [Enter] Here are your restaurant choices: Main Street Pizza Company Corner Cafe The Chef's Kitchen Here is another example of the programs output: Is anyone in your party a vegetarian? yes [Enter] Is anyone in your party a vegan? yes [Enter] Is anyone in your party gluten-free? yes [Enter] Here are your restaurant choices: Corner Cafe The Chef's 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