You have a group of friends coming to visit, and you'd like to take them to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You have a group of friends coming to visit, and you'd like to take them to eat at a local restaurant. You are not sure if any of them have dietary restrictions, so you decide to narrow down your restaurant choices as follows: Council Oak Steaks and Seafood - Vegetarian: No, Vegan: No, Gluten-Free: No Wood Fired Pizza Wine Bar - Vegetarian: Yes, Vegan: No, Gluten-Free: Yes Villaggio's Ristorante Italiano - Vegetarian: Yes, Vegan: No, Gluten-Free: No Farmacy Vegan Kitchen-Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes Write a program that asks whether any members of your party are vegetarian, vegan or gluten- free, then displays only the restaurants to which you may take the group. Your program should accept all versions of the words 'yes' and 'no'. Use the lower() method with your string variable to convert all user responses to lowercase. Sample output is shown below. Note that responses can be given in lower case or title case. Sample Output 1: Is anyone in your party a vegetarian? yes Is anyone in your party a vegan? no Is anyone in your party gluten free? no Here are your restaurant choices: Villaggio's Ristorante Italiano Wood Fired Pizza Wine Bar True Food Kitchen Sample Output 2: Is anyone in your party a vegetarian? No Is anyone in your party a vegan? No Is anyone in your party gluten free? Yes Here are your restaurant choices: Wood Fired Pizza Wine Bar True Food Kitchen Sample Output 3: Is anyone in your party a vegetarian? Yes Is anyone in your party a vegan? yes Is anyone in your party gluten free? yes Here are your restaurant choices: True Food Kitchen Sample output 4 Is anyone in your party a vegetarian? No Is anyone in your party a vegan? no Is anyone in your party gluten free? no Here are your restaurant choices: Council Oak Steaks and Seafood Villaggio's Ristorante Italiano Wood Fired Pizza Wine Bar True Food Kitchen You have a group of friends coming to visit, and you'd like to take them to eat at a local restaurant. You are not sure if any of them have dietary restrictions, so you decide to narrow down your restaurant choices as follows: Council Oak Steaks and Seafood - Vegetarian: No, Vegan: No, Gluten-Free: No Wood Fired Pizza Wine Bar - Vegetarian: Yes, Vegan: No, Gluten-Free: Yes Villaggio's Ristorante Italiano - Vegetarian: Yes, Vegan: No, Gluten-Free: No Farmacy Vegan Kitchen-Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes Write a program that asks whether any members of your party are vegetarian, vegan or gluten- free, then displays only the restaurants to which you may take the group. Your program should accept all versions of the words 'yes' and 'no'. Use the lower() method with your string variable to convert all user responses to lowercase. Sample output is shown below. Note that responses can be given in lower case or title case. Sample Output 1: Is anyone in your party a vegetarian? yes Is anyone in your party a vegan? no Is anyone in your party gluten free? no Here are your restaurant choices: Villaggio's Ristorante Italiano Wood Fired Pizza Wine Bar True Food Kitchen Sample Output 2: Is anyone in your party a vegetarian? No Is anyone in your party a vegan? No Is anyone in your party gluten free? Yes Here are your restaurant choices: Wood Fired Pizza Wine Bar True Food Kitchen Sample Output 3: Is anyone in your party a vegetarian? Yes Is anyone in your party a vegan? yes Is anyone in your party gluten free? yes Here are your restaurant choices: True Food Kitchen Sample output 4 Is anyone in your party a vegetarian? No Is anyone in your party a vegan? no Is anyone in your party gluten free? no Here are your restaurant choices: Council Oak Steaks and Seafood Villaggio's Ristorante Italiano Wood Fired Pizza Wine Bar True Food Kitchen
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
You have a group of friends coming to visit for your high school reunion, and you want to take them out to eat at a local restaurant. You arent sure if any of them have dietary /restrictions, but...
-
It is the end of December 2022, when Olga and Michael DObiski , age 53 and 56 respectively, come to you for some help with their financial planning. Although they have always been financially...
-
Consider a low-pass signal with a bandwidth of 3 kHz. A linear delta modulation system, with step size = 0.1V, is used to process this signal at a sampling rate ten times the Nyquist rate. (a)...
-
To cut costs, many corporations have been selling their private jets. The number of used jets for sale worldwide has increased from 1022 in 1999 to 3014 in 2009. Find the average rate of change in...
-
Explain the difference between exchange trading and over-the-counter (OTC) trading of securities. Discuss the relative benefits for investors of the two forms of trading.
-
What does a class diagram portray?
-
Assume that the following information is known about the current spot exchange rate between the U.S. dollar and the British pound (), inflation rates in Britain and the United States, and the real...
-
A 3.5-kg cannon on wheels is loaded with a 0.0527-kg ball. The cannon and ball are initially moving forward with a speed of 1.27 m/s. The cannon is ignited and launches a 0.0527-kg ball forward with...
-
How do multiprocessor synchronization primitives, such as locks, semaphores, and atomic operations, enable concurrent access to shared resources while preventing race conditions and ensuring data...
-
Explain and give an example of Trade-based Globalization and Digital Globalization
-
Using the information below, prepare a brief income statement, statement of owner's equity and balance sheet. Please attach them here. Grisham Industries began operations on June 1. On June 30, the...
-
1. There are income limits for Roth IRA contributions, and deductibility limits for Traditional IRA contributions. Those rules are outside the scope of this class. For our purposes, let's assume that...
-
Requirements 1. What is the actual cost per gram of the special alloy that Collegiate Rings purchased last month? 2. What is the direct material price variance? 3. What is the direct material...
-
Solve the integral S(7+x) 48x dx
-
Write a paper on "tell the kids we're moving to Kenya" and answer the following question Does the Pilgers' son Eric seem to have an ethnocentric, polycentric, or geocentric attitude? Explain. Would...
-
The executor of Gina Purcells estate has recorded the following information: Assets discovered at death (at fair value): Cash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
Analysis of Canadian Manufacturing Workers Workhours. The time plot in Figure 18 . 22 describes the average annual number of weekly hours spent by Canadian manufacturing workers...
-
Souvenir Sales. The file SouvenirSales.csv contains monthly sales for a souvenir shop at a beach resort town in Queensland, Australia, between 1995 and 2001. [Source: Hyndman and Yang (2018).] Back...
-
Toys R US Revenues. Figure 18 . 23 is a time plot of the quarterly revenues of Toys R US between 1992 and 1995 (thanks to Chris Albright for suggesting the use of these data, which are available in...
Study smarter with the SolutionInn App