IN PYTHON 15.3 SS21 Project 3 Manage Restaurant Seating Overview In this project, you will be creating
Fantastic news! We've Found the answer you've been seeking!
Question:
IN PYTHON
Transcribed Image Text:
15.3 SS21 Project 3 Manage Restaurant Seating Overview In this project, you will be creating a program to help a popular restaurant manage their waiting line for seats. Objectives • Think about how to create a more complicated program by breaking it into manageable pieces. • Understand how to use a menu of possible actions repeatedly with a sentinel loop • Understand how to add and remove elements of a list using Python list methods • Use functions and incremental development to make a complicated program manageable Description Imagine that we are creating an app for the host/hostess at a busy restaurant to manage the line of customers waiting to be seated. As customers arrive, they are asked their party size, and they are added to the end of a waiting queue. Similar to other restaurants there is a VIP program here. If customers show a VIP card when checking in, they are given priority and added to the beginning of the waitlist (behind other VIP customers). When a table of diners is cleared there now are 'n' number of seats available for a party from the waitlist to be seated as long as the group is of size n or smaller. To simplify our programming, we are going to be concerned only with total seat management and not with optimizing table usage. We will assume that the tables and chairs are infinitely configurable, so that empty tables from smaller parties can be pushed together to accommodate larger parties, and small parties will take up only the number of spots for their own party (i.e, you don't need to worry about unused seats at tables or table sizes). When there is space available for the next party, the host/hostess can call out the name of the next party in line. That party will then be seated and they will be removed from the waitlist. The app will also provide for other capabilities such as the ability to display the current queue so that customers can see their current position in the waitlist. The first thing that the program needs to do is ask the user for the capacity of the restaurant. This will be used to determine if someone can be seated. When the restaurant is at full capacity (fewer available seats than customers wanting seats), people can still join the queue, but no one can be seated until a table is cleared 15.3 SS21 Project 3 Manage Restaurant Seating Overview In this project, you will be creating a program to help a popular restaurant manage their waiting line for seats. Objectives • Think about how to create a more complicated program by breaking it into manageable pieces. • Understand how to use a menu of possible actions repeatedly with a sentinel loop • Understand how to add and remove elements of a list using Python list methods • Use functions and incremental development to make a complicated program manageable Description Imagine that we are creating an app for the host/hostess at a busy restaurant to manage the line of customers waiting to be seated. As customers arrive, they are asked their party size, and they are added to the end of a waiting queue. Similar to other restaurants there is a VIP program here. If customers show a VIP card when checking in, they are given priority and added to the beginning of the waitlist (behind other VIP customers). When a table of diners is cleared there now are 'n' number of seats available for a party from the waitlist to be seated as long as the group is of size n or smaller. To simplify our programming, we are going to be concerned only with total seat management and not with optimizing table usage. We will assume that the tables and chairs are infinitely configurable, so that empty tables from smaller parties can be pushed together to accommodate larger parties, and small parties will take up only the number of spots for their own party (i.e, you don't need to worry about unused seats at tables or table sizes). When there is space available for the next party, the host/hostess can call out the name of the next party in line. That party will then be seated and they will be removed from the waitlist. The app will also provide for other capabilities such as the ability to display the current queue so that customers can see their current position in the waitlist. The first thing that the program needs to do is ask the user for the capacity of the restaurant. This will be used to determine if someone can be seated. When the restaurant is at full capacity (fewer available seats than customers wanting seats), people can still join the queue, but no one can be seated until a table is cleared
Expert Answer:
Answer rating: 100% (QA)
It looks like youre being asked to create a Python program to manage seating at a restaurant This program will help the host or hostess manage the lin... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
In this assignment, you will write a Python program that asks the user for a list of words, and then prints the shortest word, the longest word, and the average length of the words. Here is a sample...
-
python In which situation is a Python dictionary sorted? A. Dictionaries are always sorted. B. Dictionaries are never sorted. C. Only after you've called the sort() function. D. They are sorted by...
-
Exercise 4. Program in Python the inverse transform method to generate a random sample from a Binomial(n,p) random variable. Generate 3 samples of m = 500 values with the parameters n = 10, p = 0.6 n...
-
Jones Archaeology began 2018 with retained earnings of $180,000. During 2018, Jones made sales of $832,000 with 56% of sales allocated to cost of goods sold. Selling and administrative expense for...
-
Robertos Paper Supply started the year with $5,000 of prepaid rent. During the year, Robertos paid $25,000 of additional rent in advance. The rent expense shown on the income statement for the year...
-
Assume that Norway and Sweden trade with each other, with Norway exporting fish to Sweden, and Sweden exporting Volvos (automobiles) to Norway. Illustrate the gains from trade between the two...
-
Purina entered in a contract with the defendant to sell the defendant piglets, known as weanlingsbaby pigs that have been weaned. It is uncontested that the buyer breached and that Purina is entitled...
-
Consecutive five-year balance sheets and income statements of Donna Szabo Corporation are shown below and on the following page. Required a. Compute or determine the following for the years 20052009:...
-
A 2.00 m rod is rotating with an oscillating angular momentum given by sin(2.00) . If a small rocket with oscillating linear momentum 10.0cos(2.00) is fired at =0.00 s , at what time will it need to...
-
Jaguar Plastics Company has been operating for three years. At December 31 of last year, the accounting records reflected the following: Cash Investments (short- term) Accounts receivable Inventory...
-
Chandni & Co. opened their first restaurant location in 2012 in Lahore. The restaurant has since expanded its operation and at the end year end December 2020 they operate a total of six...
-
Benjamin is leasing a vehicle worth $28,700, with a down payment of $2,000 and equal payments at the beginning of every month for three years. What is the size of each lease payment if the cost of...
-
Walden, Inc. purchased some fixed assets four years ago at a cost of $302,000. It no longer needs these assets, so it is going to sell them today at a price of $67,000. The assets are classified as...
-
In the industrial industry, do you think it's important for them to implement life cycle cost analysis? Explain
-
In 1879, Tesla applied the idea of using high voltages during transmission over distance and lower voltages for home and office using an electromagnetic transformer. a. What would the ratio of turns...
-
Rainbow Company is using both debt and equity financing. Its target capital structure is to achieve 30 percent debt and 70% equity. Early this year, the company invested in project A that provided an...
-
Lucky champ owes 160.50 interest on a 6% loan he took out on his march 17th birthday to upgrade an oven in his irish restaurant luckys pub and grub. The loan is due on august 17th . What is the...
-
How much more interest will be earned if $5000 is invested for 6 years at 7% compounded continuously, instead of at 7% compounded quarterly?
-
A grocer will refuse a shipment of tomatoes if the ratio of bruised tomatoes to the total batch is at least 1 to 10. A sample is found to contain 3 bruised tomatoes and 33 good tomatoes. Determine...
-
Use this double line graph to answer in below Exercises. 1. In which of the model years shown were truck sales at a maximum? 2. Estimate the number of passenger cars sold in 2011. 3. In which three...
-
A solution strength of 8 mg of medicine in 1 ml of solution is available. If a patient needs 6 mg of medicine, how many ml do you administer?
-
What are five characteristics of good audience benefits?
-
Why might you choose a phone call, an email, a memo, a text message, or a particular social media for a given business message?
-
The Acme Corporation has been planning to acquire Best Products, and Acme employees are worried about how the acquisition will affect them. Ed Zeplin, Acmes human resource manager, has been visiting...
Study smarter with the SolutionInn App