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)

Write a java program : You have a group of friends coming

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 Kitchen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!