Restaurant Selector
You have a group of friends coming to visit for your high school reunion, and you want to take them out to cat at a local restaurant. You aren’t sure if any of them have dietary restrictions, but your restaurant choices are as follows:
Joe’s Gourmet Burgers—Vegetarian: No, Vegan: No, Gluten-Free: No
Main Street Pizza Company—Vegetarian: Yes, Vegan: No, Gluten-Free: Yes
Corner Cafe—Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes
Mama’s Fine Italian—Vegetarian: Yes, Vegan: No, Gluten-Free: No
The Chef's 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 that you may take the group to. Here is an example of the program’s output:
Is anyone in your party a vegetarian? yes
Is anyone in your party a vegan? no
Is anyone in your party gluten-free? yes
Here are your restaurant choices:
Main Street Pizza Company
Corner Cafe
The Chef's Kitchen
Here is another example of the program’s output:
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:
Corner Cafe
The Chef's Kitchen
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Starting Out with Python (4th Edition)
SURVEY OF OPERATING SYSTEMS
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Degarmo's Materials And Processes In Manufacturing
Mechanics of Materials (10th Edition)
- The memory locations listed in a procedure header’s parameterList have procedure scope and are removed from the computer’s main memory when the procedure ends. True Falsearrow_forwardOption buttons let the user no select from one of several choices. * True Falsearrow_forwardSQL queries can accept arguments. In an SQL statement, a parameter variable begins with the __ symbol. Question 12 options: # $ @ &arrow_forward
- Review the customer requirements Customer Requirements: The customer needs an application that creates a report telling how many months it will take to pay of a loan given a loan payment. The application will accept a client’s loan amount and monthly payment amount. It will then output the customer’s loan balance each month until the loan is paid off. The report should not have any negative numbers (the final month should reflect a balance of $0). Display the month and remaining balance for each month until paid off. In addition, the program should display what the original loan amount was. Review the example IPO below. Open Flowgorithm and save with the required naming conventions in the “Lab Task Checklist” and remember to enter your Program Attributes. Use Flowgorithm to create the algorithm meeting the customer requirements Make sure you are using the correct datatype Use prompts to describe required input before asking for input Test using the IPO test…arrow_forwardOverloading Operators as Non-members Instructions Grading When you have completed your program, click the Submit button to record your score.arrow_forwardyou hchoose more than one optionarrow_forward
- C# onlyarrow_forwardFalling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d =1/2gt2 The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.arrow_forward_name_ is not definedarrow_forward
- nstructions Timed Test This test has a time limit of 30 minutes.This test will save ar Warnings appear when half the time, 5 minutes, 1 minute Multiple Attempts Not allowed. This test can only be taken once. Force Completion This test can be saved and resumed at any point until time Remaining Time: 08 minutes, 16 seconds. * Question Completion Status: A Moving to another question will save this response. Quèstion 6 What type of value is the outcome of the condition in a do while statement? O a. Boolean O b. true O c. character O d. false L A Moving to another question will save this response. Fs 10arrow_forwardEmployee view attendance report The employee must be logged in to the system to perform this function. The employee selects the report period (range of dates: from - to). The employee selects "show report". Range of dates for the report must be maximum 3 months, so if the range is invalid, the system displays an error message. The system displays every working day in the report with the status of the employee in this day, which could be one of the following: on time, late, did not come. One actor? One use case name? One class ? Attributes for the class ? One relation between classes ?arrow_forwardphp question Write a form validation function that makes sure the Name is filled in and uses a regular expression to validate it is just letter on the form PlayerName.arrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L