Restaurant Selector
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 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 Café – 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
Is anyone in your party a vegetarian? yes [Enter]
Is anyone in your party a vegan? no [Enter]
Is anyone in your party gluten-free? yes [Enter]
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 [Enter]
Is anyone in your party a vegan? yes [Enter]
Is anyone in your party gluten-free? yes [Enter]
Here are your restaurant choices:
Corner Café
The Chef’s Kitchen
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
MyLab Programming with Pearson eText -- Access Code Card -- for Starting Out with Java: From Control Structures through Objects
Additional Engineering Textbook Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Management Information Systems: Managing The Digital Firm (16th Edition)
Database Concepts (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
Modern Database Management
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
- 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_forwardSQL queries can accept arguments. In an SQL statement, a parameter variable begins with the __ symbol. Question 12 options: # $ @ &arrow_forwardOption buttons let the user no select from one of several choices. * True Falsearrow_forward
- * Question Completion Status: Moving to another question will save this response. Quèstion 5 Simplified form of F=y +x y+y xz is xy + y + x Z xy + y (1 + y z) xy +y (x+y z) xy +y +xz A Moving to another question will save this response.arrow_forwardAdditional Notes: USING C# You cannot add two flights with the same flight number When you select “View Flights”, a list containing the Flight number, origin and destination for each flight must be shown. When you select “View a particular flight”, a list of all flights should be displayed and the user must be allowed to enter a particular flight number. All the information on that selected flight must be displayed. All the customers who are booked on that flight must SPECIAL NOTE: A customer can only be deleted if there are no bookings for that customer. A flight can only be deleted if there are no customers booked on the flight. You must extend the core design and add the functionality to add customers and booking features to the system. The information that must be recorded on a customer is as follows: A customer ID must be assigned to each customer by the system. (NOT entered by the user) The customer’s first name The customer’s last name. The customer’s phone (a string type…arrow_forwardDORM AND MEAL PLAN CALCULATOR A university has the following dormitories: Allen Hall $1,500 per semesterPike Hall $1,600 per semesterFarthing Hall $1,800 per semesterUniversity Suites $2,500 per semesterThe university also offers the following meal plans:7 meals per week $ 600 per semester14 meals per week $1,200 per semesterUnlimited meals $1,700 per semesterCreate an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form. For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results. I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you…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
- VScrollBar controls—define themarrow_forwardRetail Price Calculator Create an application that lets the user enter an item's wholesale cost and its markup percentage. It should then display the items retail price. For example: If an item's wholesale cost is $5.00 and its markup percentage is 100 percent, then the item's retail price is $10. If an item's wholesale cost is $5.00 and its markup percentage is 50 percent, then the item's retail price is $7.50. The program should have a method named CalculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item. In addition, there should be the name of the Wholesale Company displayed (be creative). If the cost is over $500, display a $20 discount on the retail price. For example: If an item's wholesale cost is $600.00 and its markup percentage is 100 percent, then the item's retail price is $1,180. ( Markup = $600 * 100% = 600 Retail Price = $600 + $600 - $20 (wholesale cost + markup - discount)arrow_forwardC# onlyarrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L