What your Python program should do?

Case scenario
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).
Use the starter 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.
What is given to you
From the starter code, you have two defined but blank functions. You will get an error if you try to run the starter code because Python doesn’t know what to do with empty functions. Your goal through the following instructions is to fill in those functions with code and also create code in the ‘main’ part of your program outside of the functions.
What your Python program should do
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.
a.    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.
b.    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.
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).
Test case input and output
Your TA will create their own dish names and enter the following input:
Table 1, appetizer
Table 2, main dish with a length fewer than or equal to 10 characters
Table 3, main dish with a length greater than 10 characters
Table 456, dessert
Table 78, “on the fly”
Your TA can enter the information above in any order (position) they choose.
FINAL INPUT AND OUTPUT EXAMPLE:
HELLO WONDERFUL MARIA’S KITCHEN WAIT STAFF
Enter orders one at a time or x to quit
Order: 2*m-fried rice
Order: 1*a-cucumber salad
Order: 456*d-cheesecake
Order: 2*m-xiao long bao
Order: 78*f-side of ranch
Order: x
!!! PRINTING KITCHEN TICKET !!!
T2 MAIN fried rice 8 min
T1 APP cucumber salad
T456 DES cheesecake BIRTHDAY
T2 MAIN xiao long bao 15 min
T78 OTF SIDE OF RANCH
Hey TA, what is Peter Pan’s favorite restaurant? Wendy’s!

DeliveredIn24
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.