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.

Step by Step Solution

3.56 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

solution Store the base price tax rate and shipping cost as c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!