diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2018-08-07 19:08:19 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2018-08-07 19:08:19 +0300 |
| commit | d65066053445a86632f2710b6422616311f6fa07 (patch) | |
| tree | 8722ce6184dd05f63c107f28779922c2c2c07310 /pizza2.py | |
| parent | 320af2a8d08d42f4af064ff0ce8e0ddb9eb7f071 (diff) | |
Add openpyxl for loading and saving excel filesmaster
Diffstat (limited to 'pizza2.py')
| -rw-r--r-- | pizza2.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pizza2.py b/pizza2.py deleted file mode 100644 index e1b306e..0000000 --- a/pizza2.py +++ /dev/null @@ -1,18 +0,0 @@ -import datetime
-while True:
-
- gas_cost = 0.08 #how much it costs to drive 1 mile
- wear_tear = 0.1 #estimated 10 cents per mile in tire and engine wear
- mpg = 30 # my car gets 30 miles per gallon
- delivery_charge = 1.25 #dominos pays the driver $1.25 each delivery
- now = datetime.datetime.now()
- print("|||WELCOME TO TIP TRACKER. ALL OF THE DATA SHOWN IS BASED ON 30 MPG AT $2.60/GALLON AND 10ยข OF WEAR'N'TEAR EACH MILE|||")
- total_price = float(input('Total Price: ')) #Total price of order
- amt_given = float(input('Amount Given: ')) #Total amount of money received from customer
- tip = amt_given - total_price #This is your total Gross Tip
- print('Tip given = {}'.format(tip)) #This prints your tip and saves the tip as a variable ( I think..lol)
- trip_distance = float(input('Miles: ')) # This is your round trip distance in miles
- print ("Your net tip is...")
- print (tip + delivery_charge -(gas_cost + wear_tear * trip_distance)) #This prints your Net Tip after factoring in the delivery charge, gas, and wear n tear
- print ("Current date and time : ")
- print (now.strftime("%Y-%m-%d %H:%M:%S"))
|
