Sei sulla pagina 1di 4

Description of project:

This project aims to build a caf menu and the target is people that go to cafes/coffee shops. The menu
will display the types of drinks and their prices. A customer will order the type of drink they want and
say the quantity they want for each item. After the customer states the quantity of drinks they want the
menu will keep displaying until the customer decides they dont want to order anything else and the
menu will be exited. At the end of their order the customer will be provided with a receipt that displays
the name of each item, the unit price, the quantity of items, and their total price including the tax.

The motivation for the project came from something I did in my database class. We were assigned to
topics for our project and mine was a menu and that menu was to be created using MYSQL and you had
to include information on the customer such as their customer ID, phone number, and address. Thinking
back on the previous project I felt that it would be good idea to do a similar thing in project but this time
in Python.

Specification of project:

a. Tentative I/O: the user will be presented with a caf menu and its prices. They will input their
food/drink choice and the name and price of each item will be displayed. The output will be
their bill total based off their choice of food/drink item. The menu and bill receipt will be stored
in a separate file. The menu should be opened using the read function and use the write
function to store receipt data.
b. Structure: Pseudocode:
1. Create a cafe menu that displays the items and their prices
2. Have the customer enter their name
3. Display the menu
4. The customer should input their drink choice one at a time
5. Ask the customer the quantity of drinks that they want
6. If the customer is not done ordering continue displaying the menu until they decide to
quit
7. Once the user states that they're done create a receipt in a separate file
8. Calculate the customer's total
9. Implement the tax to get the customer's grand total
10. Create a cafe name and location
11. The receipt number and the date and time need to be generated randomly
12. The cashier name should already be chosen
13. Print the company information, receipt number, and cashier name on the receipt file
14. Print the receipt.

Sample Drink Menu Input:


Drink Menu output:

Sample Receipt Input:


Sample Receipt Output:

Contribution:

I worked on this project on my own, so everything was individual work.

Potrebbero piacerti anche