diff options
| author | bwalterscoding <40584788+bwalterscoding@users.noreply.github.com> | 2018-08-05 22:54:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-05 22:54:14 -0400 |
| commit | 441ee4a038b9ab0fe2d5b122faf4c065d475dc95 (patch) | |
| tree | 8bc911e38a6c3fb150d29177709d576234b25899 | |
| parent | 35e135c9dc8dcb9ccdce34a8818e051b5bd04281 (diff) | |
Add files via upload
| -rw-r--r-- | pizza2.py | 10 |
1 files changed, 10 insertions, 0 deletions
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))
+
|
