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:
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...
-
What is EVA? How does it differ from ROI and residual income?
-
What's the relationship between a stock concept and a flow concept? Give an example that hasn't already been given in this chapter.
-
Cruse Corporation started operations on January 1,2020 . Taxable income from the tax return is \(\$ 2,850,000\). Income tax rate is \(25 \%\). There were no beginning balances in deferred tax...
-
Martin is working to develop a preliminary costbenefit analysis for a new client-server system. He has identified a number of cost factors and values for the new system, summarized in the following...
-
The current sections of Novak Corp.'s balance sheets atDecember 31, 2021 and 2022, are presented here. Novak's net incomefor 2022 was $154,700. Depreciation expense was $26,000. Currentassets Cash 2...
-
A company wants to locate a distribution center that will serve six of its major customers in a 30 30 mi area. The locations of the customers relative to the southwest corner of the area are given...
-
Blogs, wikis, and social networking sites were designed for individuals to communicate with each other. What uses do Macdonalds have for these tools? provide the description of the macdonalds....
-
The engine is working on ideal Otto cycle. The temperature at the beginning and at the end of compression is \(60^{\circ} \mathrm{C}\) and \(400^{\circ} \mathrm{C}\). Calculate the air standard...
-
According to the American Veterinary Medical Association (AVMA), 38.4% of households in the United States own a dog as a pet (AVMA website). Suppose that a company that sells dog food would like to...
-
Which are the main cost types in inventory valuation for manufacturing companies? What are the criteria for their classification?
-
Which are the two fundamental decisions associated with inventory valuation of a manufacturing firm? What are the key questions they answer?
-
What is the underlying accounting principle of absorption costing? What is the major weakness of this method?
-
Title: Enhancing Marketing Strategies through Effective Market Segmentation and Targeting
-
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?
-
Louise Baldwin commenced business as a wholesaler on 1 March 19X9. All transactions are subject to Value Added Tax at 10%. (a) Rule up a sales day book and head the main columns as follows. Enter the...
-
The credit sales and purchases for the month of December 19X7 in respect of C Dennis & Son Ltd were: Write up all of the relevant books and ledger accounts for the month. Net, after trade discount...
-
Mudgee Ltd issued the following invoices to customers in respect of credit sales made during the last week of May 19X7. The amounts stated are all net of Value Added Tax. All sales made by Mudgee Ltd...
Study smarter with the SolutionInn App