Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. # Car salesman program where the user enters the base price of a car.
  2. # A bunch of extra fees such as tax, license, dealer prep, and destination charge will be added.
  3. # Tax and licence will be a percent of the base price.
  4. # The other fees will have set values.
  5. #The actual price of the car once all the extras are applied will be displayed.
  6.  
  7. base = int(input("What is the base price of the car? £"))
  8.  
  9. tax = base * 0.2
  10. licence = base * 0.15
  11.  
  12. dealerprep = int(100)
  13. destinationcharge = int(70)
  14.  
  15. print ("\n\nextra fees".upper())
  16.  
  17. print ("\nvariable fees".title())
  18. print ("tax fees: £" , tax)
  19. print ("Licence fees £" , licence)
  20.  
  21. print ("\nfixed fees".title())
  22. print ("Dealer prep: £{}".format(dealerprep))
  23. print ("Destination charge: £" , + str(destinationcharge)
  24.  
  25. total = tax + licence + dealerprep + destinationcharge
  26.  
  27. print ("\n\ntotal cost: £".upper() , total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement