A
administrata
I'm programming Car Salesman Program.
It's been "3 days" learning python...
But, i got problem
Write a Car Salesman program where the user enters the base price of a
car. The program should add on a bunch of extra fees such as tax,
license, dealer prep, and destination charge. Make tax and license a
percent of the base price. The other fees should be set values.
Display the actual price of the car once all the extras are applied.
print "CAR SALESMAN PROGRAM"
print "\nEnter data."
base_price = int(raw_input("Base Price: "))
tax = int(raw_input("/nTax: "))
license1 = int(raw_input("License: "))
dealer = 30
charge = 5
print "Dealer Prep: ", dealer
print "Destination Charge: ", charge
actual_price = (((base_price * tax / 100) + license1 / 100) + dealer +
change
print "\n\nActual price: ", actual_price
raw_input("")
error occurs, i think the problem is in actual_price. but,
I don't know how to comebine percentage and raw_input.
help me...
thx 4 reading...
It's been "3 days" learning python...
But, i got problem
Write a Car Salesman program where the user enters the base price of a
car. The program should add on a bunch of extra fees such as tax,
license, dealer prep, and destination charge. Make tax and license a
percent of the base price. The other fees should be set values.
Display the actual price of the car once all the extras are applied.
print "CAR SALESMAN PROGRAM"
print "\nEnter data."
base_price = int(raw_input("Base Price: "))
tax = int(raw_input("/nTax: "))
license1 = int(raw_input("License: "))
dealer = 30
charge = 5
print "Dealer Prep: ", dealer
print "Destination Charge: ", charge
actual_price = (((base_price * tax / 100) + license1 / 100) + dealer +
change
print "\n\nActual price: ", actual_price
raw_input("")
error occurs, i think the problem is in actual_price. but,
I don't know how to comebine percentage and raw_input.
help me...
thx 4 reading...