Question
Write a java program : You have a group of friends coming to visit and you want to take them to a local restaurant. Your
Write a java program :
You have a group of friends coming to visit and you want to take them to a local restaurant. Your choices of restaurants, as well as any dietary needs met by that restaurant, are:
- Mel's Diner: vegetarian (no), vegan (no), gluten-free (no)
- Zachary's Pizza: vegetarian (yes), vegan (no), gluten-free (yes)
- Corner Cafe: vegetarian (yes), vegan (yes), gluten-free (yes)
- Mama's Italian: vegetarian (yes), vegan (no), gluten-free (no)
- Chef's Kitchen: vegetarian (yes), vegan (yes), gluten-free (yes)
Write a program that asks if anyone in the party is a vegetarian, vegan, or gluten-free, and then displays a list of which restaurants the group could go to.
Allow the user to enter either lowercase or uppercase (or mixed) responses to the yeso questions using the proper string comparison statement from Section 3.6 of the text.
Here's sample output (two separate runs of the program to show different results)
This program will help you select a restaurant Is anyone in your party a vegetarian? (Enter yes or no): NO Is anyone in your party a vegan? (Enter yes or no): Yes Is anyone in your party gluten free? CEnter yes or no): yes Here are your restaurant choices: Corner Cafe Chef's Kitchen This program will help you select a restaurant Is anyone in your party a vegetarian? (Enter yes or no): NO Is anyone in your party a vegan? (Enter yes or no): no Is anyone in your party gluten free? CEnter yes or no): yes Here are your restaurant choices: Zachary's Pizza Corner Cafe Chef's KitchenStep 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