You are selling prints at a local flea market. Print prices differ but are less than $100.00. Write a program that promp
Posted: Mon Jun 06, 2022 6:52 pm
You are selling prints at a local flea market. Print prices differ but are less than $100.00. Write a program that prompts for the price of a print and then uses a while loop to generate a table showing the subtotal, 7% sales tax, and total for quantities from 1 to 10, inclusive (see required output). Dollar signs are not required. Use a properly named constant for the tax rate. All columns should be centered and 12 characters wide. Include underlined headings centered over each column as shown.
CODE SHOULD BE IN PYTHON
Required Output Item price? 72.49 QUANTITY H23456 1 7 8 9 10 SUBTOTAL SALES TAX pg_41 72.4 5.07 144.98 10.15 217.47 15.22 289.96 20.30 362.45 25.37 434.94 30.45 507.43 35.52 579.92 40.59 652.41 45.67 724.90 50.74 TOTAL 77.56 155.13 232.69 310.26 387.82 465.39 542.95 620.51 698.08 775.64
CODE SHOULD BE IN PYTHON
Required Output Item price? 72.49 QUANTITY H23456 1 7 8 9 10 SUBTOTAL SALES TAX pg_41 72.4 5.07 144.98 10.15 217.47 15.22 289.96 20.30 362.45 25.37 434.94 30.45 507.43 35.52 579.92 40.59 652.41 45.67 724.90 50.74 TOTAL 77.56 155.13 232.69 310.26 387.82 465.39 542.95 620.51 698.08 775.64