Python Cafe ordering system

Comienza Ya. Es Gratis
ó regístrate con tu dirección de correo electrónico
Python Cafe ordering system por Mind Map: Python Cafe ordering system

1. Main

1.1. details

1.1.1. credit card

1.1.2. name

1.1.3. what they are ordering

1.1.4. costs

1.1.5. display what you can order

1.2. ordering system

1.3. how to be done

1.3.1. while loop.

1.3.1.1. while orderanother == true

1.3.1.2. if orderanother == false

1.3.1.2.1. move onto random chance

1.4. part 2

1.4.1. ask for customer to swipe credit card and enter pin on the card reader (credit card swipe thing) next to the tablet

1.4.2. assume the credit card has been accepted

1.4.3. ask for them to type next to go to the next customer

1.5. part 1

1.5.1. ask for name

1.5.2. set orderanother == true

1.5.3. display what there is

1.5.4. ask for what they want to order

1.5.5. add money to totalcosts

1.5.6. show total costs

1.5.7. ask if they want to order more

1.5.7.1. yes

1.5.7.1.1. repeat everything above

1.5.7.1.2. do not ask for name

1.5.7.1.3. set orderanother == true

1.5.7.2. no

1.5.7.2.1. set orderanother == false

1.5.7.2.2. move onto random chance

2. Random chance

2.1. random number between 10 and 50

2.1.1. import math

2.2. luckyno == False

2.2.1. to tell if they have won and goten their cheapest beverage for free

2.2.1.1. false == they get no discount

2.2.1.2. true == they get discount

2.3. Random chance

2.3.1. leave while loop

2.3.2. luckyno == False

2.3.3. generate random number between 10 and 50

2.3.4. check if number is 30

2.3.4.1. number is 30 (yes)

2.3.4.1.1. tell customer that it's their lucky day, and that their cheapest beverage is free

2.3.4.1.2. luckno == true

2.3.4.2. number is not 30 (no)

2.3.4.2.1. tell customer that they are not the lucky customer and they do not get a discount

2.3.4.2.2. luckyno == false

2.3.5. move onto docket display

3. Docket display

3.1. cheap = cheapest beverage

3.2. Docket display

3.2.1. if lucyno == true

3.2.1.1. find cheapest beverage

3.2.1.2. set cheapest beverage as cheap

3.2.1.3. minus cheapest beverage from totalcosts

3.2.2. display totalcosts

3.2.3. ask custemer to acept

4. Order

4.1. Part 1 (main)

4.2. random chance

4.3. docket display

4.4. Part 2 (main)