Realization of automatic settlement system of milk tea shop with Python
no vote
Project Name: automatic settlement system of Peihua milk tea shop Author: KITT version: v1.0 time: May 2018 Function Description: 1. Each customer can enter the number and quantity of milk tea many times when shopping, and set exit; 2. Record the purchase information of each customer in the dictionary (name and quantity of milk tea), and use the dictionary to calculate the total quantity of purchase; 3. When the customer's shopping information is printed, The number and quantity of each flavor are displayed respectively, and the total amount is displayed at the end; 4. Non member customers require to set the member number and mobile phone number, and record the member number and mobile phone number in the form of dictionary; 5. Record each customer's shopping information in a dictionary (one dictionary for each flavor, and record the member number respectively); 6. Print the customer's shopping process, shopping information, and purchase information The details record is encapsulated as function respectively; 7, set the main function and call the function defined in the main function. Version: v2.0 (1) shopping process_ Procedure: (2) calculate the amount of purchase and print the contents; (3) record the VIP membership number and mobile phone number in the dictionary VIP_ In DIC, you can judge whether you are an old member when shopping. If you are, you can enjoy a 10% discount. Update two functions: 1. Save the VIP information as a file VIP_ no.csv The format is as follows: VIP_ no,phone_ No, date 123187123456782018-05-30124139669022122018-05-301251389902222018-05-302, save daily shopping information as a file_ buy_ log_ yyyy_ mm_ dd.csv The format is as follows: VIP_ no,milk_ tea_ no,milk_ tea_ amount123,1,2123,4,1123,3,2124,2,1125,4,2