Code: Select all
car_cost = int(input("whats the base price of the car? "))
tax = car_cost * 0.5
license = car_cost * 0.2
prep = 100
destination_charge = 250
print ("Total: " + car_cost + tax + license + prep + destination_charge)
thank youWrite 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.
edit:
is this a good solution?
Code: Select all
car_cost = int(input("whats the base price of the car? "))
tax = car_cost * 0.5
license = car_cost * 0.2
prep = 100
destination_charge = 250
print ("Total: ")
print (car_cost + tax + license + prep + destination_charge)