From 441ee4a038b9ab0fe2d5b122faf4c065d475dc95 Mon Sep 17 00:00:00 2001 From: bwalterscoding <40584788+bwalterscoding@users.noreply.github.com> Date: Sun, 5 Aug 2018 22:54:14 -0400 Subject: Add files via upload --- pizza2.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pizza2.py diff --git a/pizza2.py b/pizza2.py new file mode 100644 index 0000000..ab09890 --- /dev/null +++ b/pizza2.py @@ -0,0 +1,10 @@ +gas_price = 2.6 +wear_tear = 0.1 +mpg = 30 +total_price = float(input('Total Price: ')) +amt_given = float(input('Amount Given: ')) +tip = amt_given - total_price +print('Tip given = {}'.format(tip)) +trip_distance = float(input('Miles: ')) +print (tip-(gas_price / trip_distance + tip * wear_tear)) + -- cgit v1.3