Advertisement
jinglis

The Carsale Program

Sep 11th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. # Name: James Inglis
  2. # Course: Robotics Programming
  3. # Professor: Ms.Stockbridge
  4. # Date: 9/11/14
  5. # Description: The Car Salesman Program.
  6.  
  7. car_price = float(input("Please enter in car price"))
  8.  
  9. # Calculating taxes
  10. taxes = car_price * 6.25
  11. # Calculating license total
  12. license_percent = car_price * 5.15
  13. # Calculating dealer prep.
  14. dealer_prep = car_price * 7.00
  15. # Calculating destination total.
  16. dest_total = car_price * 8.25
  17.  
  18. total_car_price = car_price + taxes + license_percent + dealer_prep + dest_total
  19.  
  20. # Displaying total price for the car.
  21. print("The total car price with expenses cost you: $", total_car_price)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement