Question: A taxable item named Widgets is available in multiple quantities at a base price of $54.99. In your program, store the base price in a
A taxable item named Widgets is available in multiple quantities at a base price of $54.99. In your program, store the base price in a
properly named constant as a decimal. Prompt the user for the
number (integer amount) of Widgets
being purchased. The sales tax rate is 9%. Store the tax rate in a
properly named constant as a decimal. The shipping & handling cost is 1 dollar per Widget. Store the shipping and handling cost in a
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. Ensure that your program's output is formatted as identified in the example output below, 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. Note the
apostrophe in
Widgets' in the Example Output below. Your program should include that, too. As a reminder use
f_string for all printing.