Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

ISBN: 0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

Describe the six major components of strategic planning.

Answered: 1 week ago