Professional Documents
Culture Documents
You work for a car dealership, and you will need to create an invoice for your customers.
1. Gather Information about the user and the car that the user is planning on buying. Make sure to
use appropriate labels so that the user knows exactly what is expected. Example:
Buyer’s name (first last):
a. Enter the buyer’s first and last name. Format: first name space last name. ex: John Doe
*This should be entered into one variable-not two separate variables.
b. Enter the buyer’s street address. Ex: 100 Campus Circle
c. Enter the buyer’s city, state, and zip. Format: city, state zip. Ex: Owings Mills, MD 21117
*This should be entered into one variable-not separate variables.
d. Enter the base price of the car.
e. Enter the tax for the car. This should be a percentage number that will later be added on
to the base price of the car. If the car’s taxes, is 20%, the user can enter the number 20.
If the car cost $20 and the taxes is 5%, this should add $1 to the price of the car.
f. Enter the license fee of the car. This, too, should be a percentage number that will later
be added on to the base price of the car. If the car’s license fee is 10%, the user can
enter the number 10. If the car cost $20 and the license fee is 5%, this should add $1 to
the price of the car.
g. Enter the dealer prep charge. This should be a set value, which is decided in the
beginning of the program. It should be the same every time you run this program. You
do not need to ask the user for this number, however, it should be displayed at this
time.
h. Enter the destination charge. This should be a number entered by the user of the
program.
i. Price for trade in. This price should be subtracted from the Final Price.
2. After getting all this information from the user, skip a line and then display a line that says, “Your
invoice is now printing”.
3. Display Invoice
a. Example Invoice:
Invoice
Doe, John
123 Stevenson Road
Owings Mills, MD 21117
Invoice number: DO117OJ
Price of Car:
Tax Percent:
Total Taxes Owed:
License Fee Percent:
Total License Fee Owed:
Dealer Prep Charge:
Destination Charge:
Final Price:
Trade-in Amount:
Total Bill:
Print “Total License Fee Owed” and the total License Fee. Ex $1.00 4
Print “Dealer Prep Charge” with the amount 2
Print “Destination Charge” with the amount 3
Print “Final Price” with the Final Price (This price does not include 4
the trade in amount)
Print “Trade-in amount” with the amount 3
Print “Total Bill” Which is the final price-trade in amount 3
Skip a line 2
Print “Thank you for buying your car at Python Dealership!” 2
Program runs and does not break 5
0