You are on page 1of 3

Python Project 1

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:

Thank you for buying your car at Python Dealership!


b. Note the name on the invoice is last name comma space first name. Both names should
have the first letter uppercase and the rest of the name lowercase-regardless of how
the name was typed.
c. The invoice number is first two letters of the last name, last 3 digits of the zip, first letter
of the city, and first letter of the first name—all uppercase.
d. Check your math and make sure that it is correct, and that it makes sense!
e. Make sure to round to two decimal places for all dollar amounts. Make sure to have
dollar signs and thousand place separators in the invoice.
f. This should work for any price car.
Rubric

Instructions Points Points


Possible Earned
Gather information from the user
Get name (first name last name) 4
Get street address 4
Get C, S Z 4
Get price of car 4
Get tax percent 4
Get license percent 4
Get dealer prep charge 4
Get destination charge 4
Get price for trade in 4
Printing Invoice 0
Skip a line 2
Print “Your invoice is now printing” 2
Print “Invoice” 2
Print name (last name, first name) 5
Print street address 2
Print C, S Z 2
Print “Invoice Number” and the Invoice Number: first two letters of 6
last name, last 3 digits of the zip, first letter of the city, first letter of
the first name-all uppercase
Skip a line 2
Print “Price of Car: “ and the base price $ sign, two decimal 3
Print “Tax Percent:” and the tax percent-make sure to show the % 3
sign ex: 5%
Print “Total Taxes Owed:” and the total taxes. Ex: $1.00 4
Print “License Fee Percent”: and the License Fee percent-make sure 3
to show the % sign ex: 5%

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

You might also like