Question
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
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