Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need JAVA code for this question. Ratings will be given to the user with the correct answer! 18. Restaurant Selector You have a group of
Need JAVA code for this question. Ratings will be given to the user with the correct answer!
18. Restaurant Selector 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 aren't sure if any of them have dietary restrictions, but your restaurant choices are as follows: Joe's 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 Mama's Fine Italian - Vegetarian: Yes, Vegan: No, Gluten-Free: No The Chef's 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 program's 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 program's output Is anyone in your party a vegetarian? yes [Enter] Is anyone in your party a vegan? yes [Enter) 295 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