Question
A taxable item named headphones is available in multiple quantities at a base price of $24.99. In the program, store the base price in a
A taxable item named headphones is available in multiple quantities at a base price of $24.99. In the program, store the base price in a properly named constant as a decimal. Prompt the user for the number (integer amount) of headphones being purchased. The sales tax rate is 7%. Store the tax rate in a properly named constant as a decimal. The shipping & handling cost is 1 dollar per headphones Store the shipping and handling cost in properly named constant. Calculate and print a receipt that includes the subtotal, the quantity, and the base cost on one line; the shipping and handling amount on the next line; the sales tax on the next line; and the total amount due on the last line after skipping a line. which includes a title prior to the data being printed. Display commas for numbers of 1,000 or more. Use dollar signs for dollar amounts and allow for two decimal places for cents. use the f_string output for printing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started