Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Autre

PROJECT 2 MARIA’S KITCHEN RESTAURANT IN RIVERSIDE ANSWER

Note
-
Vendu
-
Pages
8
Publié le
02-06-2022
Écrit en
2020/2021

PROJECT 2 MARIA’S KITCHEN RESTAURANT IN RIVERSIDE ANSWER You have been hired at Maria’s Kitchen, a restaurant in Riverside. Chef and owner Maria has been asking her wait staff to take orders on paper. She would like a new system where the wait staff can type in orders. The system should also print tickets for the kitchen staff that are easy to read so they know what dish to make and what table it belongs to. For those of you who have food service experience, you will recognize this as a very simple point-of-sale (POS) and kitchen display system (KDS). Learn more about POS and KDS here. Industry note: real systems tie into the restaurant’s financial and accounting records for auditing (finance and accounting majors), automatically reorder supplies and ingredients at the right time (supply chain majors), and allow access from a dashboard that can analyze the data for patterns and trends as well as employee performance (management, marketing, and business analytics majors). The challenge in this Project is to use what you’ve learned in class and apply it to different case scenarios for both coding and the essay questions. In industry, there are no multiple choice questions where you can guess your way to an answer. You’ll have to generate real output (business model, financial or accounting statements, burndown charts, etc.) and present your argument as to why your team, company, or stakeholders should follow your output. copy the starter code from there into your own repl. Don’t change any of the provided code. def ticket(table, type, dish): # Finish the rest of this function def process(order): # Finish the rest of this function # Remember to add a blank line after the end of your process() function code. Start your “main” block of code below this line. In the main part of your code outside of the functions You need to create this code. Ask the user to type in an order in this format (without the square brackets): [table number]*[a, m, d, or f]-[the name of the dish] The number is the table number. This is followed by a star. Next comes a, m, d, or f, in lowercase. ‘a’ means appetizer. ‘m’ means main dish. ‘d’ means dessert. ‘f’ means ‘on the fly’ which tells the kitchen to cook that dish urgently. This is followed by a dash. At the end is the name of the dish. For example: 2*m-burger and fries This means table number 2, it is a main dish, and the dish is called ‘burger and fries.’ The user will type all of this on one line with no spaces except for in the dish name. Store this order into a list. Let the user keep typing in orders. Store all orders in the same list. The user stops entering orders by typing in ‘x’ without quotes. Once you have all of the orders, access each order in the list and send it to a function called process() that takes in the order as a parameter. Send each order to a function called process(order) You need to create the code for this function. The function separates out the various components of the order: table number, type of order, and the dish name. You need to send these three components to another function that will return a string. Send these three components to a function called ticket(table, type, dish) You need to create the code for this function. The output of this function is a string with the order details that is nicely formatted so the kitchen staff can easily read it. First, add “T“, the table number, and a space to the string. Next, process the order type and dish name. If it is an appetizer: add the word “APP”, a space, and the dish name to the string. If it is a main dish: add the word “MAIN”, a space, and the dish name to the string. If the length of the dish name is 10 characters or fewer, add the text “8 min” to the string to let the kitchen know how long to expect for the cook time. If the length of the dish name is more than 10 characters, add the text “15 min” to the string. If it is a dessert: add the word “DES”, a space, the dish name, and the word “BIRTHDAY” to the string to remind the pastry chef to add a special birthday message. Maybe today is Jing’s birthday? If it is an “on the fly” order: add the word “OTF”, a space, and the dish name in all caps. For any “on the fly” orders, you don’t have to worry about the main dish or dessert string additions. Using our example from above, the order “2*m-burger and fries” would result in a string: T2 MAIN burger and fries 15 min Return this string back to process(). Back inside process() You need to continue creating the code for this function. Store the string returned from ticket(). Print it for the user. process() does not need to return anything. Back inside the main part of your program This kicks the program back down to the main part (outside of the functions) where your code should automatically pull the next order from the list and send it to process(). You need to create this functionality. Once you’ve processed all the orders, your program can end and show a funny message to the wait staff (e.g., your TA).

Montrer plus Lire moins
Établissement
Cours









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
2 juin 2022
Nombre de pages
8
Écrit en
2020/2021
Type
Autre
Personne
Inconnu

Sujets

€12,70
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Academictutor Chamberlain College Of Nursing
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
136
Membre depuis
5 année
Nombre de followers
124
Documents
0
Dernière vente
2 mois de cela
TEST BANK STORE

Find all the test banks you need here.Welcome

4,0

42 revues

5
24
4
6
3
4
2
2
1
6

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions