Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using basic c++ Write a separate code for each of the following: Restaurant selector Boolean Find out the food choices of people in a group

Using basic c++ Write a separate code for each of the following:

Restaurant selector Boolean Find out the food choices of people in a group and list them the restaurants they can go to.

Use logical operators

Choices: Vegetarian, Vegan and Gluten free List of restaurants based on food choices

All food choices: Corner Cafe

Chef's Kitchen

No vegetarian No vegan and No glutenFree - Joe's Gourmet Burgers

vegetarian, vegan and not glutenFree - India Kitchen

not vegan, vegetarian, glutenFree - Main Street Pizza

vegetarian, Not vegan and not glutenFree - Mama's Fine Italian

2. Chinese Zodiac Problem. Every 12 years the Chinese calendar is assigned one animal *Switch* Input: Enter a year Calculations: Use a switch statement to switch based on the input using an operation.

If it is 0 Monkey, 1 rooster, 2 dog, 3 pig, 4 rat, 5 OX, 6 Tiger, 7 rabbit, 8 dragon, 9 snake, 10 horse, 11 sheep

Output: The year (xxxx eg:2018) is animal (xxxx eg Dog) year

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 1 Lnai 6321

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215879X, 978-3642158797

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago